-
Notifications
You must be signed in to change notification settings - Fork 0
/
stil.css
136 lines (136 loc) · 3.04 KB
/
stil.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
body {
font-family: 'Old Standard TT', serif;
}
.rubrik {
font-size: 10vw;
font-family: 'Rye', cursive;
}
#chiffrera {
display: none;
}
#resultatRuta {
display: none;
}
#knack {
display: none;
}
#val {
animation: dykupp 1s ease-out
}
button {
font-size: 20px;
height: 2em;
border-color: grey;
border-style: none;
border-radius: 10px;
background-image: linear-gradient(to right, yellowgreen, mediumseagreen);
font-family: 'Old Standard TT', serif;
z-index: 1;
}
button:hover {
background-image: linear-gradient(to right, mediumseagreen, seagreen);
}
input[type=number] {
background-image: linear-gradient(to right, yellowgreen, mediumseagreen);
width: 5vw;
height: 2em;
}
@media only screen and (max-width: 768px) {
@keyframes forsvinn {
from {
opacity: 100%;
}
to {
opacity: 0%;
}
}
@keyframes dykupp {
from {
opacity: 0%;
}
to {
opacity: 100%;
}
}
body {
text-align: center;
background-image: linear-gradient(to bottom right, lightblue, lightcyan);
background-size: contain;
height: 100vh;
}
input[type=number] {
width: 10vw;
}
}
@media only screen and (min-width: 768px) {
body {
background-image: url("https://upload.wikimedia.org/wikipedia/commons/4/47/Caesar.jpg"); /* bakgrundsbild */
background-repeat: no-repeat;
background-size: 633px 805px;
background-position: center top;
}
#resultat {
height: 80%;
width: 90%;
overflow: scroll;
}
.ruta {
position: relative; /*en ruta */
left: 30vw;
top: 20vh;
background-color: skyblue;
border-color: black;
border-style: solid;
width: 40vw;
height: 50vh;
min-height: 300px;
text-align: center;
background-image: linear-gradient(to bottom right, powderblue, paleturquoise);
border-radius: 10px;
overflow: hidden;
}
.rubrik {
transform: translateY(-10vh);
font-size: 5vw;
}
.upp {
transform: translateY(-20vh);
}
.upp_lite {
transform: translateY(-10vh);
}
.nere {
position: absolute;
top: 70%;
left: 45%;
}
button {
font-size: 20px;
height: 2em;
border-color: grey;
border-style: none;
border-radius: 10px;
background-image: linear-gradient(to right, yellowgreen, mediumseagreen);
font-family: 'Old Standard TT', serif;
z-index: 1;
}
button:hover {
background-image: linear-gradient(to right, mediumseagreen, seagreen);
}
@keyframes forsvinn {
from {
transform: rotateY(0deg);
}
to {
transform: rotateY(90deg);
}
}
@keyframes dykupp {
from {
transform: rotateY(-90deg);
}
to {
transform: rotateY(0deg);
}
}
}