First commit.
This commit is contained in:
commit
b7977e1c28
3 changed files with 28081 additions and 0 deletions
24
sass/components/watermark/_watermark.scss
Normal file
24
sass/components/watermark/_watermark.scss
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
// Watermark
|
||||
//
|
||||
// Make the element appear beneath sibling elements, like a watermark.
|
||||
//
|
||||
// Markup: watermark.twig
|
||||
//
|
||||
// Style guide: components.watermark
|
||||
|
||||
.watermark,
|
||||
%watermark {
|
||||
@include typeface(compact);
|
||||
display: block;
|
||||
height: 0;
|
||||
overflow: visible;
|
||||
// Remove background highlighting from <mark> in normalize.
|
||||
background-color: transparent;
|
||||
color: color(watermark);
|
||||
font-size: 75px;
|
||||
line-height: 1;
|
||||
text-align: center;
|
||||
// sass-lint:disable no-color-literals
|
||||
text-shadow: 0 0 1px rgba(0, 0, 0, .1);
|
||||
word-wrap: break-word;
|
||||
}
|
||||
4
sass/components/watermark/watermark.json
Normal file
4
sass/components/watermark/watermark.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"content": "Unpublished",
|
||||
"sibling": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
||||
}
|
||||
7
sass/components/watermark/watermark.twig
Normal file
7
sass/components/watermark/watermark.twig
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<div>
|
||||
<mark class="watermark {{modifier_class}}">{{content}}</mark>
|
||||
|
||||
{% if sibling %}
|
||||
<div>{{ sibling }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
Loading…
Reference in a new issue