-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathholygrail.css
More file actions
83 lines (75 loc) · 1.28 KB
/
holygrail.css
File metadata and controls
83 lines (75 loc) · 1.28 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
/**
* Make body at least 100% height
* You can also use a combination
* of height: 100% in <html> and
* min-height: 100% in <body>.
*/
body {
min-height: 100vh;
margin: 0;
}
/**
* Let's do a column distribution
* (mobile first)
* flex value is 1 1 auto to make
* body skrinkable and extensible
*/
.holy-grail,
.holy-grail-body {
display: flex;
flex: 1 1 auto;
flex-direction: column;
}
/**
* Content body item is made
* extensible too.
*/
.holy-grail-content {
flex: 1 1 auto;
}
/**
* Put the first sidebar before content.
* If you need sidebar to be before content
* only in big screen put those 3 next lines
* in @media block.
*/
.holy-grail-sidebar-1 {
order: -1;
background-color: yellow;
}
.holy-grail-sidebar-2 {
background-color: brown;
}
/**
* Let's introduce bigger screen
*/
@media (min-width: 768px) {
/**
* Body items are now side by side
*/
.holy-grail-body {
flex-direction: row;
}
/**
* Sidebars have a basic 260 width
* and are not really flexible anymore
*/
.hg-sidebar {
flex: 0 0 260px;
}
}
.header{
background-color: black;
}
.footer{
background-color: orange;
}
.holy-grail-body{
background-color: rgb(123,54,66);
}
.holy-grail-content{
background-color: rgb(14,240,153);
}
.holy-grail{
background-color: rgb(56,27,240);
}