kcl-digital-humanities-garden/_sass/_digital-garden.scss

118 lines
1.7 KiB
SCSS
Raw Normal View History

2021-03-07 22:59:37 +00:00
.links-dark-green a {
color: $accent-color;
}
.no-underline-hover:hover,
.no-underline-hover:focus {
text-decoration: none;
2021-03-11 03:33:55 +00:00
}
2021-03-25 02:18:10 +00:00
// Header
#header {
transition: transform 100ms ease-in-out;
}
.header-inactive {
transform: translateY(-100%);
}
// Sticky helper
.sticky {
position: sticky;
}
2021-03-15 18:16:20 +00:00
// Fonts helper
.anthony {
font-family: "Anthony", sans-serif;
}
2021-03-16 01:18:42 +00:00
// Extended cursors
.grab:hover {
cursor: grab;
}
.grabbing:active {
cursor: grabbing;
}
2021-03-11 03:33:55 +00:00
// Notes Graph
2021-03-15 22:22:28 +00:00
.links path {
2021-03-11 03:33:55 +00:00
stroke: $accent-color;
2021-03-15 22:22:28 +00:00
fill: transparent;
2021-03-25 02:18:10 +00:00
&.active {
stroke-dasharray: 10;
animation: dash 20s linear;
}
}
@keyframes dash {
to {
stroke-dashoffset: 1000;
}
2021-03-11 03:33:55 +00:00
}
.nodes circle {
cursor: pointer;
2021-03-12 03:07:34 +00:00
stroke: $accent-color;
2021-03-15 19:49:03 +00:00
fill: #e8fdf5;
2021-03-11 03:33:55 +00:00
transition: all 0.15s ease-out;
}
.text text {
cursor: pointer;
fill: $accent-color;
}
.nodes [active],
.text [active] {
cursor: pointer;
2021-03-25 02:18:10 +00:00
fill: #ff6300;
stroke: transparent;
2021-03-11 03:33:55 +00:00
}
2021-03-15 22:22:28 +00:00
.inactive {
2021-03-25 02:18:10 +00:00
opacity: 0.45;
2021-03-15 22:22:28 +00:00
transition: opacity 0.15s ease-out;
}
2021-03-15 19:49:03 +00:00
// Notes inline styles
.internal-link {
padding: 0 0.1em;
text-decoration: none;
2021-03-25 02:18:10 +00:00
background: rgba($highlight-color, 0.25);
2021-03-15 19:49:03 +00:00
border: 1px solid rgba($highlight-color, 0.45);
2021-03-25 02:18:10 +00:00
border-radius: 4px;
2021-03-11 03:33:55 +00:00
}
2021-03-15 19:49:03 +00:00
.invalid-link {
padding: 0 0.1em;
text-decoration: none;
background: rgba($highlight-color, 0.1);
border: 1px solid rgba($highlight-color, 0.25);
2021-03-25 02:18:10 +00:00
border-radius: 4px;
2021-03-11 03:33:55 +00:00
}
// Link previews
#tooltip-wrapper {
2021-03-15 19:49:03 +00:00
max-height: 250px;
2021-03-11 03:33:55 +00:00
}
#tooltip-wrapper:after {
content: "";
position: absolute;
z-index: 1;
bottom: 0;
left: 0;
pointer-events: none;
background-image: linear-gradient(to bottom, rgba(255,255,255, 0), rgba(255,255,255, 1) 90%);
width: 100%;
height: 75px;
2021-03-07 22:59:37 +00:00
}