-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
170 lines (140 loc) · 3.54 KB
/
style.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
/* Utility. Variables and misc rules go here. */
:root{
--header-image: url('assets/backgroundA.png');
--background: #1D612D;
--bodytext: #B3F7D0;
--borders: #31D236;
--sidebars: #0E6646;
--bartext: #07D2AE;
}
body {
height: 80vh;
width: 100%;
overflow-x:hidden;
background: black;
color: var(--bodytext);
}
header, main, footer, .nav_arrows, .popbar{
border: 2px var(--borders) solid
}
.flex{
display: flex;
}
.sidespace{
flex-basis: 100%;
position:sticky;
z-index: 2;
}
.container{
max-width: 900px;
flex-shrink: 0px;
background-color: var(--background);
height 90%;
}
footer{
margin-top: 20px;
height: 30px;
margin-bottom: 0px;
}
/* Left part of the main display. Contains the iframe and the website title. */
.left{
margin-left: 20px;
margin-top: 20px;
width: 500px;
}
header{
border-bottom: 1px var(--borders) solid;
padding: 0px;
}
header h3{
text-size-adjust: smaller;
margin: 0px;
margin-left: 5px;
}
main{
border-top: 0px;
width: 100%-1px;
height: 90%;
padding: 5px;
}
main p{
margin-top: 5px;
margin-bottom: 3px;
}
.nav_arrows{
border-top: 0px;
text-align: center;
}
/* Right part of the display. Contains a space for a decoration image as well as the sliding side menus. */
.right{
width:400px;
}
.decoration{ /* <-- Space for a background image or such. */
width: 100%;
height: 100%;
background-image: var(--header-image) repeat-y 60% 50%;
}
.bar_row{ /* <-- Flexbox holding the row of menus. */
height: 100%;
width: 30px;
margin-bottom: 20%;
}
.popbar{ /* <-- Class for the bits you hover over. */
margin-top:100%;
flex-direction: column;
background-color: var(--sidebars);
}
.popbar p{
vertical-align: middle;
text-align:center;
min-height: 20px;
height: 30%;
margin-top: 50px;
margin-bottom: 50px;
}
.popout{
display:flex;
text-align:center;
height: 100%;
border-top: 1px var(--borders) solid;
border-bottom: 1px var(--borders) solid;
border-left: 1px var(--borders) solid;
}
#slider_a, #slider_b, #slider_c, #slider_d {
position: absolute;
width: 500px;
max-width: 500px; /* Styles for the sliding menus. */
height: 123px; /* Imported from codepen at https://codepen.io/mignunez/pen/rNwVygZ */ /* and thouroughly vivisected. */
background: var(--sidebars);
transform: translateX(-500px) translateY(-2px);
-webkit-transform: translateX(-500px) translateY(-2px);
}
.slide-in {
animation: slide-in 0.5s forwards;
-webkit-animation: slide-in 0.5s forwards;
}
.popbox{
flex:100%;
flex-direction: column;
padding: 10px;
color: var(--bartext);
}
@keyframes slide-in {
100% { transform: translateX(500px) translateY(-2px); }
}
@-webkit-keyframes slide-in {
100% { -webkit-transform: translateX(500px) translateY(-2px); }
}
.slide-out {
animation: slide-out 0.5s forwards;
-webkit-animation: slide-out 0.5s forwards;
}
@keyframes slide-out {
0% { transform: translateX(0px) translateY(-2px); }
100% { transform: translateX(-500px) translateY(-2px); }
}
@-webkit-keyframes slide-out {
0% { -webkit-transform: translateX(0px) translateY(-2px); }
100% { -webkit-transform: translateX(-500px) translateY(-2px); }
}
/* ---END SLIDER RULES--- */