source: code/trunk/web/static/style.css@ 18

Last change on this file since 18 was 18, checked in by manerakai, 22 months ago

Implemented Cookies

File size: 2.5 KB
Line 
1.center {
2 text-align: center;
3}
4
5.wrap {
6 display: flex;
7 flex-wrap: wrap;
8 justify-content: center;
9}
10
11.wrap.languages {
12 flex-wrap: nowrap;
13 margin-bottom: 20px;
14}
15
16#could_not_switch_languages_text {
17 color: red;
18}
19
20.item {
21 width: 100%;
22 height: 150px;
23}
24
25.item-wrapper {
26 display: flex;
27 flex-wrap: wrap;
28 justify-content: center;
29 width: 450px;
30 margin: 5px 10px;
31 gap: 10px;
32}
33
34
35.language,
36.switch_languages {
37 display: flex;
38}
39
40.language {
41 margin: 0px 10px;
42}
43
44.switch_languages {
45 margin: 0px 5px;
46}
47
48#switchbutton {
49 white-space: nowrap;
50}
51
52button {
53 font-size: 1rem;
54 padding: 4px 10px;
55 border: 2px solid #888888;
56}
57
58input,
59select,
60textarea {
61 width: 100%;
62 font-size: 1rem;
63 padding: 4px;
64 border: 2px solid #888888;
65}
66
67textarea {
68 resize: vertical;
69 height: 5rem;
70 font-family: sans-serif;
71
72 /* Stretch to form width */
73 width: 100%;
74}
75
76input:focus,
77select:focus,
78textarea:focus,
79button:focus {
80 border-color: #478061;
81 outline: 1px solid #478061;
82}
83
84
85body {
86 justify-content: center;
87 font-family: sans-serif;
88}
89
90#definitions_and_translations {
91 display: grid;
92 margin: auto;
93 width: 1100px;
94 gap: 10px;
95 grid-template-areas: "definitions translations";
96
97}
98
99.def_type {
100 color: #007979;
101 text-transform: capitalize;
102}
103
104.syn {
105 color: #804700;
106}
107
108.syn_type {
109 color: #007979;
110}
111
112.use_in_sentence {
113 color: #009902;
114}
115
116.definitions li:not(:last-child) {
117 margin-bottom: 1rem;
118}
119
120@media screen and (max-width: 1200px) {
121 #definitions_and_translations {
122 display: grid;
123 width: 90vw;
124 grid-template-areas:
125 "definitions definitions"
126 "translations translations";
127 }
128}
129
130
131div.definitions {
132 grid-area: definitions;
133}
134
135div.translations {
136 grid-area: translations;
137}
138
139@media screen and (prefers-color-scheme: dark) {
140 body {
141 background-color: #212529;
142 color: #f8f9fa;
143 }
144
145 #could_not_switch_languages_text {
146 color: #F13333;
147 }
148
149 a:visited {
150 color: #9759f6;
151 text-decoration: none;
152 }
153
154 a {
155 color: #599bf6;
156 text-decoration: none;
157 }
158
159 input,
160 select,
161 button,
162 textarea {
163 background-color: #131618;
164 border-color: #495057;
165 color: #f8f9fa;
166 }
167
168 .def_type {
169 color: cyan;
170 text-transform: capitalize;
171 }
172
173 .syn {
174 color: burlywood;
175 }
176
177 .syn_type {
178 color: cyan;
179 }
180
181 .use_in_sentence {
182 color: yellow;
183 }
184}
Note: See TracBrowser for help on using the repository browser.