-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #502 from MarkLodato/v1-levels
SLSA v1.0: rewrite levels.md to split Build vs Source, undefine L4, and better explain
- Loading branch information
Showing
7 changed files
with
362 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// Format definition lists as tables. This allows us to use Markdown instead of | ||
// HTML, and also allows us to have a responsive design that works on mobile. | ||
// | ||
// TODO: Do not render as a table on mobile. | ||
|
||
dl.as-table { | ||
|
||
// Turn dl into a table | ||
& { | ||
display: grid; | ||
grid-template-columns: max-content auto; | ||
} | ||
> dt { | ||
grid-column-start: 1; | ||
} | ||
> dd { | ||
grid-column-start: 2; | ||
} | ||
|
||
// Remove extra whitespace from top and bottom of each box. | ||
> dd > :first-child, | ||
> dd > ul:first-child > li:first-child, | ||
> dd > ul:first-child > li:first-child > p:first-child { | ||
margin-top: 0; | ||
} | ||
> dd > :last-child, | ||
> dd > ul:last-child > li:last-child, | ||
> dd > ul:last-child > li:last-child > p:last-child { | ||
margin-bottom: 0; | ||
} | ||
|
||
// Format similar to the table from minima/_base.scss. | ||
& { | ||
border-top: 1px solid $grey-color-light; | ||
border-left: 1px solid $grey-color-light; | ||
border-collapse: collapse; | ||
margin: 1rem 0 2.5rem 0; | ||
line-height: 1.4; | ||
} | ||
> dd, > dt { | ||
border-right: 1px solid $grey-color-light; | ||
border-bottom: 1px solid $grey-color-light; | ||
padding: $spacer-l ($spacer-xl / 2); | ||
} | ||
> dt { | ||
text-align: left; | ||
font-weight: 500; | ||
color: $dark-green; | ||
background-color: $lightest-green; | ||
|
||
// Vertically center the definition term | ||
display: flex; | ||
align-items: center; | ||
} | ||
} |
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.