As the sun rises and the forest mist clears, and the clouds return and the caves darken, these changes of light and shadow are the morning and evening in the mountains. Wildflowers bloom with their subtle fragrance, fine trees flourish with their dense shade, the wind and frost are pure and clean, and the water recedes to reveal the rocks—these are the four seasons in the mountains. Going out in the morning and returning in the evening, the scenery of the four seasons is different, and the joy is endless.至于负者歌于途,行者休于树,前者呼,后者应,伛偻提携,往来而不绝者,滁人游也。临溪而渔,溪深而鱼肥,酿泉为酒,泉香而酒洌,山肴野蔌,杂然而前陈者,太守宴也。宴酣之乐,非丝非竹,射者中,弈者胜,觥筹交错,起坐而喧哗者,众宾欢也。苍颜白发,颓然乎其间者,太守醉也。
@use 'sass:color';
@use 'tokens';
/*
* Button mixin - creates a primary button effect.
* Uses CSS custom properties for theme color support across color schemes.
*/
@mixin button( $button-text-color: #fff ) {
background: var(--wp-admin-theme-color);
border-color: transparent;
border-radius: tokens.$radius-s;
color: $button-text-color;
&:hover {
background: var(--wp-admin-theme-color-darker-10);
border-color: transparent;
color: $button-text-color;
}
&:focus {
background: var(--wp-admin-theme-color);
border-color: transparent;
color: $button-text-color;
/* Gutenberg-style focus ring: outer theme color + inset white for contrast */
box-shadow:
0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color),
inset 0 0 0 1px tokens.$white;
/* Visible in Windows High Contrast mode */
outline: 1px solid transparent;
}
&:active {
background: var(--wp-admin-theme-color-darker-20);
border-color: transparent;
color: $button-text-color;
}
&:disabled,
&.disabled {
background: tokens.$gray-100;
border-color: transparent;
color: tokens.$gray-600;
cursor: not-allowed;
}
&.active,
&.active:focus,
&.active:hover {
background: var(--wp-admin-theme-color-darker-10);
color: $button-text-color;
border-color: transparent;
box-shadow: none;
}
}
/*
* Secondary button mixin - outlined style with theme color.
* Matches Gutenberg's .is-secondary button variant.
*/
@mixin button-secondary() {
background: transparent;
border: 1px solid var(--wp-admin-theme-color);
border-radius: tokens.$radius-s;
color: var(--wp-admin-theme-color);
&:hover {
background: rgba(var(--wp-admin-theme-color--rgb), 0.04);
border-color: var(--wp-admin-theme-color-darker-20);
color: var(--wp-admin-theme-color-darker-20);
}
&:focus {
background: transparent;
border-color: var(--wp-admin-theme-color);
color: var(--wp-admin-theme-color);
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color);
outline: 1px solid transparent;
}
&:active {
background: rgba(var(--wp-admin-theme-color--rgb), 0.08);
border-color: var(--wp-admin-theme-color-darker-20);
color: var(--wp-admin-theme-color-darker-20);
box-shadow: none;
}
&:disabled,
&.disabled {
background: transparent;
border-color: tokens.$gray-300;
color: tokens.$gray-600;
cursor: not-allowed;
}
}
/*
* Tertiary button mixin - transparent background, gray text.
*/
@mixin button-tertiary() {
background: transparent;
border: 1px solid tokens.$gray-600;
border-radius: tokens.$radius-s;
color: tokens.$gray-900;
&:hover {
background: rgba(0, 0, 0, 0.05);
border-color: tokens.$gray-700;
color: tokens.$gray-900;
}
&:focus {
background: transparent;
border-color: var(--wp-admin-theme-color);
color: tokens.$gray-900;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color);
outline: 1px solid transparent;
}
&:active {
background: rgba(0, 0, 0, 0.1);
border-color: tokens.$gray-700;
color: tokens.$gray-900;
}
&:disabled,
&.disabled {
background: transparent;
border-color: tokens.$gray-400;
color: tokens.$gray-600;
cursor: not-allowed;
}
}