Files
Web-NibblePoker/resources/NibblePoker/scss/site/text.scss
2023-06-01 17:20:44 +02:00

137 lines
2.4 KiB
SCSS

// NibblePoker.lu CSS - (C) 2023 Bozet Herwin
/* Site > Text */
/* Site > Text > Commons */
p, a, h1, h2, h3, h4, h5, h6, td, th, .code, summary {
color: #{$color-text-regular-normal};
}
/* Site > Text > Paragraphs */
p {
line-height: 1.2;
}
/* Site > Text > Links */
a {
// Base
text-decoration: underline;
color: #{$color-link-blue};
& * {
color: #{$color-link-blue};
}
&:hover {
color: #{$color-link-blue-hover};
& * {
color: #{$color-link-blue-hover};
text-decoration: underline;
}
}
// Bland links
&.casper-link, &.bland-link {
text-decoration: none;
color: #{$color-text-regular-normal};
& * {
color: #{$color-text-regular-normal};
}
&:hover {
text-decoration: underline;
color: #{$color-link-hover};
& * {
color: #{$color-link-hover};
}
// FIXME: Not working, big F
//i {
// text-decoration: none !important;
//}
}
}
// Special case for buttons
&.casper-link, &.button-link, &.text-link {
text-decoration: none;
&:hover {
text-decoration: none; // Only really applies to content listing entries...
& * {
text-decoration: none;
}
}
}
}
/* Site > Text > Helpers */
.t-half-muted {
opacity: 65%;
}
.t-muted {
//@if $undefined-toggle-css-variables {
// color: var(--color-white-muted);
//} @else {
// color: #{$color-white-muted};
//}
//color: #A9A9Aa;
opacity: 50%;
}
.t-super-muted {
opacity: 45%;
}
/* Site > Text > Targeted Rules */
.t-logo-text {
font-size: 1.775em;
line-height: 1;
}
/* Site > Text > Targeted Rules > Sidebar */
// Special rules for the sidebar and FontAwesome icons
.sidebar-entry {
i {
width: 1.9rem !important;
// Required to prevent a size flicker when hiding/showing the sidebar.
// The about link is the most visible one.
min-width: 1.9rem !important;
}
// Preventing a subtle line break when hiding/showing the sidebar.
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
// Doesn't work, even with hyper-specific parent selectors...
//> i, > i:hover {
// text-decoration: none !important;
//}
}
/* Site > Text > Targeted Rules > Headings */
// And now for the headings, the exceptions keep popping up :,)
// TODO: Add a simple and nicer divider.
.heading-main {
> h2, > h3, >h4 {
> i {
//margin-left: 0.25rem;
margin-right: 0.4rem;
padding-right: 0.1rem;
width: 1.75rem !important;
text-align: center;
}
}
}