Skip to content

Commit 17728d2

Browse files
committed
fix(styles): gecut layout
1 parent b10cbfe commit 17728d2

File tree

3 files changed

+35
-23
lines changed

3 files changed

+35
-23
lines changed

packages/styles/src/css/layout.css

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
11
@layer utilities {
22
.gecut-layout {
3+
* {
4+
@apply select-none;
5+
}
6+
7+
h1,
8+
h2,
9+
h3,
10+
h4,
11+
h5,
12+
h6,
13+
p,
14+
span,
15+
a,
16+
i,
17+
b,
18+
strong,
19+
em,
20+
code,
21+
kbd,
22+
var,
23+
cite,
24+
dfn,
25+
abbr,
26+
address,
27+
q,
28+
blockquote,
29+
ins,
30+
del {
31+
@apply select-auto;
32+
}
33+
334
body {
435
main {
536
&.has-top-bar {

packages/styles/src/index.css

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,8 @@
66
@import './css/alpine.css';
77
@import './css/form.css';
88
@import './css/scrollbar.css';
9+
@import './css/layout.css';
910
@import './css/utilities.css';
1011
@import './css/typography.css';
1112

1213
@import './components/components.css';
13-
14-
@layer base {
15-
gecut-root,
16-
.root {
17-
@apply flex flex-col h-full w-full overflow-hidden relative;
18-
}
19-
20-
main[role='main'] {
21-
@apply flex flex-col flex-1 overflow-hidden relative;
22-
}
23-
24-
.gecut-page,
25-
.page {
26-
&.scrollable {
27-
@apply overflow-x-auto;
28-
}
29-
30-
@apply flex flex-col h-full gap-2;
31-
}
32-
}

packages/styles/src/plugins/translucent.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import plugin from 'tailwindcss/plugin.js';
22

33
export const translucentPlugin = plugin(({addUtilities}) => {
44
addUtilities({
5-
'@supports (backdrop-filter: blur(20px))': {
5+
'@supports (backdrop-filter: blur(0.75rem))': {
66
'.translucent': {
7-
'--tw-bg-opacity': '0.8 !important',
8-
'backdrop-filter': 'saturate(180%) blur(20px)',
7+
'--tw-bg-opacity': '0.7 !important',
8+
'backdrop-filter': 'saturate(120%) blur(0.75rem)',
99
},
1010
},
1111
});

0 commit comments

Comments
 (0)