-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
129 lines (118 loc) · 2.11 KB
/
styles.css
File metadata and controls
129 lines (118 loc) · 2.11 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
.form-row {
display: flex;
padding-top: 0.3rem;
padding-bottom: 0.3rem;
padding-right: 1rem;
}
.form-row input {
padding-left: 0.1rem;
flex: 1;
}
/* COLUMN LAYOUT */
.column-layout {
display: flex;
}
.sidebar-left {
order: 0;
flex: 1;
}
.main-column {
order: 1;
flex: 2;
}
.sidebar-right {
order: 2;
flex: 1;
}
/* FEATURES 3 COLUMNS */
.feature-flex-container {
box-sizing: border-box;
max-width: 1400px;
margin: 40px auto 0 auto;
/* If i don't want equal height for all the flex-children
I can add : */
/* align-items: flex-start; */
/* Default: */
align-items: stretch;
}
.feature-1 {
background-color: rgb(160, 186, 193);
/* Cat % sa ia din spatiu fiecare element */
flex-basis: 30%;
}
.feature-2 {
background-color: rgb(189, 227, 176);
/* Cat % sa ia din spatiu fiecare element */
flex-basis: 30%;
}
.feature-3 {
background-color: rgb(163, 144, 178);
/* Cat % sa ia din spatiu fiecare element */
flex-basis: 30%;
}
/* MEDIA QUERY */
@media (min-width: 900px) {
.feature-flex-container {
justify-content: space-between;
display: flex;
}
}
/* MULTIPLE ROWS OF ITEMS */
.rows-flex-container {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
.box {
display: flex;
width: 150px;
height: 100px;
background-color: chocolate;
border: 2px solid black;
}
.box h1 {
margin: auto;
font-size: 3rem;
font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}
/* SIMPLE CENTERING */
.center-container-for-container {
display: flex;
justify-content: center;
}
.center-flex-container {
display: flex;
background-color: black;
height: 350px;
width: 350px;
justify-content: center;
align-items: center;
}
.center-heading {
color: white;
margin: auto;
}
/* COLUMN LAYOUT */
.columns-flex-container {
display: flex;
border: 2px solid black;
margin-bottom: 5rem;
}
.main-header {
padding: 1rem;
}
.boxes {
display: flex;
flex-direction: column;
}
.A {
flex: 1;
min-width: 200px;
background-color: yellowgreen;
padding: 0.5rem;
}
.B {
flex: 1;
padding: 0.5rem;
background-color: blueviolet;
}