-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
177 lines (177 loc) · 3.54 KB
/
styles.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
@font-face {
font-family: "logo";
src: url("fonts/logo-font.ttf");
}
@font-face {
font-family: "Clear Sans";
src: url("fonts/ClearSans-Regular.ttf");
}
*,
html,
body {
margin: 0;
padding: 0;
}
html,
body {
height: 100%;
overflow: hidden;
font-family: "Clear Sans";
color: white;
}
ul {
text-decoration: none;
flex-direction: column;
list-style: none;
background: #485054;
padding-left: 10px;
}
.content,
.sidebar,
.canvas,
.logo,
ul,
.slidecontainer,
#saveButton {
display: flex;
flex-shrink: 0;
}
.content {
flex-direction: row;
height: 100%;
}
.content .sidebar {
flex-basis: 18em;
overflow-x: hidden;
overflow-y: auto;
flex-direction: column;
background: #485054;
}
.content .sidebar input[type=radio]:focus {
outline: none;
}
.content .sidebar input[type=radio]:checked {
color: white !important;
border-left: 5px solid #485054;
border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
.content .sidebar input[type=radio] {
width: 100%;
height: 100%;
-webkit-appearance: none;
user-select: none;
color: rgba(255, 255, 255, 0.7);
font-size: 20px;
cursor: pointer;
transition: color 1s ease;
}
.content .sidebar input[type=radio]:hover {
color: white;
border-left: 5px solid #485054;
}
.content .sidebar .ray:before {
content: "Луч";
}
.content .sidebar .beam:before {
content: "Пучок";
}
.content .sidebar .point_source:before {
content: "Точечный источник";
}
.content .sidebar .flat_mirror:before {
content: "Плоское зеркало";
}
.content .sidebar .coll_lens:before {
content: "Собирающая линза";
}
.content .sidebar .diff_lens:before {
content: "Рассеивающая линза";
}
.content .sidebar .obstacle:before {
content: "Препятствие";
}
.content .sidebar #coll_lens,
.content .sidebar #diff_lens {
display: none;
}
.content .sidebar h3 {
user-select: none;
margin-top: 10px;
margin-bottom: 10px;
padding-left: 10px;
font-size: 24px;
color: white;
cursor: default;
border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
.content .sidebar li {
user-select: none;
color: rgba(255, 255, 255, 0.7);
font-size: 20px;
cursor: pointer;
padding: 7px;
transition: color 0.5s ease;
}
.content .sidebar .logo {
justify-content: center;
transition: all 0.5s ease;
cursor: default;
border-bottom: 1px solid rgba(255, 255, 255, 0.9);
margin-bottom: 20px;
}
.content .sidebar .logo p {
user-select: none;
display: flex;
font-family: "logo";
color: rgba(255, 255, 255, 0.9);
font-size: 50px;
}
.content .sidebar .logo:hover {
background: rgba(0, 0, 255, 0.5);
color: white;
}
.content .canvas {
flex-basis: 100%;
}
.content .canvas #layer1,
.content .canvas layer2 {
position: absolute;
width: calc(100% + 1px);
height: calc(100% + 1px);
}
.content .slidecontainer {
padding-left: 10px;
padding-top: 10px;
width: 100%;
}
.content .slidecontainer #density_slider,
.content .slidecontainer #brightness_slider {
width: 80%;
outline: none;
opacity: 0.7;
transition: opacity 0.2s;
}
.content .slidecontainer #density_slider:hover,
.content .slidecontainer #brightness_slider:hover {
opacity: 1;
}
.content .slidecontainer #density_value,
.content .slidecontainer #brightness_value {
padding: 0 0 2px 5px;
}
.content #saveButton {
margin: auto;
width: 80%;
justify-content: center;
color: white;
background: indigo;
font-size: 25px;
font-weight: bold;
margin-top: 35px;
border-radius: 100px;
cursor: pointer;
transition: 0.4s;
}
.content #saveButton:hover {
background: black;
}