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 all 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
8 changes: 6 additions & 2 deletions themes/2345lgbt/assets/styles/header/translations.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,13 @@ $padding: 0.5em;
text-align: left;

color: #49454f;
border: $padding-1 solid #79747e;
border: $padding-translations solid transparent;
// The lower three rows realize the gradient border, reference https://segmentfault.com/a/1190000040794056
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%);
//gravity uses the color of the logo using hard side gradients at the same angle
border-radius: 1em;
background: transparent;
&::before {
position: absolute;
left: 1em;
Expand Down