Created
February 17, 2022 23:26
-
-
Save michventura/311dd702c36e44d36efa7f025c9bafb2 to your computer and use it in GitHub Desktop.
Estilos de displayprops
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--clr-block: #7f1d1d; | |
--clr-block-bg: #fca5a5; | |
--clr-inline: #1e3a8a; | |
--clr-inline-bg: #93c5fd; | |
--clr-flex: #064e3b; | |
--clr-flex-bg: #6ee7b7; | |
--clr-grid: #701a75; | |
--clr-grid-bg: #f0abfc; | |
} | |
.notes { | |
position: absolute; | |
bottom: 0.6rem; | |
display: block; | |
width: 100vw; | |
height: 2rem; | |
background-color: inherit; | |
} | |
.notes ul { | |
height: inherit; | |
display: grid; | |
place-content: center; | |
gap: 3rem; | |
grid-auto-flow: column; | |
font-size: 0.8rem; | |
} | |
.notes ul li { | |
padding-block: 0.33rem; | |
padding-inline: 0.75rem; | |
} | |
.notes ul li { | |
outline: 2px dotted var(--color); | |
} | |
.notes ul li[data-display='inline'], | |
.outlineInline { | |
--color: var(--clr-inline); | |
background-color: var(--clr-inline-bg); | |
} | |
.notes ul li[data-display='block'], | |
.outlineBlock { | |
--color: var(--clr-block); | |
background-color: var(--clr-block-bg); | |
} | |
.notes ul li[data-display='flex'], | |
.outlineFlex { | |
--color: var(--clr-flex); | |
background-color: var(--clr-flex-bg); | |
} | |
.notes ul li[data-display='grid'], | |
.outlineGrid { | |
--color: var(--clr-grid); | |
background-color: var(--clr-grid-bg); | |
} | |
* :is(.outlineInline, .outlineBlock, .outlineFlex, .outlineGrid) { | |
outline: 1px dotted var(--color); | |
} | |
.notes ul.sr-only { | |
position: absolute; | |
width: 1px; | |
height: 1px; | |
padding: 0; | |
margin: -1px; | |
overflow: hidden; | |
clip: rect(0, 0, 0, 0); | |
white-space: nowrap; | |
border-width: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment