summaryrefslogtreecommitdiff
path: root/examples/portfolio/src/components/PortfolioPreview/styles.module.scss
blob: bded615474146e93e89902d672bd3077ddf94493 (plain) (blame)
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
.card {
	position: relative;
	color: var(--t-bg);
	background: var(--t-fg);
	border: 1px solid #f0f0f0;
}

.title {
	position: absolute;
	top: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	color: white;
	flex-direction: column;
	font-size: var(--f-u4);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.0625em;
}

.titleCard {
	position: relative;
	background-size: cover;
	background-position: 50% 100%;
	padding-top: 37.5%;
}

.desc {
	font-size: var(--f-u1);
	line-height: 1.4;
}

.link {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--t-bg);
	font-size: var(--f-u2);
	font-weight: 700;
	background: rgba(0, 0, 0, 0.25);
	opacity: 0;
	text-decoration: none;
	text-transform: uppercase;
	transition: opacity 150ms linear;

	&:focus,
	&:hover {
		opacity: 1;

		.linkInner {
			transform: translateY(0);
			border-color: rgba(255, 255, 255, 0.625);
		}
	}
}

.linkInner {
	padding: 0.375em 1em;
	border: 2px solid rgba(255, 255, 255, 0);
	transition: transform 300ms cubic-bezier(0, 0.4, 0.6, 1), border-color 1s linear;
	transform: translateY(25%);
}

.nav {
	display: flex;
	justify-content: flex-end;
}

.tags {
	font-size: var(--f-d2);
	text-transform: uppercase;
}

.tag {
	display: inline-block;
	color: var(--c-yellow);
	text-transform: uppercase;
	margin-left: 0.5em;

	&:nth-of-type(1n) {
		color: var(--c-green);
	}
	&:nth-of-type(2n) {
		color: var(--c-orange);
	}
	&:nth-of-type(3n) {
		color: var(--c-blue);
	}
	&:nth-of-type(4n) {
		color: var(--c-pink);
	}
}