| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 1 | @charset "utf-8"; |
| 2 | @import "util"; | ||||
| 3 | |||||
| Akron | 07c720e | 2016-01-04 20:56:46 +0100 | [diff] [blame^] | 4 | $border-size: 2px; |
| 5 | |||||
| Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 6 | /** |
| 7 | * Basic global CSS rules for Kalamar | ||||
| 8 | */ | ||||
| 9 | |||||
| 10 | body, | ||||
| 11 | html, | ||||
| 12 | select, | ||||
| 13 | g > text { | ||||
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 14 | color: $dark-grey; |
| 15 | font-family: verdana, tahoma, arial; | ||||
| 16 | margin: 0; | ||||
| 17 | } | ||||
| 18 | |||||
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 19 | * { |
| 20 | @include box-sizing-box; | ||||
| 21 | } | ||||
| 22 | |||||
| Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 23 | g > text { |
| 24 | fill: $dark-grey; | ||||
| 25 | } | ||||
| 26 | |||||
| Nils Diewald | 1c54692 | 2015-04-13 01:56:19 +0000 | [diff] [blame] | 27 | html { |
| 28 | height: 100%; | ||||
| 29 | } | ||||
| 30 | |||||
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 31 | body { |
| Nils Diewald | 1c54692 | 2015-04-13 01:56:19 +0000 | [diff] [blame] | 32 | position: relative; |
| 33 | min-height: 100%; | ||||
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 34 | font-size: 12pt; |
| Akron | 07c720e | 2016-01-04 20:56:46 +0100 | [diff] [blame^] | 35 | margin: 0; |
| 36 | padding: 0; | ||||
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 37 | } |
| 38 | |||||
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 39 | |
| 40 | a { | ||||
| Akron | b917a7c | 2015-07-02 11:02:42 +0200 | [diff] [blame] | 41 | &:link { |
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 42 | color: $dark-orange; |
| 43 | text-decoration: none; | ||||
| Nils Diewald | 1c54692 | 2015-04-13 01:56:19 +0000 | [diff] [blame] | 44 | &:hover { |
| Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame] | 45 | color: $darkest-orange; |
| Nils Diewald | 1c54692 | 2015-04-13 01:56:19 +0000 | [diff] [blame] | 46 | @include color-transition; |
| 47 | } | ||||
| Nils Diewald | 9922edf | 2015-05-07 20:03:33 +0000 | [diff] [blame] | 48 | } |
| Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 49 | |
| Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 50 | // External links |
| 51 | &[href^="http://"]::after, | ||||
| 52 | &[href^="https://"]::after { | ||||
| 53 | font-family: FontAwesome; | ||||
| 54 | content: " " + $fa-extlink; | ||||
| 55 | font-size: 75%; | ||||
| 56 | } | ||||
| 57 | |||||
| 58 | // Link to documentation | ||||
| 59 | &.doc-link::after { | ||||
| 60 | font-family: FontAwesome; | ||||
| 61 | content: " " + $fa-tutorial; | ||||
| 62 | font-size: 75%; | ||||
| 63 | } | ||||
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 64 | } |
| Nils Diewald | c46003b | 2015-05-07 15:55:35 +0000 | [diff] [blame] | 65 | |
| Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 66 | // Styles for Mojolicious::Plugin::TagHelpers::MailToChiffre |
| Nils Diewald | c46003b | 2015-05-07 15:55:35 +0000 | [diff] [blame] | 67 | a[onclick$='return PArok(this,false)'] { |
| 68 | direction:rtl; | ||||
| 69 | unicode-bidi:bidi-override; | ||||
| Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 70 | text-align:left; |
| 71 | & > span { | ||||
| 72 | &:nth-child(1n+2){ | ||||
| 73 | display:none | ||||
| 74 | } | ||||
| 75 | &:nth-child(1)::after{ | ||||
| 76 | content:'@' | ||||
| 77 | } | ||||
| 78 | } | ||||
| Nils Diewald | c46003b | 2015-05-07 15:55:35 +0000 | [diff] [blame] | 79 | } |
| Akron | 07c720e | 2016-01-04 20:56:46 +0100 | [diff] [blame^] | 80 | |
| 81 | button[type=submit] { | ||||
| 82 | font-weight: normal; | ||||
| 83 | @include choose-item; | ||||
| 84 | padding: 0; | ||||
| 85 | height: 100%; | ||||
| 86 | top: 0; | ||||
| 87 | width: $button-width; | ||||
| 88 | cursor:pointer; | ||||
| 89 | > span:nth-of-type(1) { | ||||
| 90 | @include blind; | ||||
| 91 | } | ||||
| 92 | &::after { | ||||
| 93 | font-family: "FontAwesome"; | ||||
| 94 | } | ||||
| 95 | border: { | ||||
| 96 | width: $border-size; | ||||
| 97 | style: solid; | ||||
| 98 | color: $nearly-white; | ||||
| 99 | } | ||||
| 100 | &:hover, &:focus { | ||||
| 101 | @include choose-hover; | ||||
| 102 | } | ||||
| 103 | &::-moz-focus-inner { | ||||
| 104 | border: none; | ||||
| 105 | } | ||||
| 106 | &:active { | ||||
| 107 | @include choose-active; | ||||
| 108 | } | ||||
| 109 | /** | ||||
| 110 | * This is just for styling the last button, | ||||
| 111 | * in case there are more than one buttons. | ||||
| 112 | */ | ||||
| 113 | &:last-of-type { | ||||
| 114 | // @include box-sizing-box(); | ||||
| 115 | border: { | ||||
| 116 | right-width: $border-size; | ||||
| 117 | right-style: solid; | ||||
| 118 | top-right-radius: $standard-border-radius; | ||||
| 119 | bottom-right-radius: $standard-border-radius; | ||||
| 120 | } | ||||
| 121 | } | ||||
| 122 | } | ||||
| 123 | |||||
| 124 | button + button { | ||||
| 125 | right: 0; | ||||
| 126 | } | ||||