55
66@layer base {
77 : root {
8-
98 --font-size-min : 16 ;
109 --font-size-max : 20 ;
1110 --font-ratio-min : 1.2 ;
1514 --accent : 136 , 58 , 234 ;
1615 --accent-light : 224 , 204 , 250 ;
1716 --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) ;
1819 }
19-
20+
2021 html {
2122 color-scheme : light dark;
2223 height : 100% ;
23- scroll-behavior : smooth ;
24+
2425 font-family : system-ui, sans-serif;
26+ 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;
2535 }
2636
2737 * ,
28- * :: before ,
29- * :: after {
38+ * : after ,
39+ * : before {
3040 box-sizing : border-box;
3141 }
3242
3343 body {
34- margin : 0 ;
35- padding : 0 ;
36- width : 100% ;
37- max-width : 100% ;
38- min-height : 100vh ;
39- overflow-x : hidden;
4044 display : block;
41- font-family : "Roboto" , "SF Pro Text" , "Helvetica Neue" , Arial, sans-serif;
45+ container-type : inline-size;
46+ container-name : thread;
47+ box-sizing : border-box;
48+ 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 ) ;
4253 transition : background-color 0.3s ease;
43-
4454 }
4555
46- /* Grid Background */
4756 body :: before {
4857 --size : 45px ;
49- --line : rgba ( 255 , 255 , 255 , 0.06 ) ;
58+ --line : color-mix ( in lch , canvasText , transparent 70 % ) ;
5059 content : "" ;
60+ height : 100vh ;
61+ width : 100vw ;
5162 position : fixed;
52- inset : 0 ;
53- width : 100% ;
54- height : 100% ;
5563 background :
56- linear-gradient ( 90deg , var ( --line ) 1px , transparent 1px ) ,
57- linear-gradient ( var ( --line ) 1px , transparent 1px ) ;
58- background-size : var ( --size ) var ( --size ) ;
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;
5969 pointer-events : none;
60- z-index : -1 ;
6170 }
6271
63- /* MAIN FIX */
72+ : where ( . x-link ) : is ( : hover , : focus-visible ) {
73+ opacity : 1 ;
74+ }
75+
6476 main {
65- display : block !important ;
66- width : 100% !important ;
67- max-width : 100% !important ;
68- padding : 0 !important ;
69- margin : 0 !important ;
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+ }
7090 }
7191
72- . content {
73- width : 100% !important ;
74- max-width : 100% !important ;
75- display : block !important ;
76- padding : 0 !important ;
77- margin : 0 !important ;
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+ }
78102 }
79103
80- . sidebar {
81- display : none !important ;
82- width : 0 !important ;
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 ;
83115 }
84116
85- section {
86- width : 100% ;
117+ . link__active ,
118+ . text__active {
119+ @apply text-customLight-active dark:text-customDark-active;
87120 }
88121
89- textarea {
90- resize : none ;
122+ . outline {
123+ outline : 1 px solid greenyellow ;
91124 }
92125
93126 . whiteBg {
94- background : # ffffff ;
95- color : # 111111 ;
127+ background-color : # eee ;
128+ color : # 111 ;
96129 }
97130
98131 . darkBg {
99- background : # 050505 ;
100- color : # ffffff ;
132+ background-color : # 222 ;
133+ color : # fff ;
101134 }
102135
103- . yellowBtnHover : hover {
104- background-color : # d4a900 ;
136+ textarea {
137+ resize : none ;
105138 }
106139
107140 . blackBtnHover : hover {
108141 background-color : # 1c1c1c;
109- color : # d1d1d1;
142+ color : # b8b8b8;
143+ }
144+
145+ . yellowBtnHover : hover {
146+ background-color : # b89405;
110147 }
111148
112149 . clipped-logo {
113150 position : relative;
114- clip-path : inset ( 0 ) ;
115- -webkit- clip-path: inset ( 0 ) ;
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 ) ;
116153 }
117154}
0 commit comments