Commit b2b88b2ff2a3044efa259d06c630dc903d0851bd
1 parent
ccdea8b8
Exists in
master
and in
4 other branches
Added font for head panel. Major restyle for header
Showing
10 changed files
with
63 additions
and
35 deletions
Show diff stats
No preview for this file type
2.79 KB
1.64 KB
app/assets/stylesheets/main.scss
app/assets/stylesheets/sections/header.scss
... | ... | @@ -26,23 +26,25 @@ header { |
26 | 26 | float:left; |
27 | 27 | position:relative; |
28 | 28 | top:-5px; |
29 | - | |
30 | 29 | a { |
31 | 30 | float:left; |
32 | 31 | |
33 | 32 | h1 { |
34 | - text-indent:-9999px; | |
33 | + padding-top: 5px; | |
35 | 34 | width:102px; |
36 | - background: url('logo_text.png') no-repeat 0px -3px; | |
35 | + background: url('logo_dark.png') no-repeat 0px -3px; | |
37 | 36 | float:left; |
38 | 37 | margin-left:5px; |
39 | - font-size:20px; | |
38 | + font-size:36px; | |
40 | 39 | line-height:36px; |
41 | - font-weight:bold; | |
42 | - color:#aaa; | |
40 | + font-weight:normal; | |
41 | + color:$style_color; | |
43 | 42 | text-shadow: 0 1px 1px #FFF; |
44 | 43 | padding-left:50px; |
44 | + height:40px; | |
45 | + font-family: 'Korolev', sans-serif; | |
45 | 46 | } |
47 | + | |
46 | 48 | } |
47 | 49 | .separator { |
48 | 50 | margin-left:20px; |
... | ... | @@ -68,14 +70,16 @@ header { |
68 | 70 | * |
69 | 71 | */ |
70 | 72 | .project_name { |
73 | + position:relative; | |
71 | 74 | float:left; |
72 | 75 | margin:0; |
73 | 76 | margin-right:30px; |
74 | - font-size:24px; | |
77 | + font-size:36px; | |
75 | 78 | line-height:36px; |
76 | - font-weight:500; | |
79 | + font-weight:normal; | |
77 | 80 | color:$style_color; |
78 | 81 | text-shadow: 0 1px 1px #FFF; |
82 | + font-family: 'Korolev', sans-serif; | |
79 | 83 | } |
80 | 84 | |
81 | 85 | .fbtn { | ... | ... |
app/assets/stylesheets/themes/ui_basic.scss
... | ... | @@ -15,4 +15,36 @@ |
15 | 15 | color: $blue_link; |
16 | 16 | } |
17 | 17 | } |
18 | + | |
19 | + header { | |
20 | + .fbtn { | |
21 | + .btn { | |
22 | + background-color: #F8F8F8; | |
23 | + background-image: -webkit-gradient(linear,left top,left bottom,from(#F8F8F8),to(#ECECEC)); | |
24 | + background-image: -webkit-linear-gradient(top,#F8F8F8,#ECECEC); | |
25 | + background-image: -moz-linear-gradient(top,#F8F8F8,#ECECEC); | |
26 | + background-image: -ms-linear-gradient(top,#F8F8F8,#ECECEC); | |
27 | + background-image: -o-linear-gradient(top,#F8F8F8,#ECECEC); | |
28 | + background-image: linear-gradient(top,#F8F8F8,#ECECEC); | |
29 | + filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#f8f8f8',EndColorStr='#ececec'); | |
30 | + border-color: #C6C6C6; | |
31 | + margin-left:7px; | |
32 | + @include border-radius(3px); | |
33 | + box-shadow:none; | |
34 | + color:#666; | |
35 | + } | |
36 | + } | |
37 | + .search { | |
38 | + .search-input { | |
39 | + @include border-radius(3px); | |
40 | + border-color: #C6C6C6; | |
41 | + box-shadow:none; | |
42 | + } | |
43 | + } | |
44 | + .pic { | |
45 | + img { | |
46 | + @include border-radius(3px); | |
47 | + } | |
48 | + } | |
49 | + } | |
18 | 50 | } | ... | ... |
app/assets/stylesheets/themes/ui_mars.scss
... | ... | @@ -59,14 +59,9 @@ |
59 | 59 | .app_logo { |
60 | 60 | a { |
61 | 61 | h1 { |
62 | - background: url('images.png') no-repeat -3px -6px; | |
63 | - width: 65px; | |
64 | - height: 26px; | |
65 | - margin: 6px 0; | |
66 | - padding: 0; | |
67 | - float: left; | |
68 | - text-indent: -1000em; | |
69 | - float:left; | |
62 | + background: url('logo_white.png') no-repeat 0px -3px; | |
63 | + color:#fff; | |
64 | + text-shadow: 0 1px 1px #111; | |
70 | 65 | } |
71 | 66 | } |
72 | 67 | .separator { |
... | ... | @@ -75,7 +70,6 @@ |
75 | 70 | |
76 | 71 | } |
77 | 72 | .project_name { |
78 | - line-height:38px; | |
79 | 73 | color:#fff; |
80 | 74 | text-shadow: 0 1px 1px #111; |
81 | 75 | } | ... | ... |
app/assets/stylesheets/themes/ui_modern.scss
... | ... | @@ -40,18 +40,11 @@ |
40 | 40 | width:160px; |
41 | 41 | a { |
42 | 42 | h1 { |
43 | - opacity: 0.7; | |
44 | - background: url('images.png') no-repeat -3px -6px; | |
45 | - width: 65px; | |
46 | - height: 26px; | |
47 | - margin: 6px 0; | |
48 | - padding: 0; | |
49 | - float: left; | |
50 | - text-indent: -1000em; | |
51 | - float:left; | |
52 | - &:hover { | |
53 | - opacity: 1.0; | |
54 | - } | |
43 | + background: none; | |
44 | + color:#DDD; | |
45 | + font-size:30px; | |
46 | + text-shadow: 0 1px 1px #111; | |
47 | + padding-left: 0; | |
55 | 48 | } |
56 | 49 | } |
57 | 50 | .separator { |
... | ... | @@ -67,18 +60,19 @@ |
67 | 60 | .fbtn { |
68 | 61 | .btn { |
69 | 62 | i { |
70 | - @extend .icon-white; | |
71 | 63 | position: relative; |
72 | 64 | top: 2px; |
73 | 65 | } |
74 | 66 | background:none; |
75 | 67 | margin-left:8px; |
76 | 68 | font-size: 13px; |
77 | - font-weight:bold; | |
78 | 69 | line-height: 19px; |
79 | 70 | color:#ccc; |
80 | 71 | &:hover { |
81 | 72 | color:#fff; |
73 | + i { | |
74 | + @extend .icon-white; | |
75 | + } | |
82 | 76 | } |
83 | 77 | border: none; |
84 | 78 | box-shadow:none; |
... | ... | @@ -116,9 +110,9 @@ |
116 | 110 | * |
117 | 111 | */ |
118 | 112 | .project_name { |
119 | - line-height:34px; | |
120 | - font-size:22px; | |
121 | - color:#ccc; | |
113 | + line-height:36px; | |
114 | + font-size:30px; | |
115 | + color:#DDD; | |
122 | 116 | text-shadow: 0 1px 1px #111; |
123 | 117 | } |
124 | 118 | ... | ... |
app/views/layouts/_head.html.haml
... | ... | @@ -6,7 +6,6 @@ |
6 | 6 | = favicon_link_tag 'favicon.ico' |
7 | 7 | = stylesheet_link_tag "application" |
8 | 8 | = javascript_include_tag "application" |
9 | - | |
10 | 9 | -# Atom feed |
11 | 10 | - if controller_name == 'projects' && action_name == 'index' |
12 | 11 | = auto_discovery_link_tag :atom, projects_url(:atom, private_token: current_user.private_token), title: "Dashboard feed" | ... | ... |
config/application.rb