-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.css
96 lines (77 loc) · 1.64 KB
/
app.css
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
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
html,
body {
@apply h-full;
}
html {
--bg: transparent;
--bg-dark: transparent;
--header: transparent;
--header-dark: transparent;
}
body {
-webkit-tap-highlight-color: transparent;
background: var(--bg);
}
.dark body {
background: var(--bg-dark);
}
*,
::before,
::after {
/* Auto direction for text */
unicode-bidi: plaintext;
}
}
@layer utilities {
/*
Disable CSS transitions. Apply to the html tag as a class
https://stackoverflow.com/questions/11131875/what-is-the-cleanest-way-to-disable-css-transition-effects-temporarily
*/
.not-ready * {
@apply !transition-none;
}
.btn-menu::before,
.btn-menu::after {
@apply block h-[2px] w-5 bg-black duration-200 content-[''] dark:invert;
}
.open {
@apply overflow-hidden;
}
.open .btn-menu::before {
@apply w-6 translate-y-[5.5px] rotate-45;
}
.open .btn-menu::after {
@apply w-6 -translate-y-[5.5px] -rotate-45;
}
article {
@apply text-lg;
}
.header {
background-color: var(--header);
}
.dark .header {
background: var(--header-dark);
}
.blur-header {
@apply bg-black/10 backdrop-blur
}
.block-bg {
@apply bg-black/[3%]
}
.block-hover {
@apply hover:bg-black/[5%]
}
.block-hover-mask {
@apply hover:bg-black/[2%]
}
.primary-link {
@apply bg-transparent border-none hover:underline hover:decoration-4 hover:decoration-[#BECA9A]
}
.secondary-link {
@apply bg-transparent border-none hover:underline hover:decoration-2 hover:decoration-[#BECA9A]
}
}