Skip to content

Commit

Permalink
fix(styles): gecut layout
Browse files Browse the repository at this point in the history
  • Loading branch information
MM25Zamanian committed Jun 26, 2024
1 parent b10cbfe commit 17728d2
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 23 deletions.
31 changes: 31 additions & 0 deletions packages/styles/src/css/layout.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
@layer utilities {
.gecut-layout {
* {
@apply select-none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
i,
b,
strong,
em,
code,
kbd,
var,
cite,
dfn,
abbr,
address,
q,
blockquote,
ins,
del {
@apply select-auto;
}

body {
main {
&.has-top-bar {
Expand Down
21 changes: 1 addition & 20 deletions packages/styles/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,8 @@
@import './css/alpine.css';
@import './css/form.css';
@import './css/scrollbar.css';
@import './css/layout.css';
@import './css/utilities.css';
@import './css/typography.css';

@import './components/components.css';

@layer base {
gecut-root,
.root {
@apply flex flex-col h-full w-full overflow-hidden relative;
}

main[role='main'] {
@apply flex flex-col flex-1 overflow-hidden relative;
}

.gecut-page,
.page {
&.scrollable {
@apply overflow-x-auto;
}

@apply flex flex-col h-full gap-2;
}
}
6 changes: 3 additions & 3 deletions packages/styles/src/plugins/translucent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import plugin from 'tailwindcss/plugin.js';

export const translucentPlugin = plugin(({addUtilities}) => {
addUtilities({
'@supports (backdrop-filter: blur(20px))': {
'@supports (backdrop-filter: blur(0.75rem))': {
'.translucent': {
'--tw-bg-opacity': '0.8 !important',
'backdrop-filter': 'saturate(180%) blur(20px)',
'--tw-bg-opacity': '0.7 !important',
'backdrop-filter': 'saturate(120%) blur(0.75rem)',
},
},
});
Expand Down

0 comments on commit 17728d2

Please sign in to comment.