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