aboutsummaryrefslogtreecommitdiff
path: root/packages/client/src/App.vue
blob: d34fcc540139fa9cf45f8938eb85da94f41593b8 (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
<template>
	<router-view />
</template>

<script lang="ts">
import { defineComponent } from "vue";
import { RouteLocation } from "vue-router";

export default defineComponent({
	name: "App",
	data: function() {
		return {
			base_title: ""
		};
	},
	methods: {
		setTitle() {
			const route: RouteLocation = this.$route;

			document.title = route.params.repo ? `${route.params.repo} - ${route.name?.toString()}` : this.base_title;
		}
	},
	created() {
		this.base_title = document.title;
		this.setTitle();
	},
	watch: {
		$route() {
			this.setTitle();
		}
	}
});
</script>

<style lang="scss">
@use "scss/colors";
@use "scss/variables";
@use "scss/fonts";

$gutter-x: 1.5rem;
$gutter-y: 0rem;

#app {
	font-family: fonts.$primary;
	color: colors.$text;
	min-height: 100vh;
	background-color: colors.$background;
}

a {
	color: colors.$text;
	text-decoration: none;
	transition: color 0.15s ease-in-out;
	&:hover {
		color: colors.$primary-light;
	}
}

.container {
	display: flex;
	width: 100%;
	padding-right: 0;
	padding-left: 0;
	margin-right: auto;
	margin-left: auto;
	flex-flow: column;
	height: 100vh;
}

.row {
	display: flex;
	flex-wrap: wrap;
	margin-top: calc(#{$gutter-y} * -1);
	margin-right: 0;
	margin-left: 0;
	height: 100%;

	> * {
		width: 100%;
		max-width: 100%;
		padding-right: calc(#{$gutter-x} / 2);
		padding-left: calc(#{$gutter-x} / 2);
		margin-top: $gutter-y;
	}
}

.col {
	flex: 1 0 0%;
	margin-left: 3rem;
	margin-top: 1rem;
}

.fs-1 {
	font-size: variables.$font-size-1;
}
.fs-2 {
	font-size: variables.$font-size-2;
}
.fs-3 {
	font-size: variables.$font-size-3;
}
.fs-4 {
	font-size: variables.$font-size-4;
}
.fs-5 {
	font-size: variables.$font-size-5;
}
.fs-6 {
	font-size: variables.$font-size-6;
}

@media (max-width: 1200px) {
	.fs-1 {
		font-size: calc(1.375rem + 0.667vw) !important;
	}
	.fs-2 {
		font-size: calc(1.325rem + 1.584vw) !important;
	}
	.fs-3 {
		font-size: calc(1.3rem + 0.017vw) !important;
	}
	.fs-4 {
		font-size: calc(0.82rem + 0.4vw) !important;
	}
	.fs-5 {
		font-size: calc(0.65rem + 0.25vw) !important;
	}
}

@media (min-width: 576px) {
	.col {
		margin-left: 4.5rem;
	}
}
</style>