style changes

This commit is contained in:
Max Böck 2019-04-15 07:58:34 +02:00
parent f4519940d4
commit 4a38a465a1
6 changed files with 26 additions and 14 deletions

View file

@ -9,7 +9,6 @@ module.exports = function(config) {
config.addLayoutAlias('page', 'page.njk') config.addLayoutAlias('page', 'page.njk')
config.addPassthroughCopy('src/assets/images') config.addPassthroughCopy('src/assets/images')
config.addPassthroughCopy('src/assets/styles/main.css')
config.addTransform('htmlmin', function(content, outputPath) { config.addTransform('htmlmin', function(content, outputPath) {
if (outputPath.endsWith('.html')) { if (outputPath.endsWith('.html')) {
@ -30,7 +29,7 @@ module.exports = function(config) {
layouts: 'layouts', layouts: 'layouts',
data: 'data' data: 'data'
}, },
templateFormats: ['njk', 'md'], templateFormats: ['njk', 'md', 'css'],
htmlTemplateEngine: 'njk', htmlTemplateEngine: 'njk',
markdownTemplateEngine: 'njk', markdownTemplateEngine: 'njk',
passthroughFileCopy: true passthroughFileCopy: true

View file

@ -19,13 +19,3 @@ body {
width: 90%; width: 90%;
max-width: 640px; max-width: 640px;
} }
.beta {
position: absolute;
top: 0;
right: 0;
padding: 10px 20px;
background-color: $gray-darker;
color: #fff;
font-style: italic;
}

View file

@ -0,0 +1,22 @@
.beta {
position: absolute;
width: 0;
height: 0;
position: absolute;
top: 0;
right: 0;
border-style: solid;
border-width: 0 80px 80px 0;
border-color: transparent $gray-darker transparent transparent;
&::after {
content: 'beta';
display: block;
color: #fff;
font-style: italic;
transform: rotate(45deg);
position: absolute;
top: 12px;
right: -70px;
}
}

File diff suppressed because one or more lines are too long

View file

@ -10,3 +10,4 @@
@import 'components/button'; @import 'components/button';
@import 'components/webring'; @import 'components/webring';
@import 'components/form'; @import 'components/form';
@import 'components/beta';

View file

@ -14,7 +14,7 @@
<div class="container"> <div class="container">
{{ content | safe }} {{ content | safe }}
</div> </div>
<p class="beta">beta</p> <div class="beta"></div>
</body> </body>
</html> </html>