flat-ui-sass 2.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +18 -0
  3. data/.gitmodules +3 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +256 -0
  7. data/Rakefile +14 -0
  8. data/app/helpers/flat_ui/rails/icon_helper.rb +60 -0
  9. data/bin/fui_convert +9 -0
  10. data/flat-ui-sass.gemspec +28 -0
  11. data/lib/flat-ui-sass.rb +98 -0
  12. data/lib/flat-ui-sass/cli.rb +56 -0
  13. data/lib/flat-ui-sass/engine.rb +13 -0
  14. data/lib/flat-ui-sass/sass_functions.rb +56 -0
  15. data/lib/flat-ui-sass/version.rb +4 -0
  16. data/lib/tasks/converter.rb +99 -0
  17. data/lib/tasks/converter/filesystem.rb +16 -0
  18. data/lib/tasks/converter/flat_ui_fonts_conversion.rb +19 -0
  19. data/lib/tasks/converter/flat_ui_images_conversion.rb +19 -0
  20. data/lib/tasks/converter/flat_ui_js_conversion.rb +28 -0
  21. data/lib/tasks/converter/flat_ui_less_conversion.rb +328 -0
  22. data/lib/tasks/converter/logger.rb +61 -0
  23. data/lib/tasks/flat-ui-sass.rake +8 -0
  24. data/templates/project/_variables.scss.erb +5 -0
  25. data/templates/project/manifest.rb +57 -0
  26. data/templates/project/styles.scss +4 -0
  27. data/vendor/assets/fonts/flat-ui/flat-ui-icons-regular.eot +0 -0
  28. data/vendor/assets/fonts/flat-ui/flat-ui-icons-regular.svg +140 -0
  29. data/vendor/assets/fonts/flat-ui/flat-ui-icons-regular.ttf +0 -0
  30. data/vendor/assets/fonts/flat-ui/flat-ui-icons-regular.woff +0 -0
  31. data/vendor/assets/images/flat-ui/icons/png/Book.png +0 -0
  32. data/vendor/assets/images/flat-ui/icons/png/Calendar.png +0 -0
  33. data/vendor/assets/images/flat-ui/icons/png/Chat.png +0 -0
  34. data/vendor/assets/images/flat-ui/icons/png/Clipboard.png +0 -0
  35. data/vendor/assets/images/flat-ui/icons/png/Compas.png +0 -0
  36. data/vendor/assets/images/flat-ui/icons/png/Gift-Box.png +0 -0
  37. data/vendor/assets/images/flat-ui/icons/png/Infinity-Loop.png +0 -0
  38. data/vendor/assets/images/flat-ui/icons/png/Mail.png +0 -0
  39. data/vendor/assets/images/flat-ui/icons/png/Map.png +0 -0
  40. data/vendor/assets/images/flat-ui/icons/png/Pensils.png +0 -0
  41. data/vendor/assets/images/flat-ui/icons/png/Pocket.png +0 -0
  42. data/vendor/assets/images/flat-ui/icons/png/Retina-Ready.png +0 -0
  43. data/vendor/assets/images/flat-ui/icons/png/Toilet-Paper.png +0 -0
  44. data/vendor/assets/images/flat-ui/icons/png/Watches.png +0 -0
  45. data/vendor/assets/images/flat-ui/icons/svg/book.svg +1 -0
  46. data/vendor/assets/images/flat-ui/icons/svg/calendar.svg +1 -0
  47. data/vendor/assets/images/flat-ui/icons/svg/chat.svg +1 -0
  48. data/vendor/assets/images/flat-ui/icons/svg/clipboard.svg +1 -0
  49. data/vendor/assets/images/flat-ui/icons/svg/clocks.svg +9 -0
  50. data/vendor/assets/images/flat-ui/icons/svg/compas.svg +1 -0
  51. data/vendor/assets/images/flat-ui/icons/svg/gift-box.svg +1 -0
  52. data/vendor/assets/images/flat-ui/icons/svg/loop.svg +5 -0
  53. data/vendor/assets/images/flat-ui/icons/svg/mail.svg +1 -0
  54. data/vendor/assets/images/flat-ui/icons/svg/map.svg +1 -0
  55. data/vendor/assets/images/flat-ui/icons/svg/paper-bag.svg +1 -0
  56. data/vendor/assets/images/flat-ui/icons/svg/pencils.svg +1 -0
  57. data/vendor/assets/images/flat-ui/icons/svg/retina.svg +1 -0
  58. data/vendor/assets/images/flat-ui/icons/svg/toilet-paper.svg +1 -0
  59. data/vendor/assets/images/flat-ui/login/icon.png +0 -0
  60. data/vendor/assets/images/flat-ui/login/imac-2x.png +0 -0
  61. data/vendor/assets/images/flat-ui/login/imac.png +0 -0
  62. data/vendor/assets/images/flat-ui/switch/mask-square.png +0 -0
  63. data/vendor/assets/images/flat-ui/switch/mask.png +0 -0
  64. data/vendor/assets/images/flat-ui/tile/ribbon-2x.png +0 -0
  65. data/vendor/assets/images/flat-ui/tile/ribbon.png +0 -0
  66. data/vendor/assets/images/flat-ui/todo/done-2x.png +0 -0
  67. data/vendor/assets/images/flat-ui/todo/done.png +0 -0
  68. data/vendor/assets/images/flat-ui/todo/search-2x.png +0 -0
  69. data/vendor/assets/images/flat-ui/todo/search.png +0 -0
  70. data/vendor/assets/images/flat-ui/todo/todo-2x.png +0 -0
  71. data/vendor/assets/images/flat-ui/todo/todo.png +0 -0
  72. data/vendor/assets/images/flat-ui/video/fullscreen-2x.png +0 -0
  73. data/vendor/assets/images/flat-ui/video/fullscreen.png +0 -0
  74. data/vendor/assets/images/flat-ui/video/pause-2x.png +0 -0
  75. data/vendor/assets/images/flat-ui/video/pause.png +0 -0
  76. data/vendor/assets/images/flat-ui/video/play-2x.png +0 -0
  77. data/vendor/assets/images/flat-ui/video/play.png +0 -0
  78. data/vendor/assets/images/flat-ui/video/poster.jpg +0 -0
  79. data/vendor/assets/images/flat-ui/video/volume-full-2x.png +0 -0
  80. data/vendor/assets/images/flat-ui/video/volume-full.png +0 -0
  81. data/vendor/assets/images/flat-ui/video/volume-off-2x.png +0 -0
  82. data/vendor/assets/images/flat-ui/video/volume-off.png +0 -0
  83. data/vendor/assets/javascripts/flat-ui.js +2 -0
  84. data/vendor/assets/javascripts/flat-ui/flatui-checkbox.js +112 -0
  85. data/vendor/assets/javascripts/flat-ui/flatui-radio.js +139 -0
  86. data/vendor/assets/stylesheets/flat-ui.scss +1 -0
  87. data/vendor/assets/stylesheets/flat-ui/_mixins.scss +878 -0
  88. data/vendor/assets/stylesheets/flat-ui/_spaces.scss +172 -0
  89. data/vendor/assets/stylesheets/flat-ui/_variables.scss +509 -0
  90. data/vendor/assets/stylesheets/flat-ui/flat-ui.scss +45 -0
  91. data/vendor/assets/stylesheets/flat-ui/modules/_button-groups.scss +110 -0
  92. data/vendor/assets/stylesheets/flat-ui/modules/_buttons.scss +151 -0
  93. data/vendor/assets/stylesheets/flat-ui/modules/_caret.scss +30 -0
  94. data/vendor/assets/stylesheets/flat-ui/modules/_checkbox-and-radio.scss +143 -0
  95. data/vendor/assets/stylesheets/flat-ui/modules/_code.scss +49 -0
  96. data/vendor/assets/stylesheets/flat-ui/modules/_dropdown.scss +223 -0
  97. data/vendor/assets/stylesheets/flat-ui/modules/_footer.scss +76 -0
  98. data/vendor/assets/stylesheets/flat-ui/modules/_forms.scss +188 -0
  99. data/vendor/assets/stylesheets/flat-ui/modules/_glyphicons.scss +135 -0
  100. data/vendor/assets/stylesheets/flat-ui/modules/_input-groups.scss +153 -0
  101. data/vendor/assets/stylesheets/flat-ui/modules/_input-icons.scss +72 -0
  102. data/vendor/assets/stylesheets/flat-ui/modules/_local-fonts.scss +69 -0
  103. data/vendor/assets/stylesheets/flat-ui/modules/_login.scss +111 -0
  104. data/vendor/assets/stylesheets/flat-ui/modules/_navbar.scss +876 -0
  105. data/vendor/assets/stylesheets/flat-ui/modules/_pager.scss +51 -0
  106. data/vendor/assets/stylesheets/flat-ui/modules/_pagination.scss +166 -0
  107. data/vendor/assets/stylesheets/flat-ui/modules/_palette.scss +71 -0
  108. data/vendor/assets/stylesheets/flat-ui/modules/_progress-bars.scss +34 -0
  109. data/vendor/assets/stylesheets/flat-ui/modules/_scaffolding.scss +64 -0
  110. data/vendor/assets/stylesheets/flat-ui/modules/_select.scss +145 -0
  111. data/vendor/assets/stylesheets/flat-ui/modules/_share.scss +44 -0
  112. data/vendor/assets/stylesheets/flat-ui/modules/_slider.scss +105 -0
  113. data/vendor/assets/stylesheets/flat-ui/modules/_switch.scss +150 -0
  114. data/vendor/assets/stylesheets/flat-ui/modules/_tagsinput.scss +121 -0
  115. data/vendor/assets/stylesheets/flat-ui/modules/_thumbnails.scss +38 -0
  116. data/vendor/assets/stylesheets/flat-ui/modules/_tile.scss +54 -0
  117. data/vendor/assets/stylesheets/flat-ui/modules/_todo.scss +110 -0
  118. data/vendor/assets/stylesheets/flat-ui/modules/_tooltip.scss +56 -0
  119. data/vendor/assets/stylesheets/flat-ui/modules/_type.scss +208 -0
  120. data/vendor/assets/stylesheets/flat-ui/modules/_typeahead.scss +41 -0
  121. data/vendor/assets/stylesheets/flat-ui/modules/_video.scss +458 -0
  122. metadata +251 -0
