flatui-rails-less 1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (157) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +38 -0
  6. data/Rakefile +1 -0
  7. data/flatui-rails-less.gemspec +26 -0
  8. data/lib/flatui/rails/less.rb +11 -0
  9. data/lib/flatui/rails/less/version.rb +7 -0
  10. data/vendor/assets/fonts/Flat-UI-Icons.dev.svg +140 -0
  11. data/vendor/assets/fonts/Flat-UI-Icons.eot +0 -0
  12. data/vendor/assets/fonts/Flat-UI-Icons.svg +140 -0
  13. data/vendor/assets/fonts/Flat-UI-Icons.ttf +0 -0
  14. data/vendor/assets/fonts/Flat-UI-Icons.woff +0 -0
  15. data/vendor/assets/fonts/icomoon-session.json +1 -0
  16. data/vendor/assets/fonts/lato/lato-black-webfont.eot +0 -0
  17. data/vendor/assets/fonts/lato/lato-black-webfont.svg +4691 -0
  18. data/vendor/assets/fonts/lato/lato-black-webfont.ttf +0 -0
  19. data/vendor/assets/fonts/lato/lato-black-webfont.woff +0 -0
  20. data/vendor/assets/fonts/lato/lato-bold-webfont.eot +0 -0
  21. data/vendor/assets/fonts/lato/lato-bold-webfont.svg +5085 -0
  22. data/vendor/assets/fonts/lato/lato-bold-webfont.ttf +0 -0
  23. data/vendor/assets/fonts/lato/lato-bold-webfont.woff +0 -0
  24. data/vendor/assets/fonts/lato/lato-bolditalic-webfont.eot +0 -0
  25. data/vendor/assets/fonts/lato/lato-bolditalic-webfont.svg +4514 -0
  26. data/vendor/assets/fonts/lato/lato-bolditalic-webfont.ttf +0 -0
  27. data/vendor/assets/fonts/lato/lato-bolditalic-webfont.woff +0 -0
  28. data/vendor/assets/fonts/lato/lato-italic-webfont.eot +0 -0
  29. data/vendor/assets/fonts/lato/lato-italic-webfont.svg +4514 -0
  30. data/vendor/assets/fonts/lato/lato-italic-webfont.ttf +0 -0
  31. data/vendor/assets/fonts/lato/lato-italic-webfont.woff +0 -0
  32. data/vendor/assets/fonts/lato/lato-light-webfont.eot +0 -0
  33. data/vendor/assets/fonts/lato/lato-light-webfont.svg +4691 -0
  34. data/vendor/assets/fonts/lato/lato-light-webfont.ttf +0 -0
  35. data/vendor/assets/fonts/lato/lato-light-webfont.woff +0 -0
  36. data/vendor/assets/fonts/lato/lato-regular-webfont.eot +0 -0
  37. data/vendor/assets/fonts/lato/lato-regular-webfont.svg +4691 -0
  38. data/vendor/assets/fonts/lato/lato-regular-webfont.ttf +0 -0
  39. data/vendor/assets/fonts/lato/lato-regular-webfont.woff +0 -0
  40. data/vendor/assets/images/demo/browser-2x.png +0 -0
  41. data/vendor/assets/images/demo/browser-author.jpg +0 -0
  42. data/vendor/assets/images/demo/browser-pic-1.jpg +0 -0
  43. data/vendor/assets/images/demo/browser-pic-2.jpg +0 -0
  44. data/vendor/assets/images/demo/browser-pic-3.jpg +0 -0
  45. data/vendor/assets/images/demo/browser-pic-4.jpg +0 -0
  46. data/vendor/assets/images/demo/browser-pic-5.jpg +0 -0
  47. data/vendor/assets/images/demo/browser-pic-6.jpg +0 -0
  48. data/vendor/assets/images/demo/browser.png +0 -0
  49. data/vendor/assets/images/demo/html-icon.png +0 -0
  50. data/vendor/assets/images/demo/logo-mask-2x.png +0 -0
  51. data/vendor/assets/images/demo/logo-mask.png +0 -0
  52. data/vendor/assets/images/demo/video.jpg +0 -0
  53. data/vendor/assets/images/exaple-image.jpg +0 -0
  54. data/vendor/assets/images/favicon.ico +0 -0
  55. data/vendor/assets/images/footer/logo.png +0 -0
  56. data/vendor/assets/images/icons/png/Book.png +0 -0
  57. data/vendor/assets/images/icons/png/Calendar.png +0 -0
  58. data/vendor/assets/images/icons/png/Chat.png +0 -0
  59. data/vendor/assets/images/icons/png/Clipboard.png +0 -0
  60. data/vendor/assets/images/icons/png/Compas.png +0 -0
  61. data/vendor/assets/images/icons/png/Gift-Box.png +0 -0
  62. data/vendor/assets/images/icons/png/Infinity-Loop.png +0 -0
  63. data/vendor/assets/images/icons/png/Mail.png +0 -0
  64. data/vendor/assets/images/icons/png/Map.png +0 -0
  65. data/vendor/assets/images/icons/png/Pensils.png +0 -0
  66. data/vendor/assets/images/icons/png/Pocket.png +0 -0
  67. data/vendor/assets/images/icons/png/Retina-Ready.png +0 -0
  68. data/vendor/assets/images/icons/png/Toilet-Paper.png +0 -0
  69. data/vendor/assets/images/icons/png/Watches.png +0 -0
  70. data/vendor/assets/images/icons/svg/book.svg +1 -0
  71. data/vendor/assets/images/icons/svg/calendar.svg +1 -0
  72. data/vendor/assets/images/icons/svg/chat.svg +1 -0
  73. data/vendor/assets/images/icons/svg/clipboard.svg +1 -0
  74. data/vendor/assets/images/icons/svg/clocks.svg +9 -0
  75. data/vendor/assets/images/icons/svg/compas.svg +1 -0
  76. data/vendor/assets/images/icons/svg/gift-box.svg +1 -0
  77. data/vendor/assets/images/icons/svg/loop.svg +5 -0
  78. data/vendor/assets/images/icons/svg/mail.svg +1 -0
  79. data/vendor/assets/images/icons/svg/map.svg +1 -0
  80. data/vendor/assets/images/icons/svg/paper-bag.svg +1 -0
  81. data/vendor/assets/images/icons/svg/pencils.svg +1 -0
  82. data/vendor/assets/images/icons/svg/retina.svg +1 -0
  83. data/vendor/assets/images/icons/svg/toilet-paper.svg +1 -0
  84. data/vendor/assets/images/login/icon.png +0 -0
  85. data/vendor/assets/images/login/imac-2x.png +0 -0
  86. data/vendor/assets/images/login/imac.png +0 -0
  87. data/vendor/assets/images/switch/mask-square.png +0 -0
  88. data/vendor/assets/images/switch/mask.png +0 -0
  89. data/vendor/assets/images/tile/ribbon-2x.png +0 -0
  90. data/vendor/assets/images/tile/ribbon.png +0 -0
  91. data/vendor/assets/images/todo/done-2x.png +0 -0
  92. data/vendor/assets/images/todo/done.png +0 -0
  93. data/vendor/assets/images/todo/search-2x.png +0 -0
  94. data/vendor/assets/images/todo/search.png +0 -0
  95. data/vendor/assets/images/todo/todo-2x.png +0 -0
  96. data/vendor/assets/images/todo/todo.png +0 -0
  97. data/vendor/assets/images/video/fullscreen-2x.png +0 -0
  98. data/vendor/assets/images/video/fullscreen.png +0 -0
  99. data/vendor/assets/images/video/pause-2x.png +0 -0
  100. data/vendor/assets/images/video/pause.png +0 -0
  101. data/vendor/assets/images/video/play-2x.png +0 -0
  102. data/vendor/assets/images/video/play.png +0 -0
  103. data/vendor/assets/images/video/poster.jpg +0 -0
  104. data/vendor/assets/images/video/volume-full-2x.png +0 -0
  105. data/vendor/assets/images/video/volume-full.png +0 -0
  106. data/vendor/assets/images/video/volume-off-2x.png +0 -0
  107. data/vendor/assets/images/video/volume-off.png +0 -0
  108. data/vendor/assets/javascripts/bootstrap-select.js +412 -0
  109. data/vendor/assets/javascripts/bootstrap-switch.js +251 -0
  110. data/vendor/assets/javascripts/bootstrap-typeahead.js +335 -0
  111. data/vendor/assets/javascripts/bootstrap.min.js +8 -0
  112. data/vendor/assets/javascripts/flat-ui.js +13 -0
  113. data/vendor/assets/javascripts/flatui-checkbox.js +112 -0
  114. data/vendor/assets/javascripts/flatui-radio.js +141 -0
  115. data/vendor/assets/javascripts/html5shiv.js +8 -0
  116. data/vendor/assets/javascripts/icon-font-ie7.js +57 -0
  117. data/vendor/assets/javascripts/jquery-ui-1.10.3.custom.min.js +6 -0
  118. data/vendor/assets/javascripts/jquery.placeholder.js +157 -0
  119. data/vendor/assets/javascripts/jquery.stacktable.js +54 -0
  120. data/vendor/assets/javascripts/jquery.tagsinput.js +355 -0
  121. data/vendor/assets/javascripts/jquery.ui.touch-punch.min.js +11 -0
  122. data/vendor/assets/javascripts/run-application.js +70 -0
  123. data/vendor/assets/stylesheets/demo.less +306 -0
  124. data/vendor/assets/stylesheets/docs.less +411 -0
  125. data/vendor/assets/stylesheets/flat-ui.less +47 -0
  126. data/vendor/assets/stylesheets/fonts.less +65 -0
  127. data/vendor/assets/stylesheets/icon-font.less +128 -0
  128. data/vendor/assets/stylesheets/mixins.less +780 -0
  129. data/vendor/assets/stylesheets/modules/button-groups.less +110 -0
  130. data/vendor/assets/stylesheets/modules/buttons.less +145 -0
  131. data/vendor/assets/stylesheets/modules/caret.less +31 -0
  132. data/vendor/assets/stylesheets/modules/checkbox-and-radio.less +143 -0
  133. data/vendor/assets/stylesheets/modules/code.less +38 -0
  134. data/vendor/assets/stylesheets/modules/dropdown.less +249 -0
  135. data/vendor/assets/stylesheets/modules/footer.less +76 -0
  136. data/vendor/assets/stylesheets/modules/forms.less +127 -0
  137. data/vendor/assets/stylesheets/modules/input-icons.less +71 -0
  138. data/vendor/assets/stylesheets/modules/login.less +111 -0
  139. data/vendor/assets/stylesheets/modules/navbar.less +551 -0
  140. data/vendor/assets/stylesheets/modules/pager.less +51 -0
  141. data/vendor/assets/stylesheets/modules/pagination.less +155 -0
  142. data/vendor/assets/stylesheets/modules/palette.less +71 -0
  143. data/vendor/assets/stylesheets/modules/progress-bars.less +36 -0
  144. data/vendor/assets/stylesheets/modules/select.less +143 -0
  145. data/vendor/assets/stylesheets/modules/share.less +44 -0
  146. data/vendor/assets/stylesheets/modules/switch.less +150 -0
  147. data/vendor/assets/stylesheets/modules/tagsinput.less +121 -0
  148. data/vendor/assets/stylesheets/modules/tile.less +54 -0
  149. data/vendor/assets/stylesheets/modules/todo.less +110 -0
  150. data/vendor/assets/stylesheets/modules/tooltip.less +56 -0
  151. data/vendor/assets/stylesheets/modules/type.less +210 -0
  152. data/vendor/assets/stylesheets/modules/ui-slider.less +62 -0
  153. data/vendor/assets/stylesheets/modules/video.less +458 -0
  154. data/vendor/assets/stylesheets/scaffolding.less +46 -0
  155. data/vendor/assets/stylesheets/spaces.less +172 -0
  156. data/vendor/assets/stylesheets/variables.less +294 -0
  157. metadata +256 -0
