leilukin-site/src/assets/css/components.css

144 lines
2.6 KiB
CSS
Raw Normal View History

2024-05-17 18:49:53 +00:00
/* SPECIAL COMPONENTS */
.text-box {
background: var(--clr-quote-bg);
border: 0.1em solid var(--clr-main-heading);
padding: 0.8em;
margin: 1em 0;
2024-05-17 18:49:53 +00:00
display: grid;
gap: 1em;
}
.mod-entry,
.mod-entry__downloads {
display: grid;
align-items: center;
}
.mod-entry {
gap: 1em;
background: var(--clr-mod-entry-bg);
margin: 1em 0;
padding: 1em;
}
.mod-entry__downloads {
gap: 0.5em;
}
/* Tablet screen size */
@media only screen and (min-width: 37.5rem) {
.mod-entry__downloads {
grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
}
2024-05-28 13:58:10 +00:00
/* Skip to content button */
.skip-btn a {
position: absolute;
display: inline-block;
left: 0px;
top: -1000px;
overflow: hidden;
transition: top 0.5s ease;
background: #fff;
color: #191919;
z-index: 1000;
padding: 0.3em;
}
.skip-btn a:focus {
top: 0;
transition: top 0.3s ease;
}
2024-05-17 18:49:53 +00:00
/* Link button */
.link-btn {
text-align: center;
display: inline-block;
2024-06-08 11:38:16 +00:00
border: 0.1em solid var(--clr-link-btn-bg);
border-radius: 0.5em;
padding: 0.4em 0.8em;
2024-05-17 18:49:53 +00:00
background: var(--clr-link-btn-bg);
color: var(--clr-link-btn-txt);
font-weight: 700;
}
.link-btn,
.link-btn:hover,
.link-btn:visited {
text-decoration: none;
}
.link-btn:hover {
background: var(--clr-link-btn-hover);
2024-06-08 11:38:16 +00:00
transition: 0.3s;
2024-05-17 18:49:53 +00:00
}
.link-btn:focus {
outline: 0.15em solid var(--clr-link-btn-txt);
outline-offset: -0.25em;
}
/* Spoiler Accordion */
* + .spoiler-accordion {
margin-top: var(--sz-paragraph-margin);
}
.spoiler-accordion {
padding: 0.5em 0;
}
.spoiler-accordion__hint {
font-weight: 700;
}
.spoiler-accordion__spoiler {
padding: 0.5em 1em;
}
.spoiler-accordion__spoiler p + p {
margin-top: 1em;
}
/* Content warning accordion */
* + .contnet-warning {
margin-top: var(--sz-paragraph-margin);
}
.contnet-warning {
border: 0.1em solid var(--clr-title-border);
border-radius: 0.2em;
}
.contnet-warning__warning {
padding: 0.8em;
--stripe-color: var(--clr-quote-bg);
background-image: repeating-linear-gradient(
45deg,
transparent,
transparent 0.5em,
var(--stripe-color) 0.5em,
var(--stripe-color) 1em
);
}
.contnet-warning__warning:hover,
.contnet-warning__warning:focus {
--stripe-color: var(--clr-cw-hover);
}
.contnet-warning__content {
padding: 1em;
}
2024-05-17 18:49:53 +00:00
/* Web button lists */
.web-btn-wrapper {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
align-items: center;
list-style: none;
padding: 0;
margin: 0;
2024-05-17 18:49:53 +00:00
}