-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
102 lines (82 loc) · 1.98 KB
/
main.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
header .wrapper {
display: grid;
grid-gap: 1rem;
align-items: center;
grid-template-columns: auto 1fr auto;
}
#login img {
border-radius: 4px;
border: 1px solid transparent;
background-color: var(--color-block);
padding: 4px;
}
#login img:hover {
border: 1px solid #343434;
}
#menu {
text-align: center;
display: grid;
grid-gap: 1rem;
grid-template-columns: repeat(4, 1fr);
grid-template-areas:
"DTF DTF Ineo Ineo"
"box ... ... ...";
}
#menu > a {
border: 1px solid transparent;
padding: 1rem;
border-radius: 0.4rem;
}
#menu > a:hover {
border: 1px solid #343434
}
.ico {
width: 100%;
aspect-ratio: 1/1;
background-repeat: no-repeat;
background-size: contain;
}
/* grid-area имена */
#DTF {
grid-area: DTF
}
#Ineo {
grid-area: Ineo
}
#box {
grid-area: box
}
.box {
padding: 1em;
background-color: #1F1F1F;
border-radius: 1rem;
}
@media (orientation:portrait) {
.wrapper {
width: 100%
}
}
/* адаптив */
/* Large desktops and laptops */
@media (min-width: 1200px) {
#menu {
text-align: center;
display: grid;
grid-gap: 2em;
grid-template-columns: repeat(8, 1fr);
grid-template-areas:
"DTF DTF Ineo Ineo ... ... ... ..."
"DTF DTF Ineo Ineo ... ... ... ..."
"... ... ... ... ... ... ... ...";
}
}
/* Portrait tablets and medium desktops */
/*@media (min-width: 992px) and (max-width: 1199px) {}*/
/* Portrait tablets and small desktops */
/*@media (min-width: 768px) and (max-width: 991px) {}*/
/* Landscape phones and portrait tablets */
/*@media (max-width: 767px) {}*/
/* Landscape phones and smaller */
/*@media (max-width: 580px) {}*/
/* По надобности дописую промежуточные разрешения, если вдруг по дизайну что то падает на 650px, тогда дописую: */
/*@media (max-width: 650) {}*/