mirror of
https://github.com/maxboeck/webring
synced 2024-11-25 04:40:19 +00:00
style changes
This commit is contained in:
parent
f4519940d4
commit
4a38a465a1
6 changed files with 26 additions and 14 deletions
|
@ -9,7 +9,6 @@ module.exports = function(config) {
|
|||
config.addLayoutAlias('page', 'page.njk')
|
||||
|
||||
config.addPassthroughCopy('src/assets/images')
|
||||
config.addPassthroughCopy('src/assets/styles/main.css')
|
||||
|
||||
config.addTransform('htmlmin', function(content, outputPath) {
|
||||
if (outputPath.endsWith('.html')) {
|
||||
|
@ -30,7 +29,7 @@ module.exports = function(config) {
|
|||
layouts: 'layouts',
|
||||
data: 'data'
|
||||
},
|
||||
templateFormats: ['njk', 'md'],
|
||||
templateFormats: ['njk', 'md', 'css'],
|
||||
htmlTemplateEngine: 'njk',
|
||||
markdownTemplateEngine: 'njk',
|
||||
passthroughFileCopy: true
|
||||
|
|
|
@ -19,13 +19,3 @@ body {
|
|||
width: 90%;
|
||||
max-width: 640px;
|
||||
}
|
||||
|
||||
.beta {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
padding: 10px 20px;
|
||||
background-color: $gray-darker;
|
||||
color: #fff;
|
||||
font-style: italic;
|
||||
}
|
||||
|
|
22
src/assets/styles/components/_beta.scss
Normal file
22
src/assets/styles/components/_beta.scss
Normal 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
|
@ -10,3 +10,4 @@
|
|||
@import 'components/button';
|
||||
@import 'components/webring';
|
||||
@import 'components/form';
|
||||
@import 'components/beta';
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<div class="container">
|
||||
{{ content | safe }}
|
||||
</div>
|
||||
<p class="beta">beta</p>
|
||||
<div class="beta"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
Loading…
Reference in a new issue