Skip to content
Snippets Groups Projects
Verified Commit dd8967a8 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

refactor: paragraph mixin without text-alignment #220

parent 4fb7a842
Branches
Tags
No related merge requests found
Showing
with 55 additions and 63 deletions
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
[data-monster-role=control] { [data-monster-role=control] {
@mixin paragraph; @mixin text;
&.overflow-hidden { &.overflow-hidden {
overflow: hidden; overflow: hidden;
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
} }
& [data-monster-role="detail"] { & [data-monster-role="detail"] {
@mixin paragraph; @mixin text;
height: 0; height: 0;
transition: height 0.4s ease-in-out; transition: height 0.4s ease-in-out;
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
[data-monster-role=control] { [data-monster-role=control] {
outline: none; outline: none;
width: 100%; width: 100%;
box-sizing: border-box;
} }
[data-monster-role=control].flex { [data-monster-role=control].flex {
...@@ -9,3 +10,7 @@ ...@@ -9,3 +10,7 @@
align-items: center; align-items: center;
} }
:host {
display: block;
box-sizing: border-box;
}
\ No newline at end of file
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
border: none; border: none;
padding: 0.4rem 0.4rem; padding: 0.4rem 0.4rem;
display: flex; display: flex;
@mixin paragraph; @mixin text;
} }
} }
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
font-weight: 600; font-weight: 600;
font-size: 1rem; font-size: 1rem;
margin-bottom: 0.4rem; margin-bottom: 0.4rem;
@mixin paragraph; @mixin text;
} }
......
...@@ -42,12 +42,18 @@ ...@@ -42,12 +42,18 @@
font-weight: bold; font-weight: bold;
} }
@define-mixin paragraph { @define-mixin text {
font-size: 1rem; font-size: 1rem;
line-height: 1.6; line-height: 1.6;
font-weight: normal; font-weight: normal;
}
@define-mixin paragraph {
@mixin text;
text-align: justify; text-align: justify;
} }
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment