-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WEBDEV-557] Remove .list--details CSS-Class and HTML-Wrapper (#455)
- Loading branch information
1 parent
8a54ebd
commit 6e5270b
Showing
12 changed files
with
185 additions
and
217 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
ul.list--inline | ||
li.visually-hidden(aria-hidden='true') | ||
.list--details | ||
include ../icons/print.svg | ||
+link('#', 'Print page').btn--print | ||
include ../icons/print.svg | ||
+link('#', 'Print page').btn--print | ||
li | ||
.list--details | ||
include ../icons/download.svg | ||
+link('#', 'Download as PDF') | ||
include ../icons/download.svg | ||
+link('#', 'Download as PDF') | ||
li | ||
.list--details | ||
include ../icons/share.svg | ||
+link('#', 'Share') | ||
include ../icons/share.svg | ||
+link('#', 'Share') |
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 |
---|---|---|
@@ -1,20 +1,36 @@ | ||
/*--- Card ---*/ | ||
|
||
.card, | ||
[class*="card--"] { | ||
@include media($extra-small) { | ||
@include card; | ||
} | ||
} | ||
|
||
/*--- Card inline ---*/ | ||
|
||
.card--inline .card__details * { | ||
display: inline; | ||
} | ||
|
||
/*--- Card details ---*/ | ||
|
||
.card__details { | ||
@include first-child; | ||
@include last-child; | ||
@include media($extra-small) { | ||
flex: 1 1 0; | ||
} | ||
> * { | ||
margin-top: $base-spacing-unit; | ||
margin-bottom: $base-spacing-unit; | ||
} | ||
@include last-child(); | ||
} | ||
|
||
.card__details + .card__details { | ||
@include media($extra-small) { | ||
flex: 1 1 0; | ||
> * { | ||
flex-basis: 100%; | ||
margin-bottom: $base-spacing-unit; | ||
} | ||
max-width: 25%; | ||
align-self: center; | ||
text-align: right; | ||
} | ||
} |
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
Oops, something went wrong.