-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CCS-3781: Adding styles for related/additional content (#424)
Also added example in ascii-doc-styleguide.html for testing
- Loading branch information
Showing
8 changed files
with
151 additions
and
6 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
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
50 changes: 49 additions & 1 deletion
50
pantheon-bundle/frontend/src/web-assets/dev-preview/rhdocs.css
Large diffs are not rendered by default.
Oops, something went wrong.
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
58 changes: 58 additions & 0 deletions
58
pantheon-bundle/frontend/src/web-assets/scss/components/_additional-resources.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,58 @@ | ||
.system\:additional-resources[class] { // Extra specificity to beat out rhdocs styles | ||
padding: 24px; | ||
border: 1px solid #d2d2d2; | ||
|
||
.heading, | ||
.additional-resources__heading { | ||
font-size: 20px; | ||
line-height: 24px; | ||
margin: 0 0 24px; | ||
padding: 0; | ||
} | ||
|
||
ul { | ||
list-style: none; | ||
margin: 0; | ||
padding: 0; | ||
@media (min-width: 992px) { | ||
column-count: 2; | ||
column-gap: 2em; | ||
@supports (display: grid) { | ||
column-count: 1; | ||
column-gap: 0; | ||
display: grid; | ||
grid-template-columns: repeat(2, minmax(0, 1fr)); | ||
gap: 0 2em; | ||
} | ||
} | ||
} | ||
|
||
li { | ||
box-sizing: content-box; | ||
margin: 0 0 ; | ||
padding: 16px 24px 16px 0; | ||
border-bottom: 1px solid #d2d2d2; | ||
break-inside: avoid; | ||
|
||
&:last-child { | ||
border: 0; | ||
@media (min-width: 992px) { | ||
border-bottom: 1px solid #d2d2d2; | ||
} | ||
} | ||
|
||
p:only-child { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
a { | ||
text-decoration: none; | ||
|
||
&:hover, | ||
&:focus { | ||
text-decoration: underline; | ||
} | ||
} | ||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
pantheon-bundle/src/main/resources/SLING-INF/content/static/rhdocs.css
Large diffs are not rendered by default.
Oops, something went wrong.