forked from okikio/native
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.scss
162 lines (140 loc) · 3.59 KB
/
app.scss
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
@tailwind base;
@tailwind components;
@tailwind utilities;
@import "./components/navbar.scss";
body {
@apply bg-white text-black;
@apply dark:bg-black dark:text-label;
@apply font-manrope;
font-size: 1rem;
line-height: 1.5;
}
.no-overflow-x {
overflow-x: hidden;
}
.icon {
-webkit-font-feature-settings: "liga" off, "dlig";
-moz-font-feature-settings: "liga=0, dlig=1";
font-feature-settings: "liga", "dlig";
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
font-family: "Material Icons Round", "Material Icons";
vertical-align: middle;
letter-spacing: normal;
display: inline-block;
text-decoration: none;
text-transform: none;
white-space: nowrap;
font-weight: normal;
position: relative;
font-style: normal;
word-wrap: normal;
font-size: 24px;
line-height: 1;
direction: ltr;
height: 1em;
width: 1em;
}
a {
@apply text-blue-500 hover:text-blue-700 underline;
@apply dark:text-blue-400 dark:hover:text-blue-200;
}
button,
a {
transition: color 0.2s ease-out, box-shadow 0.2s ease-out;
@apply focus-visible:ring-4 focus-visible:ring-blue-500 focus-visible:ring-opacity-50;
@apply focus:outline-none focus-visible:rounded-sm;
-webkit-tap-highlight-color: transparent;
}
@screen md {
.desktop {
display: block;
}
.mobile {
display: none;
}
}
@screen lt-md {
.mobile {
display: block;
}
.desktop {
display: none;
}
}
.navbar-toggle,
.theme-toggle,
.btn-icon {
@apply rounded-md;
@apply mr-1 w-10 h-10 text-blue-500 bg-gray-100 hover:bg-gray-200 active:bg-blue-200;
@apply dark:text-blue-400 dark:bg-quaternary;
@apply dark:hover:bg-gray-800 dark:active:bg-gray-700;
@apply focus-visible:border-blue-600 focus-visible:ring-4 focus:rounded-md;
}
.btn-icon {
@apply bg-white hover:bg-gray-100 active:bg-blue-200;
@apply dark:text-blue-400 dark:bg-tertiary;
@apply dark:hover:bg-gray-800 dark:active:bg-gray-700;
@apply focus-visible:border-blue-600 focus-visible:ring-4 focus:rounded-md;
}
.btn-highlight {
@apply rounded-md mr-1 inline-block;
@apply text-blue-500 bg-gray-100 hover:bg-gray-200 active:bg-blue-200;
@apply dark:text-blue-400 dark:bg-quaternary;
@apply dark:hover:bg-gray-800 dark:active:bg-gray-700;
@apply focus-visible:border-blue-600 focus-visible:ring-4 focus:rounded-md;
}
.btn {
@apply px-3 py-2 rounded-md no-underline hover:bg-gray-200;
@apply dark:text-blue-400 dark:hover:bg-quaternary;
&.active {
@apply bg-blue-600 text-white hover:bg-blue-700;
@apply dark:bg-blue-400 dark:text-black dark:hover:bg-blue-500;
}
&:hover {
@apply bg-opacity-60;
}
}
#big-transition {
position: fixed;
z-index: 2000;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
opacity: 0;
visibility: hidden;
}
#big-transition #logo {
opacity: 0;
visibility: hidden;
}
#big-transition #big-transition-horizontal {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
}
#big-transition #big-transition-horizontal {
flex-flow: column;
}
#big-transition #big-transition-horizontal > div {
width: 100%;
flex: 1 1;
@apply bg-gray-200 dark:bg-quaternary;
@apply border-4 border-gray-200;
@apply dark:border-quaternary;
transform-origin: 0 0;
transform: scaleX(0);
}
#logo {
position: absolute;
z-index: 12;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}