55
66@layer base {
77 : root {
8+
89 --font-size-min : 16 ;
910 --font-size-max : 20 ;
1011 --font-ratio-min : 1.2 ;
1415 --accent : 136 , 58 , 234 ;
1516 --accent-light : 224 , 204 , 250 ;
1617 --accent-dark : 49 , 10 , 101 ;
17- --accent-gradient : linear-gradient (45deg , rgb (var (--accent )), rgb (var (--accent-light )) 30% , white 60% );
18- --background : light-dark (blue, yellow);
1918 }
20-
19+
2120 html {
2221 color-scheme : light dark;
2322 height : 100% ;
24-
25- font-family : system-ui, sans-serif;
2623 scroll-behavior : smooth;
27- }
28-
29- [data-theme = "light" ] {
30- color-scheme : light only;
31- }
32-
33- [data-theme = "dark" ] {
34- color-scheme : dark only;
24+ font-family : system-ui, sans-serif;
3525 }
3626
3727 * ,
38- * : after ,
39- * : before {
28+ * :: before ,
29+ * :: after {
4030 box-sizing : border-box;
4131 }
4232
4333 body {
44- display : block ;
45- container-type : inline-size ;
46- container-name : thread ;
47- box-sizing : border-box ;
34+ margin : 0 ;
35+ padding : 0 ;
36+ width : 100 % ;
37+ max-width : 100 % ;
4838 min-height : 100vh ;
49- font-family : "Roboto" , "SF Pro Text" , "SF Pro Icons" , "AOS Icons" , "Helvetica Neue" , Helvetica, Arial, sans-serif,
50- system-ui;
51- padding-left : clamp (1rem , 5vw , 10rem );
52- padding-right : clamp (1rem , 5vw , 10rem );
39+ overflow-x : hidden;
40+ display : block;
41+ font-family : "Roboto" , "SF Pro Text" , "Helvetica Neue" , Arial, sans-serif;
5342 transition : background-color 0.3s ease;
43+
5444 }
5545
46+ /* Grid Background */
5647 body ::before {
5748 --size : 45px ;
58- --line : color-mix (in lch , canvasText , transparent 70 % );
49+ --line : rgba ( 255 , 255 , 255 , 0.06 );
5950 content : "" ;
60- height : 100vh ;
61- width : 100vw ;
6251 position : fixed;
52+ inset : 0 ;
53+ width : 100% ;
54+ height : 100% ;
6355 background :
64- linear-gradient (90deg , var (--line ) 1px , transparent 1px var (--size )) 50% 50% / var (--size ) var (--size ),
65- linear-gradient (var (--line ) 1px , transparent 1px var (--size )) 50% 50% / var (--size ) var (--size );
66- mask : linear-gradient (150deg , transparent 50% , white);
67- top : 0 ;
68- transform-style : flat;
56+ linear-gradient (90deg , var (--line ) 1px , transparent 1px ),
57+ linear-gradient (var (--line ) 1px , transparent 1px );
58+ background-size : var (--size ) var (--size );
6959 pointer-events : none;
60+ z-index : -1 ;
7061 }
7162
72- : where (.x-link ): is (: hover , : focus-visible ) {
73- opacity : 1 ;
74- }
75-
63+ /* MAIN FIX */
7664 main {
77- display : grid;
78- gap : 4px ;
79- grid-template-columns : 20rem 1fr ;
80- grid-auto-flow : column;
81- grid-template-areas : "sidebar content" ;
82-
83- & .sidebar {
84- grid-area : sidebar;
85- }
86-
87- & .content {
88- grid-area : content;
89- }
65+ display : block !important ;
66+ width : 100% !important ;
67+ max-width : 100% !important ;
68+ padding : 0 !important ;
69+ margin : 0 !important ;
9070 }
9171
92- @container thread (max-width: 768px) {
93- main {
94- grid-template-areas : "content" ;
95- grid-template-columns : auto 1fr ;
96-
97- & .content {
98- grid-area : content;
99- grid-column : span 2 ;
100- }
101- }
72+ .content {
73+ width : 100% !important ;
74+ max-width : 100% !important ;
75+ display : block !important ;
76+ padding : 0 !important ;
77+ margin : 0 !important ;
10278 }
10379
104- /* Utilities */
105- .sr-only {
106- position : absolute;
107- width : 1px ;
108- height : 1px ;
109- padding : 0 ;
110- margin : -1px ;
111- overflow : hidden;
112- clip : rect (0 , 0 , 0 , 0 );
113- white-space : nowrap;
114- border-width : 0 ;
80+ .sidebar {
81+ display : none !important ;
82+ width : 0 !important ;
11583 }
11684
117- .link__active ,
118- .text__active {
119- @apply text-customLight-active dark:text-customDark-active;
85+ section {
86+ width : 100% ;
12087 }
12188
122- . outline {
123- outline : 1 px solid greenyellow ;
89+ textarea {
90+ resize : none ;
12491 }
12592
12693 .whiteBg {
127- background-color : # eee ;
128- color : # 111 ;
94+ background : # ffffff ;
95+ color : # 111111 ;
12996 }
13097
13198 .darkBg {
132- background-color : # 222 ;
133- color : # fff ;
99+ background : # 050505 ;
100+ color : # ffffff ;
134101 }
135102
136- textarea {
137- resize : none ;
103+ . yellowBtnHover : hover {
104+ background-color : # d4a900 ;
138105 }
139106
140107 .blackBtnHover : hover {
141108 background-color : # 1c1c1c ;
142- color : # b8b8b8 ;
143- }
144-
145- .yellowBtnHover : hover {
146- background-color : # b89405 ;
109+ color : # d1d1d1 ;
147110 }
148111
149112 .clipped-logo {
150113 position : relative;
151- -webkit- clip-path: inset (30 px 10 px 30 px 10 px );
152- clip-path : inset (30 px 10 px 30 px 10 px );
114+ clip-path : inset (0 );
115+ -webkit- clip-path: inset (0 );
153116 }
154117}
0 commit comments