kcl-digital-humanities-garden/_sass/_digital-garden.scss
2021-04-18 15:47:17 -04:00

195 lines
2.9 KiB
SCSS

.links-foreground-text a {
color: var(--foreground-text);
}
.links-foreground-text a:hover {
text-decoration: none;
}
.no-underline-hover:hover,
.no-underline-hover:focus {
text-decoration: none;
}
// Header
#header {
transition: transform 100ms ease-in-out;
}
.header-inactive {
transform: translateY(-100%);
}
// Sticky helper
.sticky {
position: sticky;
}
// Fonts helper
.anthony {
font-family: "Anthony", sans-serif;
}
.violet-sans {
font-family: "Violet Sans", sans-serif;
}
.work-sans-light {
font-family: "Work Sans Light", sans-serif;
}
// Shadow helper
.shadow-solid-accent { box-shadow: 2px 2px 10px rgba( var(--foreground-text-rgb), 0.2 ); }
// Width helper
.w6 {
width: 20rem;
}
// Height Helper
.min-vh-100-header-comp {
min-height: calc(100vh - 6rem);
}
// Extended cursors
.grab:hover {
cursor: grab;
}
.grabbing:active {
cursor: grabbing;
}
// Notes Graph
.links path {
stroke: var(--foreground-text);
fill: transparent;
&.active {
stroke-dasharray: 5;
animation: dash 40s linear;
}
}
@keyframes dash {
to {
stroke-dashoffset: 1000;
}
}
.nodes circle {
cursor: pointer;
stroke: var(--foreground-text);
fill: var(--background);
transition: all 0.15s ease-out;
&:hover {
fill: var(--foreground-text);
}
}
.text text {
cursor: pointer;
fill: var(--foreground-text);
&:hover {
text-decoration: underline;
}
}
.nodes [active],
.text [active] {
cursor: pointer;
fill: var(--active-note);
stroke: transparent;
}
.inactive {
opacity: 0.45;
transition: opacity 0.15s ease-out;
}
// Notes inline styles
.note-meta:before {
content: '';
width: 20px;
height: 20px;
border-radius: 100%;
background: var(--active-note);
}
.internal-link {
padding: 0 0.3em;
text-decoration: none;
background: rgba(var(--internal-link-rgb), 0.25);
border-radius: 4px;
text-decoration: underline;
white-space: nowrap;
}
.invalid-link {
padding: 0 0.1em 0.2em 0.1em;
text-decoration: none;
background: rgba(var(--internal-link-rgb), 0.1);
border: 1px solid rgba(var(--internal-link-rgb), 0.5);
border-radius: 4px;
color: var(--internal-link-rgb);
}
.note-contents {
blockquote {
margin: 0 0 0 0.75em;
padding: 0 0.75em;
border-left: 2px solid var(--foreground-text);
}
ul, ol {
padding-left: 1.75em;
}
img {
max-width: 100%;
height: auto;
display: block;
}
hr {
border-width: 0;
border-top: 1px solid var(--foreground-text);
}
pre {
padding: 1rem;
background-color: rgba(var(--internal-link-rgb), 0.2);
border-radius: 6px;
font-size: .875rem;
}
}
// Link previews
#tooltip-content {
max-height: 250px;
}
#tooltip-content:after {
content: "";
display: block;
position: absolute;
z-index: 1;
bottom: 0;
right: 0;
pointer-events: none;
background-image: linear-gradient(rgba(#fff, 0), rgba(#fff, 1));
width: 100%;
height: 2rem;
}