Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 1 | @charset "utf-8"; |
2 | @import "util"; | ||||
3 | |||||
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame^] | 4 | /** |
5 | * Basic global CSS rules for Kalamar | ||||
6 | */ | ||||
7 | |||||
8 | body, | ||||
9 | html, | ||||
10 | select, | ||||
11 | g > text { | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 12 | color: $dark-grey; |
13 | font-family: verdana, tahoma, arial; | ||||
14 | margin: 0; | ||||
15 | } | ||||
16 | |||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 17 | * { |
18 | @include box-sizing-box; | ||||
19 | } | ||||
20 | |||||
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 21 | g > text { |
22 | fill: $dark-grey; | ||||
23 | } | ||||
24 | |||||
Nils Diewald | 1c54692 | 2015-04-13 01:56:19 +0000 | [diff] [blame] | 25 | html { |
26 | height: 100%; | ||||
27 | } | ||||
28 | |||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 29 | body { |
Nils Diewald | 1c54692 | 2015-04-13 01:56:19 +0000 | [diff] [blame] | 30 | position: relative; |
31 | min-height: 100%; | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 32 | font-size: 12pt; |
33 | } | ||||
34 | |||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 35 | |
36 | a { | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 37 | &:link { |
38 | color: $dark-orange; | ||||
39 | text-decoration: none; | ||||
Nils Diewald | 1c54692 | 2015-04-13 01:56:19 +0000 | [diff] [blame] | 40 | &:hover { |
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame] | 41 | color: $darkest-orange; |
Nils Diewald | 1c54692 | 2015-04-13 01:56:19 +0000 | [diff] [blame] | 42 | @include color-transition; |
43 | } | ||||
Nils Diewald | 9922edf | 2015-05-07 20:03:33 +0000 | [diff] [blame] | 44 | } |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame^] | 45 | |
46 | // Visited links | ||||
Nils Diewald | 9922edf | 2015-05-07 20:03:33 +0000 | [diff] [blame] | 47 | &:visited { |
48 | color: $darkest-orange; | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 49 | } |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame^] | 50 | |
51 | // External links | ||||
52 | &[href^="http://"]::after, | ||||
53 | &[href^="https://"]::after { | ||||
54 | font-family: FontAwesome; | ||||
55 | content: " " + $fa-extlink; | ||||
56 | font-size: 75%; | ||||
57 | } | ||||
58 | |||||
59 | // Link to documentation | ||||
60 | &.doc-link::after { | ||||
61 | font-family: FontAwesome; | ||||
62 | content: " " + $fa-tutorial; | ||||
63 | font-size: 75%; | ||||
64 | } | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 65 | } |
Nils Diewald | c46003b | 2015-05-07 15:55:35 +0000 | [diff] [blame] | 66 | |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame^] | 67 | // Styles for Mojolicious::Plugin::TagHelpers::MailToChiffre |
Nils Diewald | c46003b | 2015-05-07 15:55:35 +0000 | [diff] [blame] | 68 | a[onclick$='return PArok(this,false)'] { |
69 | direction:rtl; | ||||
70 | unicode-bidi:bidi-override; | ||||
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame^] | 71 | text-align:left; |
72 | & > span { | ||||
73 | &:nth-child(1n+2){ | ||||
74 | display:none | ||||
75 | } | ||||
76 | &:nth-child(1)::after{ | ||||
77 | content:'@' | ||||
78 | } | ||||
79 | } | ||||
Nils Diewald | c46003b | 2015-05-07 15:55:35 +0000 | [diff] [blame] | 80 | } |