scala-news-reader
rss/atom news reader in scala
git clone https://9o.is/git/scala-news-reader.git
variables.less
(10045B)
1 //
2 // Variables
3 // --------------------------------------------------
4
5 // Global values
6 // --------------------------------------------------
7
8 @readBlue: #5bc1e9;
9 @readOrange: #fb850b;
10
11 // Grays
12 // -------------------------
13 @black: #000;
14 @grayDarker: #222;
15 @grayDark: #333;
16 @gray: #555;
17 @grayLight: #999;
18 @grayLighter: #eee;
19 @grayLightest: #f2f2f2;
20 @white: #fff;
21
22
23 // Accent colors
24 // -------------------------
25 @blue: #049cdb;
26 @blueDark: #0064cd;
27 @green: #46a546;
28 @red: #9d261d;
29 @yellow: #ffc40d;
30 @orange: #f89406;
31 @pink: #c3325f;
32 @purple: #7a43b6;
33 @gold: #ffd700;
34
35 // Scaffolding
36 // -------------------------
37 @bodyBackground: @grayLightest;
38 @textColor: @grayDark;
39
40
41 // Links
42 // -------------------------
43 @linkColor: @readBlue; //#08c;
44 @linkColorHover: darken(@linkColor, 15%);
45
46
47 // Typography
48 // -------------------------
49 @fftisaFontFamily: "ff-tisa-web-pro"; // typekit (or use tk-ff-tisa-web-pro class)
50 @actaFontFamily: "acta-poster-swashes"; // typekit (or use tk-acta-poster-swashes class)
51 @baskFontFamily: "Open Baskerville 0.0.53"; // openFontDb
52 @sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
53 @serifFontFamily: Georgia, "Times New Roman", Times, serif;
54 @monoFontFamily: Monaco, Menlo, Consolas, "Courier New", monospace;
55
56 @baseFontSize: 18px; // 100% + 2px
57 @baseFontFamily: @fftisaFontFamily; //@sansFontFamily; //@baskFontFamily;
58 @baseLineHeight: 30px;
59 @altFontFamily: @serifFontFamily;
60
61 @headingsFontFamily: inherit; // empty to use BS default, @baseFontFamily
62 @headingsFontWeight: bold; // instead of browser default, bold
63 @headingsColor: inherit; // empty to use BS default, @textColor
64
65
66 // Component sizing
67 // -------------------------
68 @boxedArticlesWidth: 800px;
69 @fontSizeArticle: 22px;
70 @lineHeightArticle: 2;
71
72 @fontSizeLarge: @baseFontSize * 1.25;
73 @fontSizeSmall: @baseFontSize * 0.85;
74 @fontSizeMini: @baseFontSize * 0.75;
75
76 @paddingLarge: 11px 19px; // 44px
77 @paddingSmall: 2px 10px; // 26px
78 @paddingMini: 0 6px; // 22px
79
80 @baseBorderRadius: 4px;
81 @borderRadiusLarge: 6px;
82 @borderRadiusSmall: 3px;
83
84
85 // Tables
86 // -------------------------
87 @tableBackground: transparent; // overall background-color
88 @tableBackgroundAccent: #f9f9f9; // for striping
89 @tableBackgroundHover: #f5f5f5; // for hover
90 @tableBorder: #ddd; // table and cell border
91
92 // Buttons
93 // -------------------------
94 @btnBackground: @white;
95 @btnBackgroundHighlight: darken(@white, 10%);
96 @btnBorder: #ccc;
97
98 @btnPrimaryBackground: @linkColor;
99 @btnPrimaryBackgroundHighlight: spin(@btnPrimaryBackground, 20%);
100
101 @btnInfoBackground: @readOrange; //#5bc0de;
102 @btnInfoBackgroundHighlight: spin(@btnInfoBackground, 10%); //#2f96b4;
103
104 @btnSuccessBackground: #62c462;
105 @btnSuccessBackgroundHighlight: #51a351;
106
107 @btnWarningBackground: lighten(@orange, 15%);
108 @btnWarningBackgroundHighlight: @orange;
109
110 @btnDangerBackground: #ee5f5b;
111 @btnDangerBackgroundHighlight: #bd362f;
112
113 @btnInverseBackground: #444;
114 @btnInverseBackgroundHighlight: @grayDarker;
115
116
117 // Forms
118 // -------------------------
119 @inputBackground: #F4F4F4;
120 @inputBorder: #ccc;
121 @inputBorderRadius: @baseBorderRadius;
122 @inputDisabledBackground: @grayLighter;
123 @formActionsBackground: @bodyBackground;
124 @inputHeight: @baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
125
126
127 // Dropdowns
128 // -------------------------
129 @dropdownBackground: @white;
130 @dropdownBorder: rgba(0,0,0,.2);
131 @dropdownDividerTop: #e5e5e5;
132 @dropdownDividerBottom: @white;
133
134 @dropdownLinkColor: @grayDark;
135 @dropdownLinkColorHover: @white;
136 @dropdownLinkColorActive: @white;
137
138 @dropdownLinkBackgroundActive: @linkColor;
139 @dropdownLinkBackgroundHover: @dropdownLinkBackgroundActive;
140
141
142
143 // COMPONENT VARIABLES
144 // --------------------------------------------------
145
146
147 // Z-index master list
148 // -------------------------
149 // Used for a bird's eye view of components dependent on the z-axis
150 // Try to avoid customizing these :)
151 @zindexDropdown: 1000;
152 @zindexPopover: 1010;
153 @zindexNotice: 1020;
154 @zindexTooltip: 1030;
155 @zindexFixedNavbar: 1030;
156 @zindexModalBackdrop: 1040;
157 @zindexModal: 1050;
158
159
160 // Sprite icons path
161 // -------------------------
162 @iconSpritePath: "../img/glyphicons-halflings.png";
163 @iconWhiteSpritePath: "../img/glyphicons-halflings-white.png";
164
165
166 // Input placeholder text color
167 // -------------------------
168 @placeholderText: @grayLight;
169
170
171 // Hr border color
172 // -------------------------
173 @hrBorder: @grayLighter;
174
175
176 // Horizontal forms & lists
177 // -------------------------
178 @horizontalComponentOffset: 180px;
179
180
181 // Wells
182 // -------------------------
183 @wellBackground: #f5f5f5;
184
185
186 // Navbar
187 // -------------------------
188 @navbarCollapseWidth: 979px;
189 @navbarCollapseDesktopWidth: @navbarCollapseWidth + 1;
190
191 @navbarHeight: 50px;
192 @navbarBackgroundHighlight: #ffffff;
193 @navbarBackground: darken(@navbarBackgroundHighlight, 5%);
194 @navbarBorder: darken(@navbarBackground, 12%);
195
196 @navbarText: #777;
197 @navbarLinkColor: #777;
198 @navbarLinkColorHover: @grayDark;
199 @navbarLinkColorActive: @gray;
200 @navbarLinkBackgroundHover: transparent;
201 @navbarLinkBackgroundActive: darken(@navbarBackground, 5%);
202
203 @navbarBrandColor: @navbarLinkColor;
204
205 // Inverted navbar
206 @navbarInverseBackground: #111111;
207 @navbarInverseBackgroundHighlight: #222222;
208 @navbarInverseBorder: #252525;
209
210 @navbarInverseText: @grayLight;
211 @navbarInverseLinkColor: @grayLight;
212 @navbarInverseLinkColorHover: @white;
213 @navbarInverseLinkColorActive: @navbarInverseLinkColorHover;
214 @navbarInverseLinkBackgroundHover: transparent;
215 @navbarInverseLinkBackgroundActive: @navbarInverseBackground;
216
217 @navbarInverseSearchBackground: lighten(@navbarInverseBackground, 25%);
218 @navbarInverseSearchBackgroundFocus: @white;
219 @navbarInverseSearchBorder: @navbarInverseBackground;
220 @navbarInverseSearchPlaceholderColor: #ccc;
221
222 @navbarInverseBrandColor: @navbarInverseLinkColor;
223
224 // Email Sign up
225 // -------------------------
226 @emailSignupHeight: 80px;
227
228 // Marketing
229 // -------------------------
230 @marketingFontSize: 50px;
231 @marketingLineHeight: 55px;
232
233
234 // Pagination
235 // -------------------------
236 @paginationBackground: #fff;
237 @paginationBorder: #ddd;
238 @paginationActiveBackground: #f5f5f5;
239
240
241 // Hero unit
242 // -------------------------
243 @heroUnitBackground: @grayLighter;
244 @heroUnitHeadingColor: inherit;
245 @heroUnitLeadColor: inherit;
246
247
248 // Form states and alerts
249 // -------------------------
250 @warningText: #c09853;
251 @warningBackground: #fcf8e3;
252 @warningBorder: darken(spin(@warningBackground, -10), 3%);
253
254 @errorText: #b94a48;
255 @errorBackground: #f2dede;
256 @errorBorder: darken(spin(@errorBackground, -10), 3%);
257
258 @successText: #468847;
259 @successBackground: #dff0d8;
260 @successBorder: darken(spin(@successBackground, -10), 5%);
261
262 @infoText: #3a87ad;
263 @infoBackground: #d9edf7;
264 @infoBorder: darken(spin(@infoBackground, -10), 7%);
265
266
267 // Tooltips and popovers
268 // -------------------------
269 @tooltipColor: #fff;
270 @tooltipBackground: #000;
271 @tooltipArrowWidth: 5px;
272 @tooltipArrowColor: @tooltipBackground;
273
274 @popoverBackground: #fff;
275 @popoverArrowWidth: 10px;
276 @popoverArrowColor: #fff;
277 @popoverTitleBackground: darken(@popoverBackground, 3%);
278
279 // Special enhancement for popovers
280 @popoverArrowOuterWidth: @popoverArrowWidth + 1;
281 @popoverArrowOuterColor: rgba(0,0,0,.25);
282
283
284
285 // GRID
286 // --------------------------------------------------
287
288
289 // Default 940px grid
290 // -------------------------
291 @gridColumns: 12;
292 @gridColumnWidth: 60px;
293 @gridGutterWidth: 20px;
294 @gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
295
296 // 1200px min
297 @gridColumnWidth1200: 70px;
298 @gridGutterWidth1200: 30px;
299 @gridRowWidth1200: (@gridColumns * @gridColumnWidth1200) + (@gridGutterWidth1200 * (@gridColumns - 1));
300
301 // 768px-979px
302 @gridColumnWidth768: 42px;
303 @gridGutterWidth768: 20px;
304 @gridRowWidth768: (@gridColumns * @gridColumnWidth768) + (@gridGutterWidth768 * (@gridColumns - 1));
305
306
307 @gridColumnWidth768NoGutter: 62px;
308 @gridRowWidth768NoGutter: (@gridColumns * @gridColumnWidth768);
309 @gridColumnWidth1200NoGutter: 100px;
310 @gridRowWidth1200NoGutter: (@gridColumns * @gridColumnWidth1200);
311
312
313 // Fluid grid
314 // -------------------------
315 @fluidGridColumnWidth: percentage(@gridColumnWidth/@gridRowWidth);
316 @fluidGridGutterWidth: percentage(@gridGutterWidth/@gridRowWidth);
317
318 // 1200px min
319 @fluidGridColumnWidth1200: percentage(@gridColumnWidth1200/@gridRowWidth1200);
320 @fluidGridGutterWidth1200: percentage(@gridGutterWidth1200/@gridRowWidth1200);
321
322 // 768px-979px
323 @fluidGridColumnWidth768: percentage(@gridColumnWidth768/@gridRowWidth768);
324 @fluidGridGutterWidth768: percentage(@gridGutterWidth768/@gridRowWidth768);