lemmy-ui/src/assets/css/main.css

432 lines
5.9 KiB
CSS
Raw Normal View History

.navbar-expand-lg .navbar-nav .nav-link {
2021-02-22 02:39:04 +00:00
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 {
2021-02-22 02:39:04 +00:00
pointer-events: none;
opacity: 0.65;
}
.upvote:hover {
2021-02-22 02:39:04 +00:00
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 {
2021-02-22 02:39:04 +00:00
font-size: 2rem;
}
2022-11-27 18:02:32 +00:00
.md-div h2 {
2021-02-22 02:39:04 +00:00
font-size: 1.8rem;
}
2022-11-27 18:02:32 +00:00
.md-div h3 {
2021-02-22 02:39:04 +00:00
font-size: 1.6rem;
}
2022-11-27 18:02:32 +00:00
.md-div h4 {
2021-02-22 02:39:04 +00:00
font-size: 1.4rem;
}
2022-11-27 18:02:32 +00:00
.md-div h5 {
2021-02-22 02:39:04 +00:00
font-size: 1.2rem;
}
.md-div pre {
white-space: pre;
overflow-x: auto;
}
.vote-bar {
margin-top: -6.5px;
}
.post-title {
2021-02-22 02:39:04 +00:00
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;
}
2022-11-27 18:02:32 +00:00
.icon-emoji {
width: 4em;
height: auto;
max-height: inherit;
}
.icon-emoji-admin {
max-width: 24px;
max-height: 24px;
2022-11-27 18:02:32 +00:00
display: inline-block;
}
.icon-inline {
margin-bottom: 2px;
}
2022-11-27 18:02:32 +00:00
.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 {
2022-11-27 18:02:32 +00:00
width: 100% !important;
}
}
.click-away-container {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.3);
2022-11-27 18:02:32 +00:00
z-index: 999;
}
2021-07-17 20:21:31 +00:00
.spinner-large {
display: grid;
display: block;
margin: 1em auto;
width: 2em;
height: 2em;
2021-07-17 04:24:12 +00:00
}
.spin {
animation: spins 2s linear infinite;
}
@keyframes spins {
2021-02-22 02:39:04 +00:00
0% {
transform: rotate(0deg);
}
2022-11-27 18:02:32 +00:00
2021-02-22 02:39:04 +00:00
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;
}
2023-06-04 02:02:07 +00:00
.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;
2021-02-22 02:39:04 +00:00
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);
}
2023-06-12 17:00:18 +00:00
.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;
2021-02-22 02:39:04 +00:00
height: 1.5em;
width: 1.5em;
2021-02-22 02:39:04 +00:00
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 {
2021-02-22 02:39:04 +00:00
transition: 0.1s;
-webkit-transition: 0.1s;
opacity: 1;
}
.link-overlay {
2021-02-22 02:39:04 +00:00
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;
2021-02-22 02:39:04 +00:00
background: rgba(0, 0, 0, 0.6);
background-color: rgba(0, 0, 0, 0.6);
}
2021-02-22 02:39:04 +00:00
.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 {
2021-02-22 02:39:04 +00:00
width: 20%;
height: 20%;
max-width: 120px;
max-height: 120px;
}
.avatar-pushup {
margin-top: -60px;
}
.img-icon {
2021-02-22 02:39:04 +00:00
width: 2rem;
height: 2rem;
}
.tribute-container ul {
margin: 0;
margin-top: 2px;
padding: 0;
list-style: none;
2021-02-22 02:39:04 +00:00
background: var(--light);
}
2022-11-27 18:02:32 +00:00
.tribute-container li {
padding: 5px;
2021-02-22 02:39:04 +00:00
cursor: pointer;
}
2022-11-27 18:02:32 +00:00
.tribute-container li.highlight {
2021-02-22 02:39:04 +00:00
background: var(--primary);
}
2022-11-27 18:02:32 +00:00
.tribute-container li span {
2021-02-22 02:39:04 +00:00
font-weight: bold;
}
2022-11-27 18:02:32 +00:00
.tribute-container li.no-match {
2021-02-22 02:39:04 +00:00
cursor: default;
}
2022-11-27 18:02:32 +00:00
.tribute-container .menu-highlighted {
2021-02-22 02:39:04 +00:00
font-weight: bold;
}
.honeypot {
display: none !important;
}
.slight-radius {
border-radius: 4px;
}
2022-06-04 16:47:10 +00:00
.modlog-choices-font-size {
font-size: 0.9375rem !important;
2022-06-04 16:47:10 +00:00
}
.preview-lines {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
}
.emoji-picker {
width: 100%;
2022-11-27 18:02:32 +00:00
}
.skip-link {
top: -40px;
transition: top 0.3s ease;
}
@media (prefers-reduced-motion: reduce) {
.skip-link {
transition: none;
}
}
.skip-link:focus {
top: 0;
}