blob: 06883196d08c353ccd32df8d01628adc16ff28fc [file] [log] [blame]
Nils Diewalda944fab2015-04-08 21:02:04 +00001@charset "utf-8";
2@import "util";
3
Akron189b3592016-01-04 20:56:46 +01004$border-size: 2px;
5
Nils Diewald652e5f42015-05-10 18:11:45 +00006/**
7 * Basic global CSS rules for Kalamar
8 */
9
10body,
11html,
12select,
13g > text {
Nils Diewalda944fab2015-04-08 21:02:04 +000014 color: $dark-grey;
Akron7e3e97a2017-12-07 18:57:20 +010015 font-family: verdana, tahoma, arial, Helvetica, sans-serif;
Nils Diewalda944fab2015-04-08 21:02:04 +000016 margin: 0;
17}
18
Nils Diewalda944fab2015-04-08 21:02:04 +000019* {
20 @include box-sizing-box;
21}
22
Akron308db382016-05-30 22:34:07 +020023/*
24html {
25// @include box-sizing-box;
26 box-sizing: border-box;
27}
28
29*, *:before, *:after {
30 box-sizing: inherit;
31}
32*/
33
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000034g > text {
35 fill: $dark-grey;
36}
37
Nils Diewald1c546922015-04-13 01:56:19 +000038html {
39 height: 100%;
40}
41
Nils Diewalda944fab2015-04-08 21:02:04 +000042body {
Nils Diewald1c546922015-04-13 01:56:19 +000043 position: relative;
44 min-height: 100%;
Nils Diewalda944fab2015-04-08 21:02:04 +000045 font-size: 12pt;
Akron189b3592016-01-04 20:56:46 +010046 margin: 0;
47 padding: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +000048}
49
Nils Diewalda944fab2015-04-08 21:02:04 +000050
51a {
Akronb917a7c2015-07-02 11:02:42 +020052 &:link {
Nils Diewalda944fab2015-04-08 21:02:04 +000053 color: $dark-orange;
54 text-decoration: none;
Nils Diewald1c546922015-04-13 01:56:19 +000055 &:hover {
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000056 color: $darkest-orange;
Nils Diewald1c546922015-04-13 01:56:19 +000057 @include color-transition;
58 }
Nils Diewald9922edf2015-05-07 20:03:33 +000059 }
Nils Diewald652e5f42015-05-10 18:11:45 +000060
Nils Diewald652e5f42015-05-10 18:11:45 +000061 // External links
62 &[href^="http://"]::after,
63 &[href^="https://"]::after {
64 font-family: FontAwesome;
Akron28cab562018-04-23 13:52:22 +020065 white-space: nowrap;
Nils Diewald652e5f42015-05-10 18:11:45 +000066 content: " " + $fa-extlink;
67 font-size: 75%;
68 }
69
70 // Link to documentation
71 &.doc-link::after {
72 font-family: FontAwesome;
Akron28cab562018-04-23 13:52:22 +020073 white-space: nowrap;
Nils Diewald652e5f42015-05-10 18:11:45 +000074 content: " " + $fa-tutorial;
75 font-size: 75%;
76 }
Nils Diewalda944fab2015-04-08 21:02:04 +000077}
Nils Diewaldc46003b2015-05-07 15:55:35 +000078
Nils Diewald652e5f42015-05-10 18:11:45 +000079// Styles for Mojolicious::Plugin::TagHelpers::MailToChiffre
Nils Diewaldc46003b2015-05-07 15:55:35 +000080a[onclick$='return PArok(this,false)'] {
81 direction:rtl;
82 unicode-bidi:bidi-override;
Nils Diewald652e5f42015-05-10 18:11:45 +000083 text-align:left;
84 & > span {
85 &:nth-child(1n+2){
86 display:none
87 }
88 &:nth-child(1)::after{
89 content:'@'
90 }
91 }
Nils Diewaldc46003b2015-05-07 15:55:35 +000092}
Akron189b3592016-01-04 20:56:46 +010093
94button[type=submit] {
95 font-weight: normal;
96 @include choose-item;
97 padding: 0;
98 height: 100%;
99 top: 0;
100 width: $button-width;
101 cursor:pointer;
102 > span:nth-of-type(1) {
103 @include blind;
104 }
105 &::after {
106 font-family: "FontAwesome";
107 }
108 border: {
109 width: $border-size;
110 style: solid;
111 color: $nearly-white;
112 }
113 &:hover, &:focus {
114 @include choose-hover;
115 }
116 &::-moz-focus-inner {
117 border: none;
118 }
119 &:active {
120 @include choose-active;
121 }
122 /**
123 * This is just for styling the last button,
124 * in case there are more than one buttons.
125 */
126 &:last-of-type {
127 // @include box-sizing-box();
128 border: {
129 right-width: $border-size;
130 right-style: solid;
131 top-right-radius: $standard-border-radius;
132 bottom-right-radius: $standard-border-radius;
133 }
134 }
135}
136
137button + button {
138 right: 0;
139}
Akrond4b000b2018-01-28 18:33:14 +0100140
141
142.button-group {
143 > span {
144 cursor: pointer;
145 box-shadow: $choose-box-shadow;
146 font-size: 9pt;
147 line-height: 1.5em;
148 padding: 0 4px;
149 display: inline-block;
150 @include choose-item;
151 border-style: solid;
152 border-width: $border-size 0;
153 &:hover {
154 @include choose-hover;
155 }
156 &:first-child {
157 border: {
158 left-width: $border-size;
159 top-left-radius: $standard-border-radius;
160 bottom-left-radius: $standard-border-radius;
161 }
162 }
163 &:last-child {
164 border: {
165 right-width: $border-size;
166 top-right-radius: $standard-border-radius;
167 bottom-right-radius: $standard-border-radius;
168 }
169 }
170 }
171}