aboutsummaryrefslogtreecommitdiff
path: root/assets/scss/_aside.scss
blob: 6ec573f2f8b8ed94db0f75bb9579b1f7ebf301ec (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
136
137
138
139
140
141
142
143
144
body > aside {

    position: fixed;
    top: calc(50% - 150px);
    height: 300px;
    background: black url(../img/aside-off.png) center right no-repeat;
    left: -20rem;
    width: 20rem;
    padding: 1rem;

    &:hover, &:focus {
	left: 0;
	background: $bg-main url(../img/aside-on.png) center left no-repeat;
	box-shadow: 1px 2px 2px 1px rgba(0, 0, 0, 0.4);
	width: auto;
	border-right: 2rem solid black;
	padding: 0;

	nav {
	    display: block;
	    background: $bg-main url(../img/aside-on.png) center left no-repeat;
	    height: 100%;

            h3 {
		a:link, a:hover, a:active, a:visited {
		    color: transparent;
		}
	    }
	}

	ul li:hover {
	    a:hover {
		text-decoration: none;
	    }
            span {
		display: block;
	    }
	    &:first-child {
		transform: scale(1.4) rotate(4deg) translateX(-0.75vw);
		a {
		    transform: rotate(-4deg);
		}
	    }
	    &:nth-child(2) {
		transform: scale(1.4) rotate(-6deg) translateX(-0.5vw);
		a {
		    transform: rotate(6deg);
		}
	    }
	    &:last-child {
		transform: scale(1.4) rotate(5deg) translateX(-0.5vw);
		a {
		    transform: rotate(-5deg);
		}
	    }
	}
    }

    nav {
	position: relative;
	margin-left: 3rem;
	display: none;
	line-height: 30rem;

	h3 {
	    display: inline-block;
	    background: url(../img/logo-ps.svg) 3rem center / 10rem fixed no-repeat;
	    width: 10rem;
	    height: 100%;
	    vertical-align: top;
	    color: transparent;

	    a {
		display: block;
		height: 100%;
		width: 100%;
		line-height: 30rem;
		color: transparent;
		&:hover {
		    color: transparent;
		}
	    }
	}

	ul {
	    list-style: none;
	    display: inline-block;
	    height: 100%;

	    li {
		display: block;
		padding: 0 2rem;
		font-size: 3rem;
		float: left;
		padding-left: 1rem;
		z-index: 400;
		overflow: hidden;
		width: 10rem;
		height: 100%;

		a {
		    color: black;
		    text-decoration: none;
		    display: block;
		    height: 100%;
		    width: 100%;
		    z-index: 404;

                    &:link, &:visited {
			color: inherit;
		    }

		    &:hover {
			font-size: 200%;
			color: inherit;
			z-index: 404;
		    }
		}

		span {
		    display: none;
		    z-index: 400;
		    position: relative;
		    font-size: 1.25rem;
		    line-height: 1.6rem;
		    text-align: center;
		    margin: -3rem -2rem 0 -1rem;
		}

		&:first-child {
		    background: $bg-gfx;
		}

		&:nth-child(2) {
		    background: $bg-txt;
		}

		&:last-child {
		    background: $bg-vda;
		}
	    }
	}
    }
}