@@ -0,0 +1,71 @@
1
+ //
2
+ // Input Icons
3
+ // --------------------------------------------------
4
+
5
+ .form-group {
6
+ position: relative;
7
+ }
8
+
9
+ .form-control {
10
+ & + .input-icon {
11
+ position: absolute;
12
+ top: 2px;
13
+ right: 2px;
14
+ line-height: 37px;
15
+ vertical-align: middle;
16
+ font-size: @input-icon-font-size;
17
+ color: desaturate(lighten(@brand-primary, 45%), 15%);
18
+ background-color: @inverse;
19
+ padding: 0 12px 0 0;
20
+ border-radius: @input-border-radius;
21
+ }
22
+ }
23
+
24
+ // Icons sizing
25
+ // ---------------------------
26
+
27
+ // Huge
28
+ .input-hg + .input-icon {
29
+ line-height: 49px;
30
+ padding: 0 16px 0 0;
31
+ }
32
+
33
+ //Large
34
+ .input-lg + .input-icon {
35
+ line-height: 41px;
36
+ padding: 0 15px 0 0;
37
+ }
38
+
39
+ // Small
40
+ .input-sm + .input-icon {
41
+ font-size: @font-size-base;
42
+ line-height: 30px;
43
+ padding: 0 10px 0 0;
44
+ }
45
+
46
+
47
+ // Icons states
48
+ // ---------------------------
49
+
50
+ .has-success {
51
+ .input-icon {
52
+ color: @brand-success;
53
+ }
54
+ }
55
+ .has-warning {
56
+ .input-icon {
57
+ color: @brand-warning;
58
+ }
59
+ }
60
+ .has-error {
61
+ .input-icon {
62
+ color: @brand-danger;
63
+ }
64
+ }
65
+ .form-control[disabled] + .input-icon,
66
+ .form-control[readonly] + .input-icon,
67
+ fieldset[disabled] .form-control + .input-icon,
68
+ .form-control.disabled + .input-icon {
69
+ color: mix(@gray, white, 40%);
70
+ background-color: mix(@gray, white, 10%);
71
+ }
@@ -0,0 +1,111 @@
1
+ //
2
+ // Login screen
3
+ // --------------------------------------------------
4
+
5
+ // Module color variable
6
+ @form-color: mix(@brand-primary, @inverse, 9%);
7
+
8
+ .login {
9
+ background: ~"url(../images/login/imac.png) 0 0 no-repeat";
10
+ background-size: 940px 778px;
11
+ color: @inverse;
12
+ margin-bottom: 77px;
13
+ padding: 38px 38px 267px;
14
+ position: relative;
15
+ }
16
+
17
+ .login-screen {
18
+ background-color: @brand-secondary;
19
+ min-height: 473px;
20
+ padding: 123px 199px 33px 306px;
21
+ }
22
+
23
+ .login-icon {
24
+ left: 200px;
25
+ position: absolute;
26
+ top: 160px;
27
+ width: 96px;
28
+
29
+ > img {
30
+ display: block;
31
+ margin-bottom: 6px;
32
+ width: 100%;
33
+ }
34
+ > h4 {
35
+ font-size: 17px;
36
+ font-weight: 300;
37
+ line-height: 34px;
38
+ .opacity(.95);
39
+
40
+ small {
41
+ color: inherit;
42
+ display: block;
43
+ font-size: inherit;
44
+ font-weight: 700;
45
+ }
46
+ }
47
+ }
48
+
49
+ // LOGIN FORM
50
+ // -----------
51
+ .login-form {
52
+ background-color: @form-color;
53
+ padding: 24px 23px 20px;
54
+ position: relative;
55
+ border-radius: @border-radius-large;
56
+
57
+ // Ear
58
+ &:before {
59
+ content: '';
60
+ border-style: solid;
61
+ border-width: 12px 12px 12px 0;
62
+ border-color: transparent @form-color transparent transparent;
63
+ height: 0;
64
+ position: absolute;
65
+ left: -12px;
66
+ top: 35px;
67
+ width: 0;
68
+ -webkit-transform: rotate(360deg); // Make corners smooth
69
+ }
70
+ .control-group {
71
+ margin-bottom: 6px;
72
+ position: relative;
73
+ }
74
+ .login-field {
75
+ border-color: transparent;
76
+ font-size: 17px;
77
+ text-indent: 3px;
78
+
79
+ &:focus {
80
+ border-color: @brand-secondary;
81
+
82
+ & + .login-field-icon {
83
+ color: @brand-secondary;
84
+ }
85
+ }
86
+ }
87
+ .login-field-icon {
88
+ color: mix(@gray, @inverse, 60%);
89
+ font-size: 16px;
90
+ position: absolute;
91
+ right: 13px;
92
+ top: 9px;
93
+ .transition(.25s);
94
+ }
95
+ }
96
+
97
+ .login-link {
98
+ color: mix(@gray, @inverse, 60%);
99
+ display: block;
100
+ font-size: 13px;
101
+ margin-top: 15px;
102
+ text-align: center;
103
+ }
104
+
105
+ // Retina support
106
+ @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 2) {
107
+ .login {
108
+ background-image: ~"url(../images/login/imac-2x.png)";
109
+ }
110
+ }
111
+
@@ -0,0 +1,551 @@
1
+ //
2
+ // Navbar
3
+ // --------------------------------------------------
4
+
5
+ .navbar {
6
+ font-size: floor(@component-font-size-base * 1.067); // ~16px
7
+ border-radius: @border-radius-large;
8
+ border: none;
9
+
10
+ .navbar-brand {
11
+ border-radius: @border-radius-large 0 0 @border-radius-large;
12
+ color: mix(@brand-primary, white, 85%);
13
+ font-size: floor(@component-font-size-base * 1.60); // ~24px
14
+ line-height: 29.55px;
15
+ font-weight: 700;
16
+ padding: 23px 28px 24px 17px;
17
+ text-shadow: none;
18
+ display: inline-block;
19
+
20
+ &:hover,
21
+ &:focus {
22
+ color: @brand-secondary;
23
+ }
24
+ &[class*="fui-"] {
25
+ font-weight: normal;
26
+ }
27
+ small { line-height: 1; }
28
+ }
29
+
30
+ .nav {
31
+ margin-right: 0;
32
+ display: inline-block;
33
+ float: left;
34
+
35
+ // First level nav
36
+ > li {
37
+ position: relative;
38
+ display: inline-block;
39
+
40
+ &:hover {
41
+ > ul {
42
+ opacity: 1;
43
+ top: 100%;
44
+ visibility: visible;
45
+ z-index: 100;
46
+ -webkit-transform: scale(1, 1);
47
+ // Show on hover
48
+ display: block\9;
49
+ }
50
+ }
51
+ &.active {
52
+ > a,
53
+ > a:hover,
54
+ > a:focus {
55
+ background: none;
56
+ color: @brand-secondary;
57
+ .box-shadow(none);
58
+ }
59
+ }
60
+ &:first-child {
61
+ border-radius: @border-radius-large @border-radius-large 0 0;
62
+ }
63
+ &:last-child {
64
+ border-radius: 0 0 @border-radius-large @border-radius-large;
65
+ }
66
+
67
+ // Second level nav
68
+ > ul {
69
+ padding-top: 13px;
70
+ top: 80%;
71
+ padding-left: 0;
72
+ .dropdown-arrow(@brand-primary);
73
+
74
+ // Third level nav
75
+ li {
76
+ &:hover {
77
+ ul {
78
+ opacity: 1;
79
+ -webkit-transform: scale(1, 1);
80
+ visibility: visible;
81
+ display: block\9;
82
+ }
83
+ }
84
+ ul {
85
+ left: 100%;
86
+ }
87
+ }
88
+ }
89
+
90
+ // First level link
91
+ > a {
92
+ color: mix(@brand-primary, white, 85%);
93
+ display: inline-block;
94
+ font-weight: 700;
95
+ font-size: @component-font-size-base; // ~15px
96
+ line-height: 28px;
97
+ padding: 22px @navbar-link-space;
98
+ text-shadow: none;
99
+ .transition(~"background-color .25s, color .25s, border-bottom-color .25s");
100
+
101
+ &:hover,
102
+ &:focus {
103
+ color: @brand-secondary;
104
+ background-color: transparent;
105
+ }
106
+ &[class*="fui-"] {
107
+ font-size: 24px;
108
+ font-weight: normal;
109
+ }
110
+
111
+ > [class*="fui-"] {
112
+ font-size: 24px;
113
+ margin: -4px 0 0;
114
+ position: relative;
115
+ top: 4px;
116
+ }
117
+
118
+ > [class*="fui-"] + * {
119
+ margin-left: 12px;
120
+ }
121
+ }
122
+ }
123
+
124
+ // Sub menu
125
+ ul {
126
+ border-radius: 4px;
127
+ left: 0;
128
+ list-style-type: none;
129
+ margin-left: 0;
130
+ opacity: 0;
131
+ position: absolute;
132
+ top: 0;
133
+ width: 234px;
134
+ // Trigger transform to hide nav completely without 'ghost' bug (when switching from :hover to initial)
135
+ -webkit-transform: scale(1, 0.99);
136
+ -webkit-transform-origin: 0 0;
137
+ // Don't show it at all by default since IE doesn't get modern transitions
138
+ visibility: hidden;
139
+ .transition(.25s ease-out);
140
+
141
+ // Deep level sub menu
142
+ ul {
143
+ left: 95%;
144
+ padding-left: 5px;
145
+ }
146
+
147
+ // Sub menu item
148
+ li {
149
+ background-color: @brand-primary;
150
+ padding: 0 3px 3px;
151
+ position: relative;
152
+
153
+ &:first-child {
154
+ border-radius: @border-radius-large @border-radius-large 0 0;
155
+ padding-top: 3px;
156
+ }
157
+ &:last-child {
158
+ border-radius: 0 0 @border-radius-large @border-radius-large;
159
+ }
160
+ &.active {
161
+ > a,
162
+ > a:hover,
163
+ > a:focus {
164
+ background-color: @brand-secondary;
165
+ color: @inverse;
166
+ padding-left: @navbar-sublink-space;
167
+ padding-right: @navbar-sublink-space;
168
+ }
169
+ & + li {
170
+ > a {
171
+ padding-left: @navbar-sublink-space;
172
+ padding-right: @navbar-sublink-space;
173
+ }
174
+ }
175
+ }
176
+ }
177
+
178
+ // Sub menu link
179
+ a {
180
+ border-radius: 2px;
181
+ color: @inverse;
182
+ display: block;
183
+ font-size: ceil(@component-font-size-base * 0.933);
184
+ padding: 6px @navbar-sublink-space;
185
+ text-decoration: none;
186
+
187
+ &:hover {
188
+ background-color: @brand-secondary;
189
+ }
190
+ }
191
+ }
192
+
193
+ &.navbar-left {
194
+ li:first-child {
195
+ a {
196
+ border-radius: @border-radius-large 0 0 @border-radius-large;
197
+ border-left: none;
198
+ }
199
+ }
200
+ }
201
+ }
202
+
203
+ // Expand/collapse button
204
+ .btn-navbar {
205
+ background: none;
206
+ border: none;
207
+ color: @brand-primary;
208
+ margin: 18px 15px;
209
+ padding: 3px 15px;
210
+ text-shadow: none;
211
+ display: none;
212
+
213
+ &:hover,
214
+ &:focus {
215
+ background: none;
216
+ color: @brand-secondary;
217
+ }
218
+ &:before {
219
+ content: "\e00c";
220
+ font-family: "Flat-UI-Icons";
221
+ font-size: ceil(@component-font-size-base * 1.467); // ~22px
222
+ font-style: normal;
223
+ font-weight: normal;
224
+ -webkit-font-smoothing: antialiased;
225
+ }
226
+ .icon-bar {
227
+ display: none;
228
+ }
229
+ }
230
+ }
231
+
232
+ .navbar-default {
233
+ background: mix(@brand-primary, white, 9.5%);
234
+ border: none;
235
+ padding-left: 0;
236
+ padding-right: 0;
237
+ border-radius: @border-radius-large;
238
+ }
239
+
240
+ // Alternate Color
241
+ // --------------------------------------------------
242
+ .navbar-inverse {
243
+ background: @brand-primary;
244
+ font-size: ceil(@component-font-size-base * 1.133); // ~17px
245
+
246
+ .navbar-brand {
247
+ border-bottom: 2px solid mix(@brand-primary, black, 85%);
248
+ border-right: 2px solid mix(@brand-primary, black, 85%);
249
+ color: @inverse;
250
+ padding: 10px 28px 11px 32px;
251
+ }
252
+ .btn-navbar {
253
+ color: @inverse;
254
+ margin: 7px 10px;
255
+ }
256
+ .btn-icon {
257
+ margin: 8px 5px 8px 15px;
258
+ }
259
+ .nav {
260
+ > li {
261
+ &:first-child {
262
+ &.active {
263
+ > a {
264
+ padding-left: @navbar-link-space;
265
+ }
266
+ }
267
+ > a {
268
+ border-left: none;
269
+ }
270
+ }
271
+
272
+ // Active item
273
+ &.active {
274
+ > a {
275
+ &,
276
+ &:hover,
277
+ &:focus {
278
+ background-color: @brand-secondary;
279
+ border-bottom-color: mix(@brand-secondary, black, 85%);
280
+ border-left: none;
281
+ color: @inverse;
282
+ padding-left: @navbar-link-space;
283
+ }
284
+ }
285
+ & + li {
286
+ > a {
287
+ border-left: none;
288
+ padding-left: @navbar-link-space;
289
+ }
290
+ }
291
+ }
292
+
293
+ // Link styling
294
+ > a {
295
+ font-size: floor(@component-font-size-base * 1.067); // ~16px
296
+ border-bottom: 2px solid mix(@brand-primary, black, 85%);
297
+ border-left: 2px solid mix(@brand-primary, black, 85%) !important;
298
+ color: @inverse;
299
+ padding: 16px @navbar-link-space 15px;
300
+ line-height: 20px;
301
+ }
302
+ }
303
+ }
304
+
305
+ .nav.navbar-right {
306
+ .dropdown-menu {
307
+ left: -100%;
308
+ margin-left: 17px;
309
+ }
310
+ .open > .dropdown-menu:before {
311
+ display: block !important;
312
+ }
313
+ }
314
+ // Round corders of the pull-right dropdown
315
+ .nav.navbar-right > li {
316
+ > a {
317
+ border-radius: 0 @border-radius-large @border-radius-large 0;
318
+ }
319
+ }
320
+ }
321
+
322
+ // Unread icon
323
+ .navbar-unread,
324
+ .navbar-new {
325
+ font-family: @font-family-base;
326
+ background-color: @brand-secondary;
327
+ border-radius: 50%;
328
+ color: @inverse;
329
+ font-size: 0;
330
+ font-weight: 700;
331
+ height: 6px;
332
+ line-height: 14px;
333
+ position: absolute;
334
+ right: 12px;
335
+ text-align: center;
336
+ top: 28px;
337
+ width: 6px;
338
+ z-index: 10;
339
+
340
+ .active & {
341
+ background-color: @inverse;
342
+ display: none;
343
+ }
344
+ .navbar-inverse & {
345
+ top: 15px;
346
+ }
347
+ }
348
+
349
+ .navbar-new {
350
+ background-color: @brand-danger;
351
+ font-size: 12px;
352
+ line-height: 17px;
353
+ height: 18px;
354
+ margin: -9px -1px;
355
+ min-width: 18px;
356
+ padding: 0 1px;
357
+ width: auto;
358
+ -webkit-font-smoothing: subpixel-antialiased;
359
+ }
360
+
361
+ // DROPDOWN LIST
362
+ // -----------
363
+ .navbar {
364
+ // Inverse navbar dropdown styling
365
+ &.navbar-inverse {
366
+ .nav li.dropdown {
367
+ &.open {
368
+ > .dropdown-toggle {
369
+ background-color: @brand-secondary;
370
+ border-bottom-color: mix(@brand-secondary, black, 85%);
371
+ color: @inverse;
372
+
373
+ .caret {
374
+ border-bottom-color: @inverse !important;
375
+ border-top-color: @inverse !important;
376
+ }
377
+ }
378
+ }
379
+ }
380
+ }
381
+
382
+ // Default navbar dropdown styling
383
+ .nav li.dropdown {
384
+ &.open {
385
+ > .dropdown-toggle {
386
+ background: none;
387
+ color: @brand-secondary;
388
+
389
+ .caret {
390
+ border-bottom-color: @brand-secondary !important;
391
+ border-top-color: @brand-secondary !important;
392
+ }
393
+ }
394
+ .dropdown-menu {
395
+ opacity: 1;
396
+ top: 100%;
397
+ visibility: visible;
398
+ z-index: 1000;
399
+ -webkit-transform: none;
400
+ }
401
+ }
402
+ > .dropdown-toggle {
403
+ outline: none;
404
+
405
+ &:hover,
406
+ &:focus {
407
+ .caret {
408
+ border-bottom-color: @brand-secondary;
409
+ border-top-color: @brand-secondary;
410
+ }
411
+ }
412
+ .caret {
413
+ border-left-width: 6px;
414
+ border-right-width: 6px;
415
+ border-top-width: 8px;
416
+ border-bottom-color: lighten(@brand-primary, 13%);
417
+ border-top-color: lighten(@brand-primary, 13%);
418
+ margin-left: 10px;
419
+ }
420
+ }
421
+ .dropdown-menu {
422
+ background-color: @brand-primary;
423
+ opacity: 0;
424
+ padding: 0;
425
+ visibility: hidden;
426
+
427
+ &:before {
428
+ display: none;
429
+ }
430
+ &:after {
431
+ border-bottom-color: @brand-primary;
432
+ }
433
+ > li {
434
+ > a {
435
+ border-radius: 3px;
436
+ color: @inverse;
437
+ padding: 6px 8px 8px;
438
+ }
439
+ }
440
+ .divider {
441
+ background-color: mix(@brand-primary, black, 85%);
442
+ border-bottom: none;
443
+ margin: 2px 0 5px;
444
+ padding: 0;
445
+ height: 2px;
446
+ }
447
+ }
448
+ }
449
+ }
450
+
451
+ // SEARCH BOX
452
+ // -----------
453
+ .navbar {
454
+ // Inverse navbar search box styling
455
+ &.navbar-inverse {
456
+ .navbar-form {
457
+ border-left: 2px solid mix(@brand-primary, black, 85%);
458
+ border-bottom: 2px solid mix(@brand-primary, black, 85%);
459
+ padding: 8px 5px 8px @navbar-link-space + 3;
460
+
461
+ .input-group-btn {
462
+ .btn {
463
+ background-color: mix(@brand-primary, black, 85%);
464
+ color: lighten(@brand-primary, 13%) !important;
465
+ }
466
+ }
467
+ .form-control {
468
+ background-color: mix(@brand-primary, black, 85%);
469
+ color: @inverse;
470
+ .placeholder(lighten(@brand-primary, 33%));
471
+ }
472
+ .form-control:focus {
473
+ border-color: @brand-secondary;
474
+ }
475
+ &.focus {
476
+ .input-group-btn {
477
+ .btn {
478
+ background-color: mix(@brand-primary, black, 85%) !important;
479
+ }
480
+ }
481
+ }
482
+ }
483
+ }
484
+
485
+ // Default navbar search box styling
486
+ .navbar-form {
487
+ margin: 0;
488
+ padding: 20px (@navbar-link-space - 15) 19px @navbar-link-space;
489
+ max-width: 229px;
490
+
491
+ .form-group {
492
+ margin-bottom: 0;
493
+ }
494
+ .form-control {
495
+ background-color: @inverse;
496
+ border: 2px solid transparent;
497
+ color: mix(@brand-primary, white, 85%);
498
+ .placeholder(mix(@brand-primary, white, 66%));
499
+ font-size: @component-font-size-base; // ~15px
500
+ }
501
+ .form-control:focus {
502
+ border-color: @brand-secondary;
503
+ }
504
+ .input-group-btn .btn {
505
+ border-color: transparent;
506
+ color: mix(@brand-primary, white, 50%);
507
+ font-size: floor(@component-font-size-base * 1.067); // ~16px
508
+ }
509
+ }
510
+ }
511
+
512
+ // Fixed top/bottom
513
+ .navbar.navbar-fixed-bottom,
514
+ .navbar.navbar-fixed-top {
515
+ .navbar-inner {
516
+ .navbar-form {
517
+ .form-control {
518
+ border-radius: 50px 0 0 50px !important;
519
+ }
520
+ .btn {
521
+ border-radius: 0 50px 50px 0;
522
+ }
523
+ }
524
+ }
525
+ }
526
+
527
+ .navbar.navbar-fixed-bottom {
528
+ .nav {
529
+ > li {
530
+ &:hover {
531
+ > ul {
532
+ bottom: 100%;
533
+ padding-bottom: 13px;
534
+ top: auto;
535
+
536
+ li:hover {
537
+ ul {
538
+ bottom: 0;
539
+ }
540
+ }
541
+ }
542
+ }
543
+ }
544
+
545
+ // Dropdown list
546
+ ul {
547
+ bottom: 80%;
548
+ top: auto;
549
+ }
550
+ }
551
+ }