-
Notifications
You must be signed in to change notification settings - Fork 0
/
firstpage.css
128 lines (113 loc) · 2.04 KB
/
firstpage.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
body{
font-family: Arial, Helvetica, sans-serif;
margin: 0;
background-color: #e7eff6;
}
header{
margin-top: 30px; /* Add a top margin to avoid content overlay */
text-align: center;
padding: 3px;
background-image: linear-gradient(180deg,white, blue);
font-size: 25px;
}
figure{
padding: 4px;
margin: auto;
-webkit-transition: -webkit-transform .8s ease-in-out;
transition: transform .8s ease-in-out;
}
figure:hover{
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
figure.figcaption{
position: static;
}
a {
text-decoration: none;
}
nav {
font-family: monospace;
background-color: #1950ff;
position: fixed; /* Set the navbar to fixed position */
top: 0; /* Position the navbar at the top of the page */
width: 100%; /* Full width */
}
ul {
background: #1950ff;
list-style: none;
margin: 0;
padding-left: 0;
}
li {
color: #fff;
background: #1950ff;
display: block;
float: left;
padding: 1rem;
position: relative;
text-decoration: none;
transition-duration: 0.5s;
}
li a {
color: #fff;
}
li:hover {
background: red;
cursor: pointer;
}
ul li ul {
background: #1950ff;
visibility: hidden;
opacity: 0;
min-width: 5rem;
position: absolute;
transition: all 0.5s ease;
margin-top: 1rem;
left: 0;
display: none;
}
ul li:hover > ul,
ul li:focus-within > ul, /* this is the line we add */
ul li ul:hover {
visibility: visible;
opacity: 1;
display: block;
}
ul li ul li {
clear: both;
width: 100%;
}
section{
margin-top: 30px;
text-align: center;
background-color: #e7eff6;
}
footer{
text-align: center;
padding: 3px;
background-color: #89CFF0;
color: black;
}
main{
margin: 0;
padding: 5px;
background-color: #e7eff6;
}
main > h1 {
display: block;
font-size: 2em;
margin-top: 0.67em;
margin-bottom: 0.67em;
margin-left: 0;
margin-right: 0;
font-weight: bold;
text-align: center;
}
#match {
background: white;
}
#match > h2, p{
margin: 4px;
font-size: 90%;
}