-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
121 lines (101 loc) · 1.8 KB
/
style.css
File metadata and controls
121 lines (101 loc) · 1.8 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
body {
font-family: "Ubuntu", sans-serif;
font-size: 14px;
margin: 1rem;
}
h1 {
font-size: 28px;
color: red;
text-align: center;
}
nav {
margin-bottom: 2rem;
}
nav > ul {
list-style-type: none;
padding: 0;
display: flex;
justify-content: space-evenly;
}
hr {
border-top: 1px solid lightgrey;
margin-top: 0;
margin-bottom: 0;
}
h2 {
font-size: 24px;
color: green;
}
img {
width: 100%;
}
figure {
margin-left: 0;
margin-right: 0;
}
figcaption {
text-align: right;
color: grey;
}
a {
text-decoration: none;
color: orange;
border-bottom: 1px solid orange;
padding-bottom: 1px;
}
li {
margin-bottom: 5px;
}
main > article {
margin-bottom: 2rem;
}
.footer {
text-align: right;
padding-top: 1rem;
border-top: 1px solid lightgray;
}
@media (min-width: 576px) {
nav {
/*dzielimy nagłówek na 3 kolumny*/
display: grid;
grid-template-columns: 25% 50% 25%;
grid-template-areas: ". header list";
/* definiujemy nazwy poszczególnych kolumn (. to 1. kolumna - pusta, header to h1, list- 3. kolumna) */
}
nav > ul {
grid-area: list;
/* nadaje nazwe, ktora wykorzystam w budowie szablonu */
margin: auto 0;
}
h1 {
grid-area: header;
/* nadaję nazwę, ktora wykorzystam w budowie szablonu */
}
body {
margin: 2rem;
}
}
@media (min-width: 576px) and (max-width: 767px) {
nav > ul {
text-align: right;
flex-direction: column;
/* zmiana orientacji na kolumne */
}
}
@media (min-width: 768px) {
.class {
display: grid;
grid-template-columns: 70% 30%;
column-gap: 1rem;
/* dodajemy odstep przy linii siatki */
}
aside {
border-left: 1px solid lightgray;
padding-left: 1rem;
text-align: center;
}
aside > article > ul {
list-style-type: none;
padding: 0;
}
}