Last active
January 11, 2024 13:05
-
-
Save shawn-sandy/1eef93795eaa306f7c8a819384d172b4 to your computer and use it in GitHub Desktop.
css
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
.divider { | |
position: relative; | |
text-align: center; | |
/* padding-bottom: 20px; adjust as needed */ | |
height: 16px; /* adjust as needed */ | |
} | |
.divider span { | |
background-color: #FFF; | |
padding: 0 10px; | |
font-size: 16px; | |
position: relative; | |
/* top: -12px; */ | |
z-index: 1; /* bring text to the front */ | |
line-height: 1; | |
} | |
.divider hr { | |
position: absolute; | |
top: 12px; | |
width: 100%; | |
margin-top: 0px; /*half of height */ | |
background-color: lightgray; | |
} |
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
header, | |
[data-grid~='overlay'] { | |
// Name of the grid area | |
--overlay-grid-area: overlay; | |
// Placement of items in grid area | |
--overlay-placement: center; | |
// Controls display of grid | |
--overlay-display: grid; | |
display: var(--overlay-display); | |
grid-template-areas: var(--overlay-grid-area); | |
place-items: var(--overlay-placement); | |
> * { | |
grid-area: overlay; | |
} | |
section { | |
text-align: center; | |
} | |
} | |
header, | |
[data-grid~='overlay'] { | |
--overlay-grid-area: overlay; | |
--overlay-placement: center; | |
--overlay-display: grid; | |
display: var(--overlay-display); | |
grid-template-areas: var(--overlay-grid-area); | |
place-items: var(--overlay-placement); | |
> * { | |
grid-area: overlay; | |
} | |
section { | |
text-align: center; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment