-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented expand/collapse section buttons
- Loading branch information
1 parent
adee909
commit 6991e61
Showing
5 changed files
with
69 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
.ffe-expand-button { | ||
&:extend(.ffe-secondary-button all); | ||
|
||
border-radius: 34px; | ||
|
||
&--expanded { | ||
background-repeat: no-repeat; | ||
background-size: 16px; | ||
background-position: center; | ||
width: 45px; | ||
height: 45px; | ||
padding: 0; | ||
|
||
@bare-color: replace(~`"@{ffe-blue-royal-light-wcag}"`, "#", ""); | ||
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20200%20200%22%3E%3Cpath%20d%3D%22M18.77188%2C0c-3.56152%2C0-7.12521%2C1.34709-9.83437%2C4.04421l-4.42862%2C4.43914c-5.38143%2C5.39423-5.38143%2C14.25271%2C0%2C19.6839l71.18886%2C71.83202-71.66167%2C71.83201c-5.38144%2C5.39422-5.38144%2C14.25271%2C0%2C19.6839l4.42862%2C4.43914c5.38145%2C5.39424%2C14.21893%2C5.39424%2C19.63722%2C0l71.66167-71.83201%2C71.64591%2C71.83201c5.38143%2C5.39424%2C14.23467%2C5.39424%2C19.65298%2C0l4.42862-4.43914c5.38142-5.39423%2C5.38142-14.25271%2C0-19.6839l-71.18886-71.83201%2C71.66167-71.83202c5.38145-4.91394%2C5.38145-13.77881%2C0-19.20997l-4.42862-4.42335c-5.38144-5.39422-14.21891-5.39422-19.63722%2C0l-72.13448%2C71.34229-71.1731-71.83201c-2.69072-2.69712-6.25708-4.04421-9.81861-4.04421z%22%20fill%3D%22%23@{bare-color}%22/%3E%3C/svg%3E"); | ||
} | ||
|
||
&__label--expanded { | ||
display: none; | ||
} | ||
} | ||
|
||
.ffe-expand-button--dark { | ||
&:extend(.ffe-expand-button all); | ||
|
||
background-color: @ffe-blue-royal-light-wcag; | ||
border-color: @ffe-blue-royal-light-wcag; | ||
|
||
&:hover, &:focus,&:active { | ||
border-color: @ffe-blue-royal-light-wcag; | ||
background-color: @ffe-blue-royal; | ||
border-color: @ffe-blue-royal; | ||
} | ||
|
||
&__label { | ||
color: @ffe-white; | ||
} | ||
|
||
&--expanded { | ||
@bare-color: replace(~`"@{ffe-white}"`, "#", ""); | ||
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20200%20200%22%3E%3Cpath%20d%3D%22M18.77188%2C0c-3.56152%2C0-7.12521%2C1.34709-9.83437%2C4.04421l-4.42862%2C4.43914c-5.38143%2C5.39423-5.38143%2C14.25271%2C0%2C19.6839l71.18886%2C71.83202-71.66167%2C71.83201c-5.38144%2C5.39422-5.38144%2C14.25271%2C0%2C19.6839l4.42862%2C4.43914c5.38145%2C5.39424%2C14.21893%2C5.39424%2C19.63722%2C0l71.66167-71.83201%2C71.64591%2C71.83201c5.38143%2C5.39424%2C14.23467%2C5.39424%2C19.65298%2C0l4.42862-4.43914c5.38142-5.39423%2C5.38142-14.25271%2C0-19.6839l-71.18886-71.83201%2C71.66167-71.83202c5.38145-4.91394%2C5.38145-13.77881%2C0-19.20997l-4.42862-4.42335c-5.38144-5.39422-14.21891-5.39422-19.63722%2C0l-72.13448%2C71.34229-71.1731-71.83201c-2.69072-2.69712-6.25708-4.04421-9.81861-4.04421z%22%20fill%3D%22%23@{bare-color}%22/%3E%3C/svg%3E"); | ||
} | ||
} |
Binary file modified
BIN
+17.9 KB
(120%)
visual-tests/baseline-screenshots/buttons/plain/firefox.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.