@@ -89,63 +89,43 @@ details > summary:hover {
8989 margin : 1.5rem 0 ;
9090}
9191
92- .custom-block .info {
93- border-color : rgba ( 24 , 103 , 192 , 0.2 );
94- background-color : rgba ( 24 , 103 , 192 , 0.1 );
95- }
96- . custom-block . info . custom-block-title {
97- color : var ( --vp-c-brand-1 ) ;
92+ .custom-block .tip code ,
93+ . custom-block . info code ,
94+ . custom-block . warning code ,
95+ . custom-block . danger code {
96+ font-size : var ( --vp- custom-block-code-font-size );
97+ font-weight : 700 ;
9898}
9999
100- .custom-block .tip {
101- border-color : rgba (76 , 175 , 80 , 0.2 );
102- background-color : rgba (76 , 175 , 80 , 0.1 );
103- }
104- .custom-block .tip .custom-block-title {
105- color : var (--vp-c-success-1 );
100+ .info .custom-block > p > code ,
101+ .info .custom-block > p > a ,
102+ .info .custom-block > p > a : hover {
103+ color : var (--vp-c-text-2 );
104+ opacity : 1 ;
106105}
107-
108- .custom-block .warning {
109- border-color : rgba (251 , 140 , 0 , 0.2 );
110- background-color : rgba (251 , 140 , 0 , 0.1 );
106+ .tip .custom-block > p > code ,
107+ .tip .custom-block > p > a ,
108+ .tip .custom-block > p > a : hover {
109+ color : var (--vp-c-brand-1 );
110+ opacity : 1 ;
111111}
112- .custom-block .warning .custom-block-title {
112+ .warning .custom-block > p > code ,
113+ .warning .custom-block > p > a ,
114+ .warning .custom-block > p > a : hover {
113115 color : var (--vp-c-warning-1 );
116+ opacity : 1 ;
114117}
115-
116- .custom-block .danger {
117- border-color : rgba (255 , 82 , 82 , 0.2 );
118- background-color : rgba (255 , 82 , 82 , 0.1 );
119- }
120- .custom-block .danger .custom-block-title {
118+ .danger .custom-block > p > code ,
119+ .danger .custom-block > p > a ,
120+ .danger .custom-block > p > a : hover {
121121 color : var (--vp-c-danger-1 );
122+ opacity : 1 ;
122123}
123124
124- .custom-block .tip code ,
125- .custom-block .info code ,
126125.custom-block .warning code ,
127126.custom-block .danger code {
128- background-color : rgba (0 , 0 , 0 , 0.1 );
129- color : inherit;
130- font-weight : 600 ;
131- }
132-
133- /* Dark mode specific tweaks for custom blocks */
134- .dark .custom-block .info {
135- background-color : rgba (33 , 150 , 243 , 0.1 );
136- border-color : rgba (33 , 150 , 243 , 0.2 );
137- }
138- .dark .custom-block .tip {
139- background-color : rgba (76 , 175 , 80 , 0.1 );
140- border-color : rgba (76 , 175 , 80 , 0.2 );
141- }
142- .dark .custom-block .warning {
143- background-color : rgba (255 , 167 , 38 , 0.1 );
144- border-color : rgba (255 , 167 , 38 , 0.2 );
145- }
146- .dark .custom-block .danger {
147- background-color : rgba (255 , 82 , 82 , 0.1 );
148- border-color : rgba (255 , 82 , 82 , 0.2 );
127+ font-size : var (--vp-custom-block-code-font-size );
128+ font-weight : 700 ;
149129}
150130
151131/* Sidebar */
@@ -195,27 +175,6 @@ details > summary:hover {
195175 margin-top : 20px ;
196176}
197177
198- .VPHome .VPHero .actions .action : nth-child (1 ) {
199- flex : 1 0 100% ;
200- }
201-
202- .VPHome .VPHero .actions .action : nth-child (1 ) .VPButton {
203- justify-content : flex-start;
204- width : 100% ;
205- border : 1px solid color-mix (in srgb, var (--vp-c-brand-1 ) 36% , var (--vp-c-divider ));
206- background : color-mix (in srgb, var (--vp-c-bg-soft ) 88% , transparent);
207- font-family : ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
208- font-size : 0.82rem ;
209- letter-spacing : 0 ;
210- overflow-wrap : anywhere;
211- text-align : left;
212- height : auto;
213- padding : 12px 20px ;
214- line-height : 1.4 ;
215- white-space : normal;
216- max-width : calc (100vw - 2 * 24px )
217- }
218-
219178.VPHome .VPFeatures {
220179 padding-top : 36px ;
221180}
@@ -440,11 +399,6 @@ a.home-benefits__item:hover {
440399 .VPHome .VPHero .actions {
441400 margin-top : 8px ;
442401 }
443-
444- .VPHome .VPHero .actions .action : nth-child (1 ) .VPButton {
445- font-size : 0.74rem ;
446- padding : 8px 12px ;
447- }
448402}
449403
450404.VPNavBarTitle .logo {
0 commit comments