cabotia / cabotia.dev/ commit / 5ad18d2

assets/main: add some shenanigans for the main layout

Pedro Lucas Porcellis porcellis@eletrotupi.com · 9 months ago 5ad18d288e7820745d7e6d055e52f9245d81031c Browse files
Parents 60802d2
Changed files
1
Additions
+40
Deletions
0
assets/main.scss modified+40
assets/main.scss
1 1
@import 'fonts.scss';
2 2

3 3
$font-size-1: 0.8rem;
4 4
$font-size-2: 19px;
5 5
$font-size-3: 1.4rem;
12 12
$color-text: #111;
13 13
$color-lighter: lighten($color-text, 10%);
14 14
$color-gray: #60606f;
15 15
$color-lightgray: lighten($color-gray, 30%);
16 16

17 +
$landing-size-value: 2.2;
18 +
$landing-line-height: 1.4em;
19 +

17 20
$font-family-body: 'Castoro', serif;
18 21

19 22
* {
20 23
	box-sizing: border-box;
21 24
}
38 41
	&:hover {
39 42
		color: $color-main-lighter;
40 43
	}
41 44
}
42 45

46 +
header {
47 +
	display: flex;
48 +
	flex-wrap: nowrap;
49 +
	flex: 1 0 67%;
50 +
	align-items: center;
51 +

52 +
	.logo {
53 +
		flex-grow: 0;
54 +
		flex-shrink: 0;
55 +
	}
56 +

57 +
	nav {
58 +
		text-align: right;
59 +
		margin-left: auto;
60 +
		padding-left: 2.5vw;
61 +

62 +
		flex-grow: 1;
63 +
		flex-shrink: 1;
64 +

65 +
		a {
66 +
			font-family: sans-serif;
67 +
			font-weight: 700;
68 +

69 +
			&:not(:first-child) {
70 +
				margin-left: 2.5vw;
71 +
			}
72 +
		}
73 +
	}
74 +
}
75 +

43 76
.fine-line {
44 77
	color: $color-lightgray;
45 78
}
46 79

47 80
footer {
61 94
	a {
62 95
		color: $color-gray;
63 96
	}
64 97
}
65 98

99 +
.landing p {
100 +
	font-style: normal;
101 +
	font-size: calc(calc(2.2 - 1) * calc(.012 * min(100vh, 900px)) + 1rem);
102 +
	font-weight: 400;
103 +
	line-height: calc(1.4em * (1 + (1 - 2.2)/25));
104 +
	text-align: justify;
105 +
}