Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

给语言选择加一个大而美的边框 #16

Merged
merged 4 commits into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions themes/2345lgbt/assets/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
$padding-1: 0.0625rem;
$padding-translations: 0.1875rem;
$border-radius: var(--border-radius);
$link-active: #3287ff;
$link-inactive: #000;
Expand Down
7 changes: 6 additions & 1 deletion themes/2345lgbt/assets/styles/header/translations.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,12 @@ $padding: 0.5em;
text-align: left;

color: #49454f;
border: $padding-1 solid #79747e;
//border: $padding-1 solid #79747e; //因为$padding-1参数(themes/2345lgbt/assets/_variables.scss)同时控制着主要部分卡片的边框粗细, 所以此处无法使用
ddzzkunye marked this conversation as resolved.
Show resolved Hide resolved
border: $padding-translations solid transparent; //0.1875是0.0625(也就是2024Feb18的$padding-1值)的三倍
ddzzkunye marked this conversation as resolved.
Show resolved Hide resolved
background-clip: padding-box, border-box;
background-origin: padding-box, border-box;
background-image: linear-gradient(to right, #fff, #fff), linear-gradient(135deg, #E4A8CA 20%, #2D8AFB 20%); //渐变的颜色使用了logo的颜色 相同的角度 硬边渐变 还好我是学数字媒体的
ddzzkunye marked this conversation as resolved.
Show resolved Hide resolved
// 上方四行实现了渐变, 参考https://segmentfault.com/a/1190000040794056
ddzzkunye marked this conversation as resolved.
Show resolved Hide resolved
border-radius: 1em;
background: transparent;
&::before {
Expand Down