UNPKG

3.43 kBCSSView Raw
1
2
3/**
4 * 1. These selection rule sets have to be separate.
5 * 2. Do not forget to kill the text-shadow in ::selection.
6 */
7
8html {
9 background: linear-gradient(#fff, #cde) fixed;
10 will-change: transform;
11}
12
13/**
14 * Do not remove focus retangle,
15 * do it more visible when needed.
16 *
17 * - for IE8
18 * :focus { outline: 5px solid red; }
19 */
20
21
22::-moz-selection { /* 1 */
23 text-shadow: none; /* 2 */
24 background: var(--bg-color);
25}
26
27::selection { /* 1 */
28 text-shadow: none; /* 2 */
29 background: var(--bg-color);
30}
31
32input[disabled],
33input[readonly] {
34 color: #666;
35 font-style: italic;
36}
37
38h1,
39h2,
40h3,
41h4,
42h5,
43h6 {
44 margin: 0;
45 padding: 1em 0 .5em;
46}
47
48/*
49 * Most browsers don't print background images by default.
50 * Use foreground images as sprites
51 */
52
53/**
54 * Mobile Safari respect the EXIF orientation tag by default in HTML documents.
55 *
56 * image-orientation property is supported by Firefox 26.
57 * When the style image-orientation: from-image is applied to a JPEG image, the browser will take its EXIF orientation tag into account when performing layout and rendering.
58 *
59 * image-orientation: 270deg flip;
60 *
61 * When you specify an orientation manually, image-orientation gives CSS the same capabilities as the EXIF orientation tag.
62 * You can use this to manually correct JPEGs lacking EXIF data, or to reorient PNGs and other types of images that can’t include orientation information.
63 * @see http://sethfowler.org/blog/2013/09/13/new-in-firefox-26-css-image-orientation/
64 *
65 */
66img {
67 image-orientation: from-image; /* 1 */
68}
69
70.bg-1 {
71 background-image: linear-gradient(#257, #27b);
72 border-bottom: 1px solid #257;
73}
74
75.bg-2 {
76 border-top: 1px solid #6ae;
77 border-bottom: 1px solid #123;
78 background-image: linear-gradient(#38c, #269);
79}
80
81.bg3 {
82 background-color: #ccc;
83 border-color: #fff;
84}
85
86.t-1 {
87 color: #def;
88 text-shadow: 2px 1px 1px #000;
89}
90
91.lang > .selected {
92 text-decoration: underline;
93}
94
95.Menu {
96 padding-top: 9px;
97}
98
99.Menu-item {
100 line-height: 44px;
101 padding: 0 1em;
102 margin: 2px 5px 0 0;
103 color: #123;
104 background-color: #fafafa;
105 background-image: linear-gradient(#def, #cde);
106
107 border: 1px solid #123;
108
109 border-radius: 6px 6px 0 0;
110
111 text-align: center;
112 text-shadow: 0 0 1px #fff;
113 display: block;
114 float: left;
115}
116[dir="rtl"] .Menu-item {
117 float: right;
118}
119
120.Menu-item:hover, .Menu-item.selected {
121 background-image: linear-gradient(#fff, rgba(255,255,255,0));
122 border-bottom-color: #f2f7fb;
123 color: #000;
124}
125
126.Menu-item:active {
127 background-image: linear-gradient(#49d, rgba(255,255,255,0));
128}
129
130
131.nav {
132 display: block;
133 height: 2.4em;
134}
135
136.nav a {
137 display: block;
138 float: left;
139 margin: 0 .3em;
140 padding: .3em;
141 background: #eee;
142
143}
144
145
146.content {
147 padding: 1em 1em 3em;
148}
149
150.c0 { color: #000; }
151.c1 { color: #fff; }
152.c2 { color: #789; }
153.c3 { color: green; }
154.c4 { color: red; }
155
156
157.p0t { padding-top: 0; }
158.p4t { padding-top: 16px; }
159.p0r { padding-right: 0; }
160.p0b { padding-bottom: 0; }
161.p0l { padding-left: 0; }
162
163.m1b { margin-bottom: 4px; }
164.m2b { margin-bottom: 8px; }
165
166
167
168[data-on-empty]:empty:after {
169 content: attr(data-on-empty);
170 color: #999;
171 font-style: italic;
172 text-align: center;
173 font-weight: normal;
174 display: block;
175 padding: 1em;
176}
177
178.loading[data-on-loading]:empty:after {
179 content: attr(data-on-loading);
180}
181
182.loading[data-on-empty]:empty:after {
183 content: "Loading..";
184}
185.loading[data-on-empty]:lang(et):empty:after {
186 content: "Laen..";
187}
188
189