aboutsummaryrefslogtreecommitdiff
path: root/assets/scss/_header.scss
blob: bee374fe53754e63fca11c0faa7a289a646f033e (plain)
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
h1,h2,h3,h4,h5,h6 {
    font-family: $serif;
    font-weight: 600;

    a, a:hover, a:focus, a:link, a:visited {
	text-decoration: none;
	color: inherit;
    }
    a:active {
	text-decoration: underline;
	color: $bg-main;
    }
}

body.ps {

    > header {
	position: fixed;
	z-index: 999;
	top: 0;
	left: 0;
	right: 0;
	background: $bg-header;
	padding: 0 2rem;
	color: $fg-header;

	h1 {
	    margin: 0 auto;

	    &:before {
		background: url(../assets/img/logo-ps.svg) center left / 5rem no-repeat;
		display: block;
		width: 5rem;
		height: 5rem;
	    }
	}

	h2 {
	    font-weight: 100;
	    margin-top: -2.6rem;
	    font-size: 3.7rem;
	    transform: rotate(180deg);
	}

	p {
	    font-family: $serif;
	    font-size: 2rem;
	    font-style: italic;
	    margin: -3.8rem 0 0 0;
	    padding: 0 0 0.4rem 0.3rem;

	    span {
		color: black;
	    }
	}
    }

    &.home > header {
	background-color: $bg-dark;
	top: unset;
	right: 5vw;
	bottom: -2vh;
	left: 5vw;
	padding: 1rem;
	font-size: 1.2rem;
	color: $fg-white-85;
	overflow: auto;
	transform: rotate(-2.7deg) translateY(4.5vh) skewX(-5deg);

	h1 {
	    font-size: 7vh;
	    text-align: center;
	    transform: rotate(1.5deg) translateX(5vh) translateY(-1vh);

	    img {
		display: none;
		vertical-align: -1.6rem;
	    }
	}

	section {
	    display: none;
	    max-width: 42rem;
	    margin: 0 auto;
	    padding-bottom: 7rem;
	}

	footer {
	    background-color: rgba(109, 78, 128, 1);
	    display: none;
	    font-size: 1rem;
	    z-index: 999;
	    position: fixed;
	    bottom: 0;
	    left: 0;
	    right: 0;
	    display: none;

	    > h4 {
		display: inline-block;
	    }

	    > nav {
		display: none;
	    }

	    > p {
	        display: none;
		max-width: 42rem;
		margin: 0 auto;
		padding-bottom: 7rem;
	    }
	}

	&:hover {
	    top: 5vh;

	    h1 {
		font-size: 2.6rem;
		transform: rotate(2.7deg) translate(0, 0) skewX(0);
	    }

	    img {
		display: inline-block;
	    }

	    section, footer {
		display: block;
		width: 80vw;
		margin: 0 auto;
		padding-bottom: 3rem;
	    }
	}
    }
}