source: VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/src/main/webapp/css/CLARIN.scss @ 5558

Last change on this file since 5558 was 5558, checked in by Twan Goosen, 10 years ago

Added build-time compilation of SCSS, copied CLARIN SCSS and switched VCR style from CSS to SCSS
Refs #594

File size: 9.5 KB
Line 
1@charset "UTF-8";
2
3$indent: 7px;
4
5// Colors
6
7$red: #9e0025;
8//$blue: #52acda;
9//$dark_powder_blue: #003399;
10//$clarin_blue_old: #007bc5;
11$clarin_blue: #00406f;
12$grey: #e3e3e3;
13$light_grey: #f3f3f3;
14
15$thin_separator_grey: #e7e7e7;
16$text: #666;
17$text2: #222;
18//$hyperlink_color: #03683f;
19$hyperlink_visited: #806a52;
20$background_color: #f9f9f9;
21
22// Font
23
24@import "//fonts.googleapis.com/css?family=Roboto";
25// "//fonts.googleapis.com/css?family=Roboto:100italic,100,300italic,300,400italic,400,500italic,500,700italic,700,900italic,900"
26$font-stack: 'Roboto', Arial, Helvetica, Myriad, Verdana, Sans-Serif;
27
28
29body {
30    font-family: $font-stack;
31    -webkit-font-smoothing: antialiased;
32    -moz-osx-font-smoothing: grayscale;
33    color: $text2;
34    font-size: 100%;
35    word-wrap: break-word;
36}
37
38a {
39    //color: $text2;
40    text-decoration: dotted !important;
41
42    &:hover, &:focus {
43        // color: inherit;
44        text-decoration: none !important;
45    }
46
47    &:visited {
48        color: $hyperlink_visited;
49    }
50}
51
52a.navbar-brand {
53    // color: #d7ceb2;
54    //text-shadow: 3px 3px 0px #2c2e38, 5px 5px 0px #5c5f72;
55    font-size: 3em;
56    //letter-spacing: 1px;
57
58    //$clarin_blue1: #00406f;
59    //$clarin_blue2: #006dab;
60    //$clarin_blue3: #007eda;
61
62    //font-weight: bold;
63    line-height: 1em;
64    //color: $clarin_blue !important;
65
66    text-shadow: -.025em -.025em .0125em rgba(0, 64, 111, 0.8), -.060em -.080em 0.02em rgba(0, 64, 111, 0.6); //rgba(90, 90, 90, .6);
67}
68
69/*
70a {
71    text-decoration: none;
72}
73
74a:link {
75    color: #00c;
76    border-bottom: 1px solid #00c;
77}
78
79a:visited {
80    color: #6D006D;
81    border-bottom: 1px dotted #6D006D;
82}
83
84a:focus {
85    color: #c00;
86    border-bottom: 1px dashed #c00;
87}
88
89a:hover {
90    color: #c00;
91    border-bottom: 1px dashed #c00;
92}
93
94a:active {
95    color: #c00;
96    border-bottom: 1px solid #c00;
97    font-style: italic;
98}
99*/
100
101h1, h2, h3, h4, h5, h6, label {
102    color: $text;
103    font-weight: normal;
104    line-height: 1.2em;
105}
106
107body, h1, h2, h3, h4, h5, h6 {
108    font-size-adjust: 0.5;
109}
110
111/* Based on http://typecast.com/blog/a-more-modern-scale-for-web-typography */
112
113#page {
114    font-size: 1em;
115    /* equivalent to 16px */
116    line-height: 1.25;
117    /* equivalent to 20px */
118}
119
120h1 {
121    font-size: 2em;
122    /* 2x body copy size = 32px */
123    line-height: 1.25;
124    /* 45px / 36px */
125    margin-top: 0px !important;
126    margin-bottom: 0px !important;
127}
128
129h2 {
130    font-size: 1.625em;
131    /* 1.625x body copy size = 26px */
132    line-height: 1.15384615;
133    /* 30px / 26px */
134}
135
136h3 {
137    font-size: 1.375em;
138    /* 1.375x body copy size = 22px */
139    line-height: 1.13636364;
140    /* 25px / 22px */
141}
142
143h4 {
144    font-size: 1.125em;
145    /* 1.125x body copy size = 18px */
146    line-height: 1.11111111;
147}
148
149blockquote {
150    font-size: 1.25em;
151    /* 20px / 16px */
152    line-height: 1.25;
153    /* 25px / 20px */
154}
155
156@media (min-width: 56.25em) {
157    h1 {
158        font-size: 3em;
159        /* 3x body copy size = 48px */
160        line-height: 1.05;
161        /* keep to a multiple of the 20px line height
162        and something more appropriate for display headings */
163    }
164
165    h2 {
166        font-size: 2.25em;
167        /* 2.25x body copy size = 36px */
168        line-height: 1.25;
169    }
170
171    h3 {
172        font-size: 1.75em;
173        /* 1.75x body copy size = 28px */
174        line-height: 1.25;
175    }
176}
177
178@media (min-width: 43.75em) {
179    #page {
180        font-size: 1em;
181        /* equivalent to 16px */
182        line-height: 1.375;
183        /* equivalent to 22px */
184    }
185
186    h1 {
187        font-size: 2.5em;
188        /* 2.5x body copy size = 40px */
189        line-height: 1.125;
190    }
191
192    h2 {
193        font-size: 2em;
194        /* 2x body copy size = 32px */
195        line-height: 1.25;
196    }
197
198    h3 {
199        font-size: 1.5em;
200        /* 1.5x body copy size = 24px */
201        line-height: 1.25;
202    }
203
204    h4 {
205        line-height: 1.22222222;
206        /* (22px / 18px */
207    }
208
209    blockquote {
210        font-size: 1.5em;
211        /* 24px / 16px = */
212        line-height: 1.45833333;
213        /* 35px / 24px */
214    }
215}
216
217p {
218    margin: 0 0 15px 0;
219}
220
221//input {
222//  @include box-sizing(border-box);
223//}
224
225menu, ol, ul {
226    padding: 0 0 0 20px;
227}
228
229hr {
230    clear: both;
231}
232
233div.container {
234    z-index: -1 !important;
235}
236
237// Tables
238
239//@import "compass/utilities/tables";
240
241table.display {
242    border-collapse: collapse !important;
243    position: relative !important;
244    border-spacing: 0 !important;
245    border: 0px !important;
246    background-clip: padding-box;
247    //background-repeat: no-repeat;
248    //background-position: center top;
249
250    th, td {
251        border: 0px !important;
252        //background-clip: content-box !important;
253    }
254
255    thead tr th {
256        background-color: $clarin_blue !important;
257        border-collapse: collapse !important;
258        //background-clip: content-box !important;
259        background-attachment: scroll !important;
260        //border-bottom: 0px !important;
261        color: #fff !important;
262    }
263
264    thead {
265        tr th:first-child {
266            border-top-left-radius: 6px !important;
267            border-bottom-left-radius: 6px !important;
268
269            -webkit-border-top-left-radius: 6px !important;
270            -webkit-border-bottom-left-radius: 6px !important;
271
272            -moz-border-top-left-radius: 6px !important;
273            -moz-border-bottom-left-radius: 6px !important;
274        }
275
276        tr {
277            padding: $indent $indent !important;
278            font-weight: bolder !important;
279            text-align: left !important;
280            border: 0px !important;
281        }
282
283        tr th a {
284            color: #fff !important;
285            text-decoration: underline !important;
286        }
287
288        tr th:last-child {
289            border-top-right-radius: 6px !important;
290            border-bottom-right-radius: 6px !important;
291
292            -webkit-border-top-right-radius: 6px !important;
293            -webkit-border-bottom-right-radius: 6px !important;
294
295            -moz-border-top-right-radius: 6px !important;
296            -moz-border-bottom-right-radius: 6px !important;
297        }
298    }
299}
300
301table {
302    tbody {
303        tr:nth-child(2n+1) td {
304            background-color: $grey !important;
305        }
306
307        td:first-child {
308            -webkit-border-top-left-radius: 6px !important;
309            -webkit-border-bottom-left-radius: 6px !important;
310
311            -moz-border-top-left-radius: 6px !important;
312            -moz-border-bottom-left-radius: 6px !important;
313
314            border-top-left-radius: 6px !important;
315            border-bottom-left-radius: 6px !important;
316        }
317
318        td:last-child {
319            -webkit-border-top-right-radius: 6px !important;
320            -webkit-border-bottom-right-radius: 6px !important;
321
322            -moz-border-top-right-radius: 6px !important;
323            -moz-border-bottom-right-radius: 6px !important;
324
325            border-top-right-radius: 6px !important;
326            border-bottom-right-radius: 6px !important;
327        }
328
329        tr {
330            //border-bottom: 1px solid #e6e6e6 !important;
331            vertical-align: middle !important;
332            //background-clip: padding-box !important;
333            //border-collapse: collapse !important;
334        }
335
336        tr:last-child td:first-child {
337            -webkit-border-bottom-left-radius: 6px !important;
338            -moz-border-bottom-left-radius: 6px !important;
339            border-bottom-left-radius: 6px !important;
340        }
341
342        tr:last-child td:last-child {
343            -webkit-border-bottom-right-radius: 6px !important;
344            -moz-border-bottom-right-radius: 6px !important;
345            border-bottom-right-radius: 6px !important;
346        }
347
348        tr:last-child {
349            border-bottom: 1px solid $clarin_blue !important;
350        }
351    }
352}
353
354table:not(.display) {
355    tr:first-child {
356        border-top: 1px solid $clarin_blue !important;
357    }
358
359    td, th {
360        padding: 5px;
361    }
362
363    th {
364        background-color: $grey;
365        border-right: 1px dotted black;
366    }
367
368}
369
370html body ul#nav ul, html body ul#nav ul li {
371    width: 200px;
372}
373
374html body ul#nav ul ul {
375    margin: 0 0 0 200px;
376}
377
378div#body {
379    min-height: 100%;
380    height: auto;
381    margin: 0 auto -60px;
382    /* Pad top and bottom to prevent overflow over body div. */
383    padding: 60px 0 60px;
384}
385
386div#footer {
387    height: 60px;
388    background-color: #f5f5f5;
389    //position: absolute;
390    bottom: 0;
391    left: 0;
392    width: 100%;
393    border-top: 1px solid $thin_separator_grey;
394    margin-top: 20px;
395
396    div.container {
397        // height: 60px !important;
398        height: 100%;
399    }
400
401    a {
402        color: $text2;
403        text-decoration: none;
404
405        &:hover, &:focus {
406            color: inherit;
407            text-decoration: none !important;
408        }
409
410        &:visited {
411            color: inherit;
412        }
413    }
414
415    div#CLARIN_footer_left {
416        float: left;
417        display: inline-block;
418        text-align: left;
419        width: 25%;
420        max-height: 100%;
421    }
422
423    div#CLARIN_footer_middle {
424        float: left;
425        display: inline-block;
426        text-align: center;
427        width: 50%;
428        max-height: 100%;
429
430        img {
431            display: inline-block;
432            max-width: 100%;
433            max-height: 100%;
434            overflow: hidden;
435        }
436    }
437
438    div#CLARIN_footer_right {
439        float: left;
440        text-align: right;
441        width: 25%;
442        max-height: 100%;
443    }
444}
445
446ul#CLARIN_header_right, div#CLARIN_footer_left, div#CLARIN_footer_right {
447    :not(.glyphicon) {
448        font-family: $font-stack;
449    }
450
451    margin: 0px 4px 0 p x 4px;
452    text-shadow: -1px -1px 1px #fff, 1px 1px 1px #000;
453    color: #584938;
454    opacity: 0.4;
455}
456
Note: See TracBrowser for help on using the repository browser.