@@ -0,0 +1,54 @@
1
+ //
2
+ // Tile
3
+ // -------------------------------------------------
4
+
5
+ .tile {
6
+ background-color: mix($brand-primary, $inverse, 8%);
7
+ border-radius: $border-radius-large;
8
+ padding: 14px;
9
+ position: relative;
10
+ text-align: center;
11
+
12
+ &.tile-hot {
13
+ &:before {
14
+ background: url(if($flat-ui-sass-asset-helper, flat-ui-image-path("flat-ui/tile/ribbon.png"), "flat-ui/tile/ribbon.png")) 0 0 no-repeat;
15
+ background-size: 82px 82px;
16
+ content: '';
17
+ height: 82px;
18
+ position: absolute;
19
+ right: -4px;
20
+ top: -4px;
21
+ width: 82px;
22
+ }
23
+ }
24
+ p {
25
+ font-size: 15px;
26
+ margin-bottom: 33px;
27
+ }
28
+ }
29
+ .tile-image {
30
+ height: 100px;
31
+ margin: 31px 0 27px;
32
+ vertical-align: bottom;
33
+
34
+ &.big-illustration {
35
+ height: 111px;
36
+ margin-top: 20px;
37
+ width: 112px;
38
+ }
39
+ }
40
+ .tile-title {
41
+ font-size: 20px;
42
+ margin: 0;
43
+ }
44
+
45
+ // Retina Support
46
+ @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) {
47
+ .tile {
48
+ &.tile-hot {
49
+ &:before {
50
+ background-image: url(if($flat-ui-sass-asset-helper, flat-ui-image-path("flat-ui/tile/ribbon-2x.png"), "flat-ui/tile/ribbon-2x.png"));
51
+ }
52
+ }
53
+ }
54
+ }
@@ -0,0 +1,110 @@
1
+ //
2
+ // Todo list
3
+ // --------------------------------------------------
4
+
5
+ .todo {
6
+ color: mix($brand-primary, $inverse, 66%);
7
+ margin-bottom: 20px;
8
+ border-radius: $border-radius-large;
9
+
10
+ ul {
11
+ background-color: mix($brand-primary, black, 85%);
12
+ margin: 0;
13
+ padding: 0;
14
+ list-style-type: none;
15
+ border-radius: 0 0 $border-radius-large $border-radius-large;
16
+ }
17
+ li {
18
+ background: $brand-primary url(if($flat-ui-sass-asset-helper, flat-ui-image-path("flat-ui/todo/todo.png"), "flat-ui/todo/todo.png")) 92% center no-repeat;
19
+ background-size: 20px 20px;
20
+ cursor: pointer;
21
+ font-size: ceil($component-font-size-base * 0.933); // ~14px
22
+ line-height: 1.214;
23
+ margin-top: 2px;
24
+ padding: 18px 42px 21px 25px;
25
+ position: relative;
26
+ @include transition(.25s);
27
+
28
+ &:first-child {
29
+ margin-top: 0;
30
+ }
31
+ &:last-child {
32
+ border-radius: 0 0 $border-radius-large $border-radius-large;
33
+ padding-bottom: 21px;
34
+ }
35
+ &.todo-done {
36
+ background: transparent url(if($flat-ui-sass-asset-helper, flat-ui-image-path("flat-ui/todo/done.png"), "flat-ui/todo/done.png")) 92% center no-repeat;
37
+ background-size: 20px 20px;
38
+ color: $brand-secondary;
39
+
40
+ .todo-name {
41
+ color: $brand-secondary;
42
+ }
43
+ }
44
+ }
45
+ }
46
+
47
+ .todo-search {
48
+ position: relative;
49
+ background: $brand-secondary;
50
+ background-size: 16px 16px;
51
+ border-radius: $border-radius-large $border-radius-large 0 0;
52
+ color: $brand-primary;
53
+ padding: 19px 25px 20px;
54
+
55
+ &:before {
56
+ position: absolute;
57
+ font-family: 'Flat-UI-Icons';
58
+ content: "\e01c";
59
+ font-size: 16px;
60
+ line-height: 17px;
61
+ display: inline-block;
62
+ top: 50%;
63
+ left: 92%;
64
+ margin: -0.5em 0 0 -1em;
65
+ }
66
+ }
67
+
68
+ input.todo-search-field {
69
+ background: none;
70
+ border: none;
71
+ color: $brand-primary;
72
+ font-size: 19px;
73
+ font-weight: 700;
74
+ margin: 0;
75
+ line-height: 23px;
76
+ padding: 5px 0;
77
+ text-indent: 0;
78
+ @include box-shadow(none);
79
+ @include placeholder($brand-primary);
80
+ }
81
+
82
+ .todo-icon {
83
+ float: left;
84
+ font-size: 24px;
85
+ padding: 11px 22px 0 0;
86
+ }
87
+
88
+ .todo-content {
89
+ padding-top: 1px;
90
+ overflow: hidden;
91
+ }
92
+
93
+ .todo-name {
94
+ color: $inverse;
95
+ font-size: 17px;
96
+ margin: 1px 0 3px;
97
+ }
98
+
99
+ // Retina Support
100
+ @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) {
101
+ .todo {
102
+ li {
103
+ background-image: url(if($flat-ui-sass-asset-helper, flat-ui-image-path("flat-ui/todo/todo-2x.png"), "flat-ui/todo/todo-2x.png"));
104
+
105
+ &.todo-done {
106
+ background-image: url(if($flat-ui-sass-asset-helper, flat-ui-image-path("flat-ui/todo/done-2x.png"), "flat-ui/todo/done-2x.png"));
107
+ }
108
+ }
109
+ }
110
+ }
@@ -0,0 +1,56 @@
1
+ // Tooltip
2
+ // --------------------------------------------------
3
+
4
+ .tooltip {
5
+ font-size: ceil($component-font-size-base * 0.933); // ~14px
6
+ line-height: 1.286; // 18px
7
+
8
+ &.in {
9
+ opacity: 1;
10
+ }
11
+ &.top {
12
+ padding-bottom: 9px;
13
+
14
+ .tooltip-arrow {
15
+ border-top-color: $brand-primary;
16
+ border-width: 9px 9px 0;
17
+ bottom: 0;
18
+ margin-left: -9px;
19
+ }
20
+ }
21
+ &.right {
22
+ .tooltip-arrow {
23
+ border-right-color: $brand-primary;
24
+ border-width: 9px 9px 9px 0;
25
+ margin-top: -9px;
26
+ left: -3px;
27
+ }
28
+ }
29
+ &.bottom {
30
+ padding-top: 8px;
31
+
32
+ .tooltip-arrow {
33
+ border-bottom-color: $brand-primary;
34
+ border-width: 0 9px 9px;
35
+ margin-left: -9px;
36
+ top: -1px;
37
+ }
38
+ }
39
+ &.left {
40
+ .tooltip-arrow {
41
+ border-left-color: $brand-primary;
42
+ border-width: 9px 0 9px 9px;
43
+ margin-top: -9px;
44
+ right: -3px;
45
+ }
46
+ }
47
+ }
48
+
49
+ .tooltip-inner {
50
+ background-color: $brand-primary;
51
+ line-height: 1.286; // 18px
52
+ padding: 12px 12px;
53
+ text-align: center;
54
+ width: 183px;
55
+ border-radius: $border-radius-large;
56
+ }
@@ -0,0 +1,208 @@
1
+ //
2
+ // Typography
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Headings
7
+ // -------------------------
8
+
9
+ h1, h2, h3, h4, h5, h6,
10
+ .h1, .h2, .h3, .h4, .h5, .h6 {
11
+ font-family: $headings-font-family;
12
+ font-weight: $headings-font-weight;
13
+ line-height: $headings-line-height;
14
+ color: $headings-color;
15
+
16
+ small {
17
+ color: $headings-small-color;
18
+ }
19
+ }
20
+
21
+ h1,
22
+ h2,
23
+ h3 {
24
+ margin-top: $line-height-computed;
25
+ margin-bottom: ($line-height-computed / 2);
26
+ }
27
+ h4,
28
+ h5,
29
+ h6 {
30
+ margin-top: ($line-height-computed / 2);
31
+ margin-bottom: ($line-height-computed / 2);
32
+ }
33
+
34
+ h6 {
35
+ font-weight: normal;
36
+ }
37
+
38
+ h1, .h1 { font-size: $font-size-h1; } // ~62px
39
+ h2, .h2 { font-size: $font-size-h2; } // ~52px
40
+ h3, .h3 { font-size: $font-size-h3; } // ~40px
41
+ h4, .h4 { font-size: $font-size-h4; } // ~29px
42
+ h5, .h5 { font-size: $font-size-h5; } // ~28px
43
+ h6, .h6 { font-size: $font-size-h6; } // ~24px
44
+
45
+
46
+ // Body text
47
+ // -------------------------
48
+
49
+ p {
50
+ font-size: $font-size-base;
51
+ line-height: $line-height-base;
52
+ margin: 0 0 ($line-height-computed / 2);
53
+ }
54
+
55
+ .lead {
56
+ margin-bottom: $line-height-computed;
57
+ font-size: floor($font-size-base * 1.556); // ~28px
58
+ line-height: 1.46428571; // ~41px
59
+ font-weight: 300;
60
+
61
+ @media (min-width: $screen-sm-min) {
62
+ font-size: ($font-size-base * 1.667); // ~30px
63
+ }
64
+ }
65
+
66
+ // Emphasis & misc
67
+ // -------------------------
68
+
69
+ // Ex: 18px base font * 83% = about 15px
70
+ small,
71
+ .small {
72
+ font-size: 83%; // ~15px
73
+ line-height: 2.067; // ~31px
74
+ }
75
+
76
+ // Contextual emphasis
77
+ .text-muted {
78
+ color: $text-muted;
79
+ }
80
+ .text-inverse {
81
+ color: $inverse;
82
+ }
83
+
84
+ @include text-emphasis-variant('.text-primary', $brand-secondary);
85
+
86
+ @include text-emphasis-variant('.text-warning', $state-warning-text);
87
+
88
+ @include text-emphasis-variant('.text-danger', $state-danger-text);
89
+
90
+ @include text-emphasis-variant('.text-success', $state-success-text);
91
+
92
+ @include text-emphasis-variant('.text-info', $state-info-text);
93
+
94
+ // Contextual backgrounds
95
+ .bg-primary {
96
+ // Given the contrast here, this is the only class to have its color inverted
97
+ // automatically.
98
+ color: $inverse;
99
+ }
100
+
101
+ @include bg-variant('.bg-primary', $brand-primary);
102
+
103
+ @include bg-variant('.bg-success', $state-success-bg);
104
+
105
+ @include bg-variant('.bg-info', $state-info-bg);
106
+
107
+ @include bg-variant('.bg-warning', $state-warning-bg);
108
+
109
+ @include bg-variant('.bg-danger', $state-danger-bg);
110
+
111
+
112
+ // Page header
113
+ // -------------------------
114
+
115
+ .page-header {
116
+ padding-bottom: (($line-height-computed / 2) - 1);
117
+ margin: ($line-height-computed * 2) 0 $line-height-computed;
118
+ border-bottom: 1px solid $page-header-border-color;
119
+ }
120
+
121
+
122
+ // Lists
123
+ // --------------------------------------------------
124
+
125
+ // Unordered and Ordered lists
126
+ ul,
127
+ ol {
128
+ margin-bottom: ($line-height-computed / 2);
129
+ }
130
+
131
+ // Description Lists
132
+ dl {
133
+ margin-bottom: $line-height-computed;
134
+ }
135
+ dt,
136
+ dd {
137
+ line-height: $line-height-base;
138
+ }
139
+
140
+ // Horizontal description lists
141
+ //
142
+ // Defaults to being stacked without any of the below styles applied, until the
143
+ // grid breakpoint is reached (default of ~768px).
144
+
145
+ @media (min-width: $grid-float-breakpoint) {
146
+ .dl-horizontal {
147
+ dt {
148
+ width: ($component-offset-horizontal - 20);
149
+ }
150
+ dd {
151
+ margin-left: $component-offset-horizontal;
152
+ }
153
+ }
154
+ }
155
+
156
+ // MISC
157
+ // ----
158
+
159
+ // Abbreviations and acronyms
160
+ abbr[title],
161
+ abbr[data-original-title] {
162
+ border-bottom: 1px dotted $abbr-border-color;
163
+ }
164
+
165
+ // Blockquotes
166
+ blockquote {
167
+ border-left: 3px solid $blockquote-border-color;
168
+ padding: 0 0 0 16px;
169
+ margin: 0 0 $line-height-computed;
170
+
171
+ p {
172
+ font-size: ceil($font-size-base * 1.111); // ~20px
173
+ line-height: 1.55; // ~31px
174
+ font-weight: normal;
175
+ margin-bottom: .4em;
176
+ }
177
+ small,
178
+ .small {
179
+ font-size: $font-size-base;
180
+ line-height: $line-height-base;
181
+ font-style: italic;
182
+ color: $blockquote-small-color;
183
+
184
+ &:before {
185
+ content: "";
186
+ }
187
+ }
188
+
189
+ // Float right with text-align: right
190
+ &.pull-right {
191
+ padding-right: 16px;
192
+ padding-left: 0;
193
+ border-right: 3px solid $blockquote-border-color;
194
+ border-left: 0;
195
+
196
+ small {
197
+ &:after {
198
+ content: "";
199
+ }
200
+ }
201
+ }
202
+ }
203
+
204
+ // Addresses
205
+ address {
206
+ margin-bottom: $line-height-computed;
207
+ line-height: $line-height-base;
208
+ }
@@ -0,0 +1,41 @@
1
+ //
2
+ // Typeahead
3
+ // --------------------------------------------------
4
+
5
+ .twitter-typeahead {
6
+ width: 100%;
7
+
8
+ .tt-query,
9
+ .tt-hint {
10
+ @extend .form-control;
11
+ }
12
+
13
+ .tt-dropdown-menu {
14
+ width: 100%;
15
+ margin-top: 5px;
16
+ border: 2px solid $brand-secondary;
17
+ padding: 5px 0;
18
+ background-color: $inverse;
19
+ border-radius: $border-radius-large;
20
+ }
21
+
22
+ .tt-suggestion {
23
+ p {
24
+ padding: 6px 14px;
25
+ font-size: ceil($component-font-size-base * 0.933);
26
+ line-height: 1.429; // ~20px
27
+ margin: 0;
28
+ }
29
+
30
+ &:first-child,
31
+ &:last-child {
32
+ p {
33
+ padding: 6px 14px;
34
+ }
35
+ }
36
+ &.tt-is-under-cursor {
37
+ color: #fff;
38
+ background-color: mix($brand-secondary, black, 85%);
39
+ }
40
+ }
41
+ }