Skip to content

Commit

Permalink
Move inline styles into sass
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-H committed Feb 26, 2021
1 parent c2e9349 commit 75f1d5b
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 33 deletions.
2 changes: 1 addition & 1 deletion public/template/dist/app.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/template/dist/app.css.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/template/src/scss/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
@import 'components/breadcrumb';
@import 'components/callout';
@import 'components/code';
@import 'components/contributors';
@import 'components/footer';
@import 'components/nav';
@import 'components/optionswitch';
Expand Down
26 changes: 26 additions & 0 deletions public/template/src/scss/components/_contributors.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
.c-history {
display: flex;
align-items: center;
margin: -.9375rem 0 1.875rem
}
.c-contributors {
display: flex;
}

.c-contributor {
border-radius: 15px;
width: 30px;
height: 30px;
border: 2px solid #fff;
margin-left: -10px;
}
.c-contributor:first-child {
margin-left: 0;
}
.c-last-edit {
color: #555;
font-size: 0.9em;
padding-left: 0.5em;
margin-bottom: 0;
font-weight: 500;
}
31 changes: 0 additions & 31 deletions templates/documentation.twig
Original file line number Diff line number Diff line change
Expand Up @@ -30,37 +30,6 @@

<h1 class="u-no-margin--top">{{ meta.title }}</h1>

<style>
.c-history {
display: flex;
align-items: center;
margin: -.9375rem 0 1.875rem
}
.c-contributors {
display: flex;
}
/*.c-contributor {*/
/* display: block;*/
/* margin-left: -10px;*/
/*}*/
.c-contributor {
border-radius: 15px;
width: 30px;
height: 30px;
border: 2px solid #fff;
margin-left: -10px;
}
.c-contributor:first-child {
margin-left: 0;
}
.c-last-edit {
color: #555;
font-size: 0.9em;
padding-left: 0.5em;
margin-bottom: 0;
font-weight: 500;
}
</style>
{% if history %}
<div class="c-history">
<div class="c-contributors">
Expand Down

0 comments on commit 75f1d5b

Please sign in to comment.