-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
142 lines (127 loc) · 2.03 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
* /* Matches all the elements */
{
box-sizing: border-box; /* Now, the properties width and height refer to the width and height of the border-box, instead of the default content-box */
}
body
{
text-align: center;
}
div#topbar
{
background-color: black;
width: 100%;
border-bottom: 3px solid yellow;
overflow: hidden; /* Forcing the topbar to included the floated children */
position: sticky; /* Making it relative, so that the children positioned absolutely refer to the topbar when using top, left, bottom and right positionings */
top: 0;
padding: 40px 30px;
transition-duration: 0.3s;
}
/* The topbar not having a defined height is so that it becomes just tall enough to hold it's contents */
div#topbar.shrink
{
padding: 10px 30px;
}
div#topbar > img
{
padding: 20px; /* So that the image doesn't touch the edges */
height: 120px;
float: left;
}
body
{
margin: 0;
}
#linksContainer
{
position: absolute; /* Positioning relative to the topbar */
right: 30px;
/* Below: Centre aligning it vertically, relative to the topbar */
top: 50%;
transform: translateY(-50%);
font-size: 20px;
}
a.linked
{
color: white;
text-decoration: none;
}
a.linked:hover
{
color: yellow;
}
a#banner
{
display: inline-block;
padding: 20px 0;
}
a#banner > img,
#YoutubeContainer
{
width: 100vw;
max-width: 800px;
}
iframe
{
width: 400px;
height: calc(400px / 1.6);
vertical-align: top;
}
#YoutubeContainer
{
display: inline-block;
font-size: 0;
}
#YTDesc
{
display: inline-block;
width: 400px;
font-size: 20px;
padding: 10px;
vertical-align: top;
text-align: justify;
}
#itemsContainer
{
display: inline-block;
max-width: 800px;
width: 100%;
text-align: left;
font-size: 0;
}
.item
{
display: inline-block;
width: 25%;
padding: 15px;
font-size: 15px;
}
.item > img
{
width: 100%;
border-radius: 5px;
}
@media screen and (max-width: 700px)
{
iframe, #YTDesc
{
width: 100%;
}
#YoutubeContainer
{
padding: 10px;
}
a#banner > img
{
padding: 10px;
}
#linksContainer
{
display: none;
}
.item
{
width: 50%;
}
}
#topbar