forked from stwebcode/register
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
138 lines (138 loc) · 2.5 KB
/
index.css
File metadata and controls
138 lines (138 loc) · 2.5 KB
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
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');
*{
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Crimson Pro', serif;
}
body{
min-height: 100vh;
display: grid;
grid-template-rows: auto 1fr auto;
}
main{
position: relative;
}
input,select,button{
padding: 5px;
}
#header button{
border: none;
background: #dddddd;
min-width: 40px;
cursor: pointer;
}
#header button:hover{
background: #ebebeb;
}
a{
text-decoration: none;
color: rgb(0, 66, 141);
}
a:visited{
color: rgb(0, 66, 141);
}
a:hover{
color: rgb(0, 83, 179);
}
/* HEADER */
#header{
position: sticky;
top: 0;
z-index: 99999;
}
#header nav{
height: 90px;
display: grid;
grid-template-columns: auto 1fr auto;
background: #fafafa;
transition: height 100ms ease;
}
#logo-container{
height: inherit;
}
#logo{
height: 100%;
}
#header ul{
display: grid;
grid-template-columns: repeat(auto-fit,minmax(90px,120px));
grid-gap: 5px;
}
#header li{
list-style-type: none;
display: grid;
align-items: center;
}
#header li a{
padding:20px 10px;
text-align: center;
transition: all 200ms ease-in-out;
}
#header li a:hover{
background: #ebebeb;
}
#header-user{
display: flex;
align-items: center;
padding-right:20px;
}
#header-user *~*{ /* *~* nozīmē jebkas, pirms kura ir "sibling." Rezultātā tiek atlasīti visi elementi, izlaižot pirmo */
margin-left: 10px;
}
/* FOOTER */
footer{
text-align: center;
background: #222327;
display: grid;
align-items: center;
color: white;
}
/* INDEX PAGE */
.shadowbox{
position: absolute;
top: 0;
left: 0;
width:100%;
height:100%;
z-index: 50;
display: grid;
justify-content: center;
align-items: center;
background: #00000075;
}
.single-column-form{
background: #fafafa;
padding: 30px;
display: grid;
grid-gap: 20px;
}
.two-column-form{
background: #fafafa;
padding: 30px;
display: grid;
grid-template-columns: auto 1fr;
grid-gap: 20px;
}
#new-event .two-column-form div *{
width: 100%;
}
#show-event-form{
width: 100%;
background: #e845452c;
color: white;
border: none;
padding: 6px;
font-size: 16px;
}
#show-event-form:hover{
background: rgba(255,255,255,0.2);
cursor: pointer;
}
.event-desc{
word-break: break-all;
}
#close-event-form{
width: 30px;
float: right;
}