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