blob: 8a1628932bb9663b484f54a30031383be7f007cf [file] [log] [blame]
Nils Diewald7cad8402014-07-08 17:06:56 +00001@charset "utf-8";
2
3$fonts: verdana, tahoma, arial;
4
5@import "colors";
6
7@mixin box-sizing-box() {
8 -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
9 -moz-box-sizing: border-box; /* Firefox, other Gecko */
10 box-sizing: border-box; /* Opera/IE 8+ */
11}
12
13
14/*
15 Search for: [orth=erstens]
16*/
17
18ol {
19 width: auto;
20 overflow: hidden;
21 list-style-type: none;
22 margin: 0;
23 padding: 0;
24 text-indent: 0;
25 border: 1px solid $kwic-border;
26 font: {
27 family: $fonts;
28 size: 10pt;
29 }
30 text-shadow: 1px 1px rgba(255, 255, 255, 0.4);
31 > li {
32 border: {
33 style: solid;
34 color: #ffa500;
35 width: 0;
36 }
37 &:not(.active):not(:target) {
38 width: 99999%;
39 margin-left: -49999.5%;
40 background-color: $kwic-line-noneven;
41 overflow: hidden;
42 white-space: no-wrap;
43 cursor: pointer;
44 padding: 5pt 0 6pt 0;
45 text-indent: 0;
46 &:nth-of-type(even) {
47 background-color: $kwic-line-even;
48 }
49 }
50 > div {
51 > div.snippet > span {
52 white-space: no-wrap !important;
53 > span {
54 white-space: no-wrap !important;
55 }
56 color: #666;
57 &.match {
58 font-weight: bold;
59 text-shadow: $kwic-match-shadow;
60 color: $kwic-match-color;
61 padding-left: 4pt;
62 padding-right: 2pt;
63 }
64 }
65 }
66 }
67}
68
69ol.free-aligned > li:not(.active):not(:target) > div > div.snippet > span.left {
70 display: inline-block;
71 text-align: right;
72 width: 50.046%;
73}
74
75ol.free-aligned > li:not(.active):not(:target) > div > div.snippet > span.separator {
76 width: 0px;
77 height: 1em;
78 margin-bottom: -2px;
79 display: inline-block;
80 line-height: 100%;
81 border: 1px solid #009EE0;
82 margin-left: 2px;
83 margin-right: 2px;
84}
85
86ol.free-aligned > li > div > div.snippet > span.right {
87 text-align: left;
88}
89
90ol.left-aligned > li > div > div.snippet > span.context-left {
91 display: inline-block;
92 text-align: right;
93 width: 50.01%;
94}
95
96ol.right-aligned {
97 text-align: right;
98 > li:not(.active):not(:target) > div > div.snippet > span.context-right {
99 display: inline-block;
100 text-align: left;
101 width: 49.915%;
102 }
103}
104
105/* Highlights */
106em, em.level-0 {
107 border-bottom-width: 2px;
108 border-bottom-style: solid;
109 padding-bottom: 0px;
110 font-style: normal;
111}
112
113em > em, em.level-1 {
114 padding-bottom: 3px;
115}
116
117em > em > em, em.level-2 {
118 padding-bottom: 6px;
119}
120
121.class-0 { border-color: $kwic-highlight-0; }
122.class-1 { border-color: $kwic-highlight-1; }
123.class-2 { border-color: $kwic-highlight-2; }
124
125
126span.more:before {
127 content: "…";
128 padding-left: 2pt;
129 padding-right: 2pt;
130}
131
132/* active view */
133ol > li.active,
134ol > li:target {
135 text-align: left;
136 width: auto;
137 cursor: normal;
138 white-space: wrap;
139 height: auto;
140 border-width: 2px;
141 background-color: $light-orange;
142 position: relative;
143 > div {
144 min-height: 42pt;
145 > div.snippet {
146 margin: 5pt 10pt;
147 margin-right: 3em;
148 > span {
149 line-height: 1.4em;
150 width: auto;
151 &.context-left {
152 margin-left: 0;
153 display: inline;
154 overflow: visible;
155 text-align: left;
156 width: auto;
157 }
158 }
159 }
160 }
161}
162
163/* Actions */
164ol > li {
165 ul.action {
166 display: none;
167 > li {
168 cursor: pointer;
169 color: white;
170 text-decoration: none;
171 }
172 }
173 /* active actions */
174 &.active, &:target {
175 ul.action {
176 background-color: $dark-orange;
177 font-size: 12pt;
178 color: white;
179 text: {
180 shadow: none;
181 indent: 0;
182 }
183 display: block;
184 margin: 0;
185 padding: 0;
186 z-index: 4;
187 list-style: {
188 type: none;
189 position: inline;
190 }
191 &.right {
192 position: absolute;
193 float: right;
194 text-align: center;
195 padding: 0pt 3pt;
196 height: 100%;
197 width: 1.2em;;
198 right: 0;
199 top: 0;
200 }
201 }
202 }
203 &:not(.active):not(:target) p {
204 display: none;
205 }
206 &.active p, &:target p {
207 @include box-sizing-box();
208 padding-right: 2em;
209 background-color: $dark-orange;
210 color: white;
211 text-shadow: none;
212 padding: 3pt 10pt;
213 margin: 0pt;
214 width: 100%;
215 bottom: 0;
216 z-index: 300;
217 }
218}
219
220