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