mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-04 18:21:13 +00:00
431 lines
5.9 KiB
CSS
431 lines
5.9 KiB
CSS
.navbar-expand-lg .navbar-nav .nav-link {
|
|
padding-right: 0.75rem !important;
|
|
padding-left: 0.75rem !important;
|
|
}
|
|
|
|
.pointer {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.pointer-events {
|
|
pointer-events: auto !important;
|
|
}
|
|
|
|
.not-allowed {
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.no-click {
|
|
pointer-events: none;
|
|
opacity: 0.65;
|
|
}
|
|
|
|
.upvote:hover {
|
|
color: var(--info);
|
|
}
|
|
|
|
.upvote {
|
|
margin-bottom: -5px;
|
|
}
|
|
|
|
.downvote:hover {
|
|
color: var(--danger);
|
|
}
|
|
|
|
.downvote {
|
|
margin-top: -10px;
|
|
}
|
|
|
|
.custom-select {
|
|
-moz-appearance: none;
|
|
}
|
|
|
|
.md-div p {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.md-div p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.md-div img {
|
|
max-height: 40vh;
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.md-div h1 {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.md-div h2 {
|
|
font-size: 1.8rem;
|
|
}
|
|
|
|
.md-div h3 {
|
|
font-size: 1.6rem;
|
|
}
|
|
|
|
.md-div h4 {
|
|
font-size: 1.4rem;
|
|
}
|
|
|
|
.md-div h5 {
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.md-div pre {
|
|
white-space: pre;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.vote-bar {
|
|
margin-top: -6.5px;
|
|
}
|
|
|
|
.post-title {
|
|
line-height: 1;
|
|
}
|
|
|
|
.post-title a:visited {
|
|
color: var(--gray) !important;
|
|
}
|
|
|
|
.icon {
|
|
display: inline-grid;
|
|
display: inline-flex;
|
|
width: 1em;
|
|
height: 1em;
|
|
stroke-width: 0;
|
|
stroke: currentColor;
|
|
fill: currentColor;
|
|
vertical-align: middle;
|
|
align-self: center;
|
|
-webkit-touch-callout: none;
|
|
-webkit-user-select: none;
|
|
-khtml-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.icon-emoji {
|
|
width: 4em;
|
|
height: auto;
|
|
max-height: inherit;
|
|
}
|
|
|
|
.icon-emoji-admin {
|
|
max-width: 24px;
|
|
max-height: 24px;
|
|
display: inline-block;
|
|
}
|
|
|
|
.icon-inline {
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.emoji-picker-container {
|
|
position: absolute;
|
|
top: 30px;
|
|
z-index: 1000;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
@media only screen and (max-width: 992px) {
|
|
.emoji-picker-container {
|
|
width: 100vw;
|
|
transform: translateX(0%);
|
|
position: fixed;
|
|
left: 0;
|
|
}
|
|
|
|
.emoji-picker-container > section {
|
|
width: 100% !important;
|
|
}
|
|
}
|
|
|
|
.click-away-container {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: rgba(0, 0, 0, 0.3);
|
|
z-index: 999;
|
|
}
|
|
|
|
.spinner-large {
|
|
display: grid;
|
|
display: block;
|
|
margin: 1em auto;
|
|
width: 2em;
|
|
height: 2em;
|
|
}
|
|
|
|
.spin {
|
|
animation: spins 2s linear infinite;
|
|
}
|
|
|
|
@keyframes spins {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
|
|
100% {
|
|
transform: rotate(359deg);
|
|
}
|
|
}
|
|
|
|
blockquote {
|
|
border-left: 2px solid var(--secondary);
|
|
margin: 0.5em 5px;
|
|
padding: 0.1em 5px;
|
|
}
|
|
|
|
.mouse-icon {
|
|
margin-top: -4px;
|
|
}
|
|
|
|
.new-comments {
|
|
max-height: 50vh;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.comments {
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.thumbnail {
|
|
object-fit: cover;
|
|
min-height: 60px;
|
|
max-height: 80px;
|
|
width: 100%;
|
|
}
|
|
|
|
.thumbnail svg {
|
|
height: 1.25rem;
|
|
width: 1.25rem;
|
|
}
|
|
|
|
.no-s-hows {
|
|
position: absolute !important;
|
|
top: -9999px !important;
|
|
left: -9999px !important;
|
|
}
|
|
|
|
hr {
|
|
border-top: 1px solid var(--light);
|
|
}
|
|
|
|
.emoji {
|
|
max-height: 1.2em !important;
|
|
}
|
|
|
|
.text-wrap-truncate {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.text-xs-center {
|
|
text-align: center;
|
|
}
|
|
|
|
.overflow-wrap-anywhere {
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
#app {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.fl-1 {
|
|
flex: 1;
|
|
}
|
|
|
|
.img-blur {
|
|
filter: blur(10px);
|
|
-webkit-filter: blur(10px);
|
|
-moz-filter: blur(10px);
|
|
-o-filter: blur(10px);
|
|
-ms-filter: blur(10px);
|
|
}
|
|
|
|
.img-cover {
|
|
object-fit: cover;
|
|
}
|
|
|
|
.img-expanded {
|
|
max-height: 90vh;
|
|
}
|
|
|
|
.btn-animate:active {
|
|
transform: scale(1.2);
|
|
-webkit-transform: scale(1.2);
|
|
-ms-transform: scale(1.2);
|
|
}
|
|
|
|
.mini-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
padding: 2px;
|
|
height: 1.5em;
|
|
width: 1.5em;
|
|
background: rgba(0, 0, 0, 0.4);
|
|
background-color: rgba(0, 0, 0, 0.4);
|
|
border-bottom-left-radius: 0.25rem !important;
|
|
border-top-right-radius: 0.25rem !important;
|
|
}
|
|
|
|
.link-overlay:hover {
|
|
transition: 0.1s;
|
|
-webkit-transition: 0.1s;
|
|
opacity: 1;
|
|
}
|
|
|
|
.link-overlay {
|
|
transition: opacity 0.1s ease-in-out;
|
|
-webkit-transition: opacity 0.1s ease-in-out;
|
|
position: absolute;
|
|
opacity: 0;
|
|
left: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
padding: 10px;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
background-color: rgba(0, 0, 0, 0.6);
|
|
}
|
|
|
|
.placeholder {
|
|
height: 50px;
|
|
width: 50px;
|
|
}
|
|
|
|
.unselectable {
|
|
-webkit-touch-callout: none;
|
|
-webkit-user-select: none;
|
|
-khtml-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.list-inline-item-action {
|
|
display: inline-block;
|
|
}
|
|
|
|
.list-inline-item-action:not(:last-child) {
|
|
margin-right: 1.2rem;
|
|
}
|
|
|
|
pre {
|
|
white-space: pre-wrap;
|
|
word-break: keep-all;
|
|
}
|
|
|
|
.form-control.search-input {
|
|
float: right !important;
|
|
transition: width 0.2s ease-out 0s !important;
|
|
}
|
|
|
|
br.big {
|
|
display: block;
|
|
content: "";
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.banner {
|
|
object-fit: cover;
|
|
width: 100%;
|
|
max-height: 240px;
|
|
}
|
|
|
|
.avatar-overlay {
|
|
width: 20%;
|
|
height: 20%;
|
|
max-width: 120px;
|
|
max-height: 120px;
|
|
}
|
|
|
|
.avatar-pushup {
|
|
margin-top: -60px;
|
|
}
|
|
|
|
.img-icon {
|
|
width: 2rem;
|
|
height: 2rem;
|
|
}
|
|
|
|
.tribute-container ul {
|
|
margin: 0;
|
|
margin-top: 2px;
|
|
padding: 0;
|
|
list-style: none;
|
|
background: var(--light);
|
|
}
|
|
|
|
.tribute-container li {
|
|
padding: 5px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tribute-container li.highlight {
|
|
background: var(--primary);
|
|
}
|
|
|
|
.tribute-container li span {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.tribute-container li.no-match {
|
|
cursor: default;
|
|
}
|
|
|
|
.tribute-container .menu-highlighted {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.honeypot {
|
|
display: none !important;
|
|
}
|
|
|
|
.slight-radius {
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.modlog-choices-font-size {
|
|
font-size: 0.9375rem !important;
|
|
}
|
|
|
|
.preview-lines {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 3;
|
|
-webkit-box-orient: vertical;
|
|
}
|
|
|
|
.emoji-picker {
|
|
width: 100%;
|
|
}
|
|
|
|
.skip-link {
|
|
top: -40px;
|
|
transition: top 0.3s ease;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.skip-link {
|
|
transition: none;
|
|
}
|
|
}
|
|
|
|
.skip-link:focus {
|
|
top: 0;
|
|
}
|