-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecssentric.layout.css
More file actions
88 lines (72 loc) · 1.25 KB
/
ecssentric.layout.css
File metadata and controls
88 lines (72 loc) · 1.25 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
/* layout */
.header, .footer {
padding: var(--gutter);
background: var(--bg-accent);
}
.row {
display: flex;
flex-direction:row;
flex-wrap:wrap;
max-width:100%;
}
.column {
display:flex;
flex-direction:column;
}
.gutter {
margin: var(--gutter);
}
.center-self {
display:block;
margin-left: auto;
margin-right: auto;
}
.region {
border: 1px solid transparent;
}
/* layout navigation */
.nav {
display: flex;
flex-direction: row;
align-items: center;
flex-wrap: wrap;
}
.nav a:first-of-type {
display: flex;
align-items: center;
}
/* layout cards */
.card {
width:33%;
}
.card img:first-of-type,
.card svg:first-of-type{
margin: 0 auto;
display: block;
}
.card .frame {
border-radius: var(--radius);
border: 1px solid transparent;
box-shadow: black 0.1rem 0.1rem .5rem;
margin: var(--gutter);
padding: var(--gutter);
background: var(--bg-content);
overflow: hidden;
position:relative; /* allows .stretched-link to make the whole frame clickable */
}
.card .frame.transparent {
box-shadow: none;
background:none;
}
.card .frame .stretched-link::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1;
content: "";
}
@media only screen and (max-width: 767px) {
.card { width: 100% }
}