-
Notifications
You must be signed in to change notification settings - Fork 0
/
cards.css
executable file
·140 lines (115 loc) · 2.31 KB
/
cards.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
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
.card-container {
display: grid;
justify-content: center;
align-content: center;
grid-template-columns: repeat(12, 1fr);
width: auto;
height: auto;
}
/* Light cards */
.card {
display: flex;
flex-direction: column;
justify-content: space-around;
position: relative;
grid-column: auto;
grid-row: auto;
background-color: #fefefe;
border-style: solid;
border-width: 1px;
border-radius: 5px;
border-color: #afafaf;
padding: 1em;
margin: .5em .5em;
}
.card-row {
grid-column: 1 / -1;
text-align: center;
}
.card:hover {
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}
.card.pressable:hover{
border-color: #000000;
}
.card.pressable:active {
border-color: #afafaf;
}
.card > .card-title {
font-size: 1.3rem;
font-weight: 400;
color: #000000;
margin: 0em 0em .5em 0em;
}
.card > .card-title > .card-icon {
float: right;
font-size: 1.4rem;
margin-left: 1rem;
}
.card.card-row > .card-title > .card-icon {
float: inherit;
margin-left: 0;
}
.card > .card-inner-container > .card-item {
font-size: 1rem;
font-weight: 300;
line-height: 1.4rem;
color: #333333;
display: block;
margin: .5em 0em;
}
.card > .card-inner-container a {
color: #333333;
}
.card > .card-inner-container a:hover {
color: #000000;
}
.card-links {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
flex-direction: row;
margin: .8em 0;
}
.card-links a {
display: inline-block;
text-align: center;
font-size: 1rem;
margin: 0em 1em;
color: #81a2be;
}
.card-links a:hover {
color: #b294bb;
}
/* Dark variants of cards */
.dark-theme .card {
background-color: #1d1f21;
border-color: #7f7f7f;
}
.dark-theme .card:hover {
border-color: #ffffff;
}
.dark-theme .card.pressable:active {
border-color: #7f7f7f;
}
.dark-theme .card > .card-title {
color: #ffffff;
}
.dark-theme .card > .card-inner-container > .card-item {
color: #afafaf;
}
.dark-theme .card > .card-inner-container a {
color: #dfdfdf;
}
.dark-theme .card > .card-inner-container a:hover {
color: #ffffff;
}
/* Borderless cards */
.card.borderless {
border: none;
background: rgba(0, 0, 0, 0);
}
.card.borderless:hover{
box-shadow: none;
}