-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.css
154 lines (142 loc) · 3.03 KB
/
index.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
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,700;1,400;1,700&display=swap');
html{
height: 100%;
}
* {
box-sizing: border-box;
}
/* Oragniserer bakgrunnen og hoved"kroppen" til siden */
body {
margin: auto;
width: 100%;
background-attachment:fixed;
background-image: url("images/Curve Line.svg");
background-repeat: no-repeat;
background-size: cover;
}
/*selvforklarende sticky navbar/header*/
header{
position: sticky;
position: -webkit-sticky;
top: 0;
z-index: 1;
}
/*alt av navbar */
.navbar {
font-family: 'Roboto', sans-serif;
font-size: 1.5em;
width: 100%;
background-color: rgb(0, 0, 0);
margin: 0;
padding: 0.5em;
top: 0;
display: flex;
flex-direction: row;
justify-content: space-evenly;
align-items: center;
flex-wrap: wrap;
list-style-type: none;
}
.navbar > li > a {
display: flex;
color: lightgrey;
text-decoration: none;
will-change: transform, color, text-decoration;
transition: 250ms all ease-out;
position: relative;
padding: 8px 16px;
}
.navbar > li > a:hover {
transform: scale(1.1);
perspective: 200px;
color: white;
text-decoration: underline;
}
/*Velkommen*/
.landingtext{
font-size: 5em;
font-weight: bold;
color: #ecc7e8;
text-shadow: 3px 3px #413442;
margin: 0;
position: absolute;
top: 38vh;
left: 50vw;
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
/*Velkomstbildet til siden*/
.bannercontainer{
margin: 0;
background-image: url("images/velkommen1-crop.jpg");
height: 95vh;
position: relative;
background-position: center top;
background-repeat: no-repeat;
background-size: cover;
-webkit-box-shadow: 0 0 10px;
box-shadow: 0 0 10px;
}
/*Her ligger alt av "contentet"*/
main {
margin: auto;
margin-top: 40px;
width: 90%;
max-width: 800px;
padding: 40px;
background-attachment:fixed;
background-color: white;
border-radius: 10px;
-webkit-box-shadow: 0 0 10px;
box-shadow: 0 0 10px;
}
/*størrelse, plassering og font*/
p{
font-family: 'Roboto', sans-serif;
font-size: 1.1em;
line-height: 1.5em;
}
/*størrelse + font*/
h1,h2,h3,h4,h5{
font-family: 'Roboto', sans-serif;
text-align: center;
}
h1{
font-size: 2.2em;
margin-top: 0px;
}
h2{
font-size: 1.6em;
}
/*størrelse / utseende på bildene våres*/
.image {
position: relative;
display: flex;
width: 100%;
justify-content: space-evenly;
align-items: center;
flex-wrap: wrap;
object-fit: cover;
}
/*Section er relativ til "Main" sine rammer.*/
section{
position: relative;
width: 100%;
}
/*Liten footer for prikken over i`en*/
footer{
background-color: rgba(255, 255, 255, 0.4);
text-align: center;
margin-top: 30px;
padding: 5px;
}
/*Endrer tekst størrelse ved 768px skjerm, slik at
teksten ikke blir for stor*/
@media screen and (max-width: 768px){
.navbar{
font-size: 1em;
}
.landingtext{
font-size: 3em;
}
}