aboutsummaryrefslogtreecommitdiff
path: root/apps/website/src/styles/global.css
blob: f98d5743617fd8eb65a17687510e2713cf12d41b (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
@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind variants;

* {
	font-family: 'Poppins', sans-serif;
	-webkit-tap-highlight-color: transparent;
}

@layer base {
	:focus-visible {
		@apply outline-none ring ring-blue-500;
	}

	/* Has to be split because css parser moment */
	::-moz-selection {
		@apply bg-blue-500/20;
	}

	::selection {
		@apply bg-blue-500/20;
	}

	html,
	body {
		@apply text-[15px] md:text-[16px];
	}

	a {
		-webkit-user-drag: none;
	}
}

/* Codeblocks */
.astro-code {
	padding: 10px;
	border-radius: 16px;
	border: 1px solid rgba(65, 74, 88, 1);
	width: 100%;
	line-height: 18px;
}

.astro-code code {
	white-space: pre-wrap;
	padding: 10px;
	padding-bottom: 0;
	color: #546E7A;
}

.astro-code code::before {
	counter-reset: listing;
}

.astro-code code span {
	font-family: 'Roboto Mono', monospace !important;
}

.astro-code code span.line {
	counter-increment: listing;
	text-align: left;
	float: left;
	clear: left;
	font-size: 13px;
	white-space: pre;
}

.astro-code code span.line::before {
	content: counter(listing) " ";
	display: inline-block;
	float: left;
	width: 2em;
	padding: 0;
	margin-left: auto;
	margin-right: 1ch;
	/* margin-right: 10px; */
	text-align: right;
	font-family: 'Roboto Mono', monospace !important;
	font-size: 13px;
}