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