-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_base.scss
95 lines (94 loc) · 1.95 KB
/
_base.scss
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
// TODO: import/use variables partial
.card {
display: flex;
flex-direction: column;
margin-bottom: 12px;
border: 1px solid $border-color;
border-radius: 5px;
&__image img {
display: block;
border: 0;
width: 100%;
height: auto;
}
&__content {
display: flex;
flex-direction: column;
flex: 1;
padding: 15px 20px 15px;
}
&__text--small,
&__subtext {
font-size: .875rem;
}
&__subtext {
font-weight: 500;
>span {
font-size: 90%;
font-weight: normal;
}
}
&__icon-link {
transition: all 0.3s ease;
&:hover {
transform: scale(1.2);
}
}
&__topic {
font-size: .75rem;
font-weight: 500;
letter-spacing: .1rem;
text-transform: uppercase;
}
&__title {
font-size: 1.125rem;
font-weight: 500;
word-spacing: normal;
letter-spacing: -.01rem;
line-height: 26px;
text-transform: capitalize;
@include md {
font-size: 1.5rem;
line-height: 30px;
letter-spacing: -0.03rem;
}
}
&__subtitle {
color: #000;
font-size: 90%;
}
&__text {
padding-top: .5rem;
}
&__footer {
display: flex;
align-items: center;
justify-content: space-between;
font-size: .75rem;
letter-spacing: 0;
margin-top: auto;
padding-top: 1rem;
}
&__topic, &__footer {
line-height: 1.2rem;
word-spacing: normal;
color: #787679;
}
}
// HOVER STATES
.card--hover-up {
transition: $transition-shadow-transform;
&:hover {
@include shadow-transform-hover;
}
}
.card--hover-fade {
img {
opacity: 1;
transition: opacity 200ms ease;
&:hover {
opacity: .85;
}
}
}
// END HOVER STATES