-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
144 lines (132 loc) · 2.46 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
143
144
body {
margin: 0;
font-family: 'Roboto Slab', serif;
}
button {
font-family: 'Roboto Slab', serif;
}
.nav {
display: flex;
list-style-type: none;
justify-content: center;
padding: 0;
}
.nav li {
margin: 1rem;
display: flex;
align-items: end;
flex-direction: column;
}
main {
display: flex;
flex-direction: column;
align-items: center;
}
footer {
text-align: center;
}
.container {
display: flex;
max-width:50rem;
background-color: antiquewhite;
margin: 0 1rem 1rem;
}
.container > * {
width: 50%;
box-sizing: border-box;
}
.container p {
padding: 0 1rem;
}
.container img {
height:25rem;
object-fit: none;
}
.viceversa {
flex-direction: row-reverse;
}
.header {
display: flex;
flex-direction: column;
align-items: center;
}
.nav-burger { /* see on paaris .toggle'ga */
display:none;
}
.btn-nav {
display:none;
box-shadow: 0px 0.25rem 0.5rem #fff;
font-size: 1rem;
cursor: pointer;
}
.btn-nav img {
width:1rem; position:relative; top:0.1rem;
transition: 1s ease-in-out;
}
.finger-down img {
width:1rem;
position:relative;
top:0.2rem;
transform: rotate(450deg);
}
@media (max-width: 832px) {
.container img {
height: calc((100vw - 2rem)/2);
}
}
@media (max-width:600px) {
.container {
flex-direction:column;
}
.container > * {
width: inherit;
}
.container img {
height: calc(100vw - 2rem);
}
.nav {
display: none;
}
.btn-nav {
display: block;
width: 100%;
text-align: right;
border-radius: 0px !important;
padding: 1rem;
border: none;
background-color: #FFF;
}
.nav-burger { /* see on paaris .toggle'ga */
display: block;
visibility: hidden;
margin: -3rem 1rem 0rem;
position: relative;
z-index: -1;
opacity: 0;
list-style-type: none;
}
.toggle {
visibility: inherit;
margin: 0.5rem 1rem 1rem;
opacity: 1;
z-index: 999;
}
.nav-burger.toggle, .nav-burger.toggle li {
transition: 1s ease-in;
}
header:hover .nav-burger, .nav-burger li {
transition: 1s ease-in;
}
.nav-burger li {
margin-bottom: -2rem;
}
.toggle li {
margin-bottom: 1rem;
}
.header {
align-items: end;
}
}
.nav-burger a{
text-decoration: none;
}