-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
154 lines (123 loc) · 3.08 KB
/
style.css
File metadata and controls
154 lines (123 loc) · 3.08 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
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
*{
font-size: 14px;
}
.wrapper.one{
width: 600px;
height: 600px;
display: grid;
grid-gap: 30px 20px;
background: black;
grid-template-columns: 124px 376px 42px;
grid-template-rows: 170px 210px 61px 61px;
}
.one div{
border: 1px solid gray;
background: white;
}
.one .a{
grid-row: 1 / 2;
grid-column: 1 / 2;
}
.one .b{
grid-row: 2 / 3;
grid-column: 1 / 2;
}
.one .c{
grid-row: 1 / 3;
grid-column: 2 / 4;
background: red;
}
.one .d{grid-row: 3 / 5;grid-column: 1 / 2;background: blue;}
.one .e{grid-row: 3 / 5;grid-column: 2 / 3;}
.one .f{grid-row: 3 / 4;grid-column: 3 / 4;}
.one .g{grid-row: 4 / 5;grid-column: 3 / 4;background: yellow;}
.wrapper.two{
width: 633px;
height: 459px;
display: grid;
grid-gap: 5px;
border: 1px solid gray;
background: black;
grid-template-columns: 304px 92px 153px 68px;
grid-template-rows: 70px 17px 60px 54px 86px 147px;
}
.two div{
background: white;
}
.two .a{grid-row: 1/6;/* grid-column: 1/2; */}
.two .b{grid-row: 1/3;grid-column: 2/3;}
.two .c{grid-row: 1/4;grid-column: 3/4;}
.two .d{grid-row: 1/2;grid-column: 4/5;}
.two .e{grid-row: 3/6;grid-column: 2/3;}
.two .f{grid-row: 4/5;grid-column: 3/4;}
.two .g{grid-row: 2/5;grid-column: 4/5;}
.two .h{grid-row: 6/7;grid-column: 1/2;}
.two .i{grid-row: 6/7;grid-column: 2/3;}
.two .j{grid-row: 5/7;grid-column: 3/5;}
/*
------ Grid Area sintax -------
*/
.wrapper.three {
display: grid;
grid-gap: 10px;
grid-template-rows: auto;
grid-template-columns: auto;
grid-template-areas:
"camilo-header"
"camilo-article"
"camilo-sidebar"
"camilo-section";
}
.wrapper.three header, .wrapper.three article, .wrapper.three aside {
padding: 10px;
}
.wrapper.three header {
background-color: blue;
color: white;
grid-area: camilo-header;
}
.wrapper.three article {
background-color: green;
color: white;
grid-area: camilo-article;
}
.wrapper.three aside {
background-color: yellow;
grid-area: camilo-sidebar;
}
.wrapper.three section {
display: grid;
grid-area: camilo-section;
grid-template-columns: repeat(3, 1fr);
grid-template-areas: "name ... lastName";
}
.wrapper.three section div {
display: flex;
color: white;
align-items: center;
justify-content: center;
background-color: gray;
}
.wrapper.three section div:first-child {
grid-area: name;
}
.wrapper.three section div:last-child {
grid-area: lastName;
}
@media (min-width: 650px) {
.wrapper.three {
grid-template-columns: repeat(4, 1fr);
grid-template-areas:
"camilo-article camilo-article camilo-article camilo-sidebar"
"camilo-header camilo-header camilo-header camilo-header"
"camilo-section camilo-section camilo-section camilo-section";
}
}
@media (min-width: 1000px) {
.wrapper.three {
grid-template-areas:
"camilo-sidebar camilo-header camilo-header camilo-header"
"camilo-sidebar camilo-article camilo-article ..."
"camilo-section camilo-section camilo-section camilo-section";
}
}