-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Adjust dark mode colours - Fix up form radio button styles - Share radio styles between radio fields and custom amount - Keep the box shadow on light mode - Improve fallback banner dark styles Ticket: https://phabricator.wikimedia.org/T372553
- Loading branch information
Showing
10 changed files
with
93 additions
and
74 deletions.
There are no files selected for viewing
9 changes: 2 additions & 7 deletions
9
banners/english/C24_WMDE_Desktop_EN_01/content/FallbackSlides.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
src/themes/Treedip/DonationForm/BubbleForm/radio-input.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
@use 'sass:math'; | ||
|
||
$size: 10px; | ||
|
||
@mixin styles( $left: 6px ) { | ||
appearance: none; | ||
position: absolute; | ||
top: 50%; | ||
margin-top: -( math.div( $size, 2 ) ); | ||
width: $size; | ||
height: $size; | ||
border-radius: 50%; | ||
display: block; | ||
box-sizing: border-box; | ||
cursor: pointer; | ||
transition: background 150ms ease-out; | ||
margin-right: 10px; | ||
left: $left; | ||
background: var( --select-group-bubble-radio-background ); | ||
border: 2px solid var( --select-group-bubble-radio-border ); | ||
|
||
&::before { | ||
position: absolute; | ||
top: 50%; | ||
margin-top: -( math.div( $size, 2 ) ); | ||
width: $size; | ||
height: $size; | ||
border-radius: 50%; | ||
content: ''; | ||
display: flex; | ||
left: 50%; | ||
margin-left: -( math.div( $size, 2 ) ); | ||
background-color: var( --select-group-bubble-radio-checkmark ); | ||
transform: scale( 0 ); | ||
transition: transform 150ms ease-out; | ||
} | ||
|
||
&:checked { | ||
border-color: var( --select-group-bubble-radio-border-checked ); | ||
background-color: var( --select-group-bubble-radio-background-checked ); | ||
|
||
&::before { | ||
transform: scale( 0.5 ); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters