mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-10-24 11:16:27 +02:00
feat: Square size
This commit is contained in:
@@ -1,6 +1,15 @@
|
||||
.square {
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
border-radius: 0.25rem;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
height: var(--square-size);
|
||||
width: var(--square-size);
|
||||
}
|
||||
.square--sm {
|
||||
--square-size: 0.5rem;
|
||||
}
|
||||
.square--md {
|
||||
--square-size: 2rem;
|
||||
}
|
||||
.square--lg {
|
||||
--square-size: 4rem;
|
||||
}
|
||||
Reference in New Issue
Block a user