pixelfed/resources/assets/sass/custom.scss

670 lines
11 KiB
SCSS
Raw Normal View History

html, body {
2022-03-02 08:54:14 +00:00
min-height:100vh;
}
body {
2022-03-02 08:54:14 +00:00
display: flex;
flex-flow: column;
}
#content {
2022-03-02 08:54:14 +00:00
margin-bottom: auto !important;
}
2018-06-07 05:55:17 +00:00
2018-05-20 03:14:28 +00:00
body, button, input, textarea {
2022-03-02 08:54:14 +00:00
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
2018-05-20 03:14:28 +00:00
}
2018-04-16 01:35:11 +00:00
.navbar-laravel {
2022-03-02 08:54:14 +00:00
background-color: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
2018-05-20 03:14:28 +00:00
}
2018-05-30 02:50:06 +00:00
.bg-pixelfed {
2022-03-02 08:54:14 +00:00
background:#10c5f8;
background:-webkit-gradient(linear,left top,right bottom,from(#6736dd),to(#10c5f8));
background:linear-gradient(to bottom right,#6736dd,#10c5f8);
2018-05-30 02:50:06 +00:00
}
2018-05-20 03:14:28 +00:00
@media (min-width: 1200px) {
2022-03-02 08:54:14 +00:00
.container {
max-width: 935px;
}
2018-05-20 03:14:28 +00:00
}
.text-dark {
2022-03-02 08:54:14 +00:00
color: #212529 !important;
2018-05-20 03:14:28 +00:00
}
.settings-nav .active .nav-link{
2022-03-02 08:54:14 +00:00
font-weight: bold;
2018-05-20 03:14:28 +00:00
}
.card-disabled {
2022-03-02 08:54:14 +00:00
background-color: rgba(245, 245, 245, 1);
opacity: .4;
2018-05-20 03:14:28 +00:00
}
2018-06-01 07:17:14 +00:00
.card-img-top {
2022-03-02 08:54:14 +00:00
height: auto;
2018-06-01 07:12:13 +00:00
}
2018-05-20 03:14:28 +00:00
.card.status-container .status-photo {
2022-03-02 08:54:14 +00:00
margin: auto !important;
2018-05-20 03:14:28 +00:00
}
2018-06-04 22:04:56 +00:00
@media (min-width: map-get($grid-breakpoints, "md")) {
2022-03-02 08:54:14 +00:00
.card.status-container .status-comments {
overflow-y:scroll;
border-bottom:1px solid rgba(0,0,0,.1);
height: 200px;
}
2018-05-20 03:14:28 +00:00
}
.no-caret.dropdown-toggle {
2022-03-02 08:54:14 +00:00
text-decoration: none !important;
2018-05-20 03:14:28 +00:00
}
.no-caret.dropdown-toggle::after {
2022-03-02 08:54:14 +00:00
display:none;
2018-05-27 03:25:04 +00:00
}
.notification-page .profile-link {
2022-03-02 08:54:14 +00:00
color: #212529;
font-weight: bold;
2018-05-27 03:25:04 +00:00
}
.notification-page .list-group-item:first-child {
2022-03-02 08:54:14 +00:00
border-top: none;
2018-06-01 07:12:13 +00:00
}
2018-06-02 04:14:49 +00:00
.nav-topbar {
2022-03-02 08:54:14 +00:00
border-top: 1px solid $gray-300;
2018-06-02 04:14:49 +00:00
}
.nav-topbar .nav-item {
2022-03-02 08:54:14 +00:00
margin: -1px 1.5rem 0;
2018-06-02 04:14:49 +00:00
}
.nav-topbar .nav-link {
2022-03-02 08:54:14 +00:00
border: 1px solid transparent;
color: $gray-300;
padding: 0.75rem 0;
2018-06-02 04:14:49 +00:00
}
.nav-topbar .nav-link:focus, .nav-topbar .nav-link:hover {
2022-03-02 08:54:14 +00:00
border-top-color: $gray-300;
2018-06-02 04:14:49 +00:00
}
.nav-topbar .nav-link.disabled {
2022-03-02 08:54:14 +00:00
color: $gray-300;
background-color: transparent;
border-color: transparent;
2018-06-02 04:14:49 +00:00
}
.nav-topbar .nav-item.show .nav-link, .nav-topbar .nav-link.active {
2022-03-02 08:54:14 +00:00
color: $gray-600;
border-top-color: $gray-600;
2018-06-02 04:14:49 +00:00
}
.nav-topbar .dropdown-menu {
2022-03-02 08:54:14 +00:00
margin-top:-1px;
2018-06-02 04:14:49 +00:00
}
.info-overlay {
2022-03-02 08:54:14 +00:00
position: relative;
2018-06-02 04:14:49 +00:00
}
.info-overlay .info-overlay-text {
2022-03-02 08:54:14 +00:00
display: none;
position: absolute;
2018-06-02 04:14:49 +00:00
}
.info-overlay:hover .info-overlay-text {
2022-03-02 08:54:14 +00:00
display: flex;
2019-05-02 05:07:13 +00:00
}
@media (max-width: map-get($grid-breakpoints, "sm")) {
2022-03-02 08:54:14 +00:00
.info-overlay:hover .info-overlay-text h5 {
font-size: 12px;
}
2018-06-02 04:14:49 +00:00
}
.info-overlay-text {
2022-03-02 08:54:14 +00:00
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.5);
2018-06-02 04:14:49 +00:00
}
2018-06-02 04:22:43 +00:00
.info-overlay-text-label {
2022-03-02 08:54:14 +00:00
display: flex;
position: absolute;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.5);
2022-03-02 08:54:14 +00:00
h5 {
z-index: 2;
}
}
.info-overlay:hover .info-overlay-text-label {
2022-03-02 08:54:14 +00:00
display: none;
}
.font-weight-lighter {
2022-03-02 08:54:14 +00:00
font-weight: 300 !important
}
2018-06-02 04:22:43 +00:00
.font-weight-ultralight {
2022-03-02 08:54:14 +00:00
font-weight: 200 !important;
2018-06-02 04:22:43 +00:00
}
2018-06-03 01:28:58 +00:00
.square {
2022-03-02 08:54:14 +00:00
position: relative;
width: 100%;
2018-06-03 01:28:58 +00:00
}
.square::after {
2022-03-02 08:54:14 +00:00
content: "";
display: block;
padding-bottom: 100%;
2018-06-03 01:28:58 +00:00
}
.square-content {
2022-03-02 08:54:14 +00:00
position: absolute;
width: 100%;
height: 100%;
background-repeat: no-repeat;
background-size: cover;
background-position: 50%;
2018-06-03 01:28:58 +00:00
}
2018-06-04 01:38:18 +00:00
2018-06-03 13:04:02 +00:00
@media (max-width: map-get($grid-breakpoints, "md")) {
.border-md-left-0 {
2022-03-02 08:54:14 +00:00
border-left:0!important
2018-06-03 13:04:02 +00:00
}
}
2018-06-04 22:04:56 +00:00
@media (max-width: map-get($grid-breakpoints, "md")) {
2022-03-02 08:54:14 +00:00
.border-md-left-0 {
border-left:0!important
}
.card.status-container .status-comments {
border-top:1px solid rgba(0,0,0,.1);
}
.sticky-md-bottom {
position:-webkit-sticky;
position:sticky;
bottom:0;
z-index:1020
}
2018-06-04 22:04:56 +00:00
}
2018-06-05 06:37:12 +00:00
2018-06-15 10:54:57 +00:00
@media (max-width: map-get($grid-breakpoints, "sm")) {
2022-03-02 08:54:14 +00:00
.card-md-border-0 {
border-width: 0!important;
border-radius: 0!important;
}
.card-md-rounded-0 {
border-width: 1px 0;
border-radius:0 !important;
}
2018-06-15 10:54:57 +00:00
}
2018-06-05 06:37:12 +00:00
@keyframes loading-bar {
2022-03-02 08:54:14 +00:00
from { background-position: 0 0; }
to { background-position: 100vw 0; }
2018-06-05 06:37:12 +00:00
}
.loading-page {
2022-03-02 08:54:14 +00:00
background-image: linear-gradient(to right, #6736dd, #10c5f8, #10c5f8, #6736dd);
width: 100vw;
height: .25rem;
animation: loading-bar 3s linear infinite;
2018-06-05 06:37:12 +00:00
}
2018-06-06 18:43:50 +00:00
2019-02-28 20:42:49 +00:00
.liked {
2022-03-02 08:54:14 +00:00
position: relative;
z-index: 1;
2019-02-28 20:42:49 +00:00
}
.liked::after {
2022-03-02 08:54:14 +00:00
content: "\F0a3";
color: transparent;
animation: liking 1.5s;
position: absolute;
z-index: -1;
left: 50%;
top: 0;
2019-02-28 20:42:49 +00:00
}
@keyframes liking {
0% {
2022-03-02 08:54:14 +00:00
-webkit-transform:rotate(0deg);
transform:rotate(0deg);
font-size:0;
top: .25rem;
color: #ebf70e;
2019-02-28 20:42:49 +00:00
}
75% {
2022-03-02 08:54:14 +00:00
-webkit-transform:rotate(1turn);
transform:rotate(1turn);
top: -0.55rem;
font-size: 2.8rem;
opacity:1;
left: -0.55rem;
2019-02-28 20:42:49 +00:00
}
100% {
2022-03-02 08:54:14 +00:00
transform:rotate(1turn);
top: 2.5rem;
font-size:0;
left: 0.9rem
2019-02-28 20:42:49 +00:00
}
2019-02-28 21:10:31 +00:00
}
2019-02-28 20:42:49 +00:00
.max-hide-overflow {
2022-03-02 08:54:14 +00:00
max-height: 500px;
overflow-y: hidden;
}
@media (min-width: map-get($grid-breakpoints, "xs")) {
2022-03-02 08:54:14 +00:00
.max-hide-overflow {
max-height: 600px!important;
}
}
@media (min-width: map-get($grid-breakpoints, "md")) {
2022-03-02 08:54:14 +00:00
.max-hide-overflow {
max-height: 800px!important;
}
}
@media (min-width: map-get($grid-breakpoints, "xl")) {
2022-03-02 08:54:14 +00:00
.max-hide-overflow {
max-height: 1000px!important;
}
2018-06-07 05:55:17 +00:00
}
2018-06-06 18:43:50 +00:00
.notification-image {
2022-03-02 08:54:14 +00:00
background-size: cover;
width: 32px;
height: 32px;
background-position: 50%;
2018-06-06 18:43:50 +00:00
}
2018-06-14 02:57:16 +00:00
.status-photo img {
2022-03-02 08:54:14 +00:00
object-fit: contain;
width: 100%;
max-height: calc(100vh - (6rem));
}
.fade-enter-active, .fade-leave-active {
transition: opacity .5s;
}
.fade-enter, .fade-leave-to {
opacity: 0;
}
2018-06-14 02:57:16 +00:00
@keyframes fadeInDown {
2022-03-02 08:54:14 +00:00
0% {
opacity: 0;
transform: translateY(-1.25em);
}
100% {
opacity: 1;
transform: translateY(0);
}
2018-06-14 02:57:16 +00:00
}
2018-10-21 05:54:41 +00:00
2018-06-14 02:57:16 +00:00
.details-animated[open] {
2022-03-02 08:54:14 +00:00
animation-name: fadeInDown;
animation-duration: 0.5s;
2018-06-15 10:54:57 +00:00
}
2018-08-10 04:02:31 +00:00
.card {
2022-03-02 08:54:14 +00:00
box-shadow: 0 2px 6px 0 hsla(0, 0%, 0%, 0.2);
border: none;
2022-03-02 08:54:14 +00:00
.comment-submit {
display: none;
position: absolute;
bottom: 12px;
right: 20px;
width: 60px;
text-align: center;
border-radius: 0 3px 3px 0;
}
}
.touch .card {
2022-03-02 08:54:14 +00:00
input[name="comment"] {
padding-right: 70px;
}
2022-03-02 08:54:14 +00:00
.comment-submit {
display: block;
}
2018-08-10 04:02:31 +00:00
}
.box-shadow {
2022-03-02 08:54:14 +00:00
box-shadow: 0 2px 6px 0 hsla(0, 0%, 0%, 0.2);
2018-08-10 04:02:31 +00:00
}
.border-left-primary {
2022-03-02 08:54:14 +00:00
border-left: 3px solid $primary;
2018-08-10 04:02:31 +00:00
}
.settings-nav .nav-item.active .nav-link {
2022-03-02 08:54:14 +00:00
font-weight: bold !important;
2018-08-10 04:02:31 +00:00
}
details summary::-webkit-details-marker {
2022-03-02 08:54:14 +00:00
display: none!important;
2018-08-10 04:02:31 +00:00
}
.details-animated > summary {
2022-03-02 08:54:14 +00:00
display: flex;
flex-flow: column;
justify-content: center;
background-color: #ECF0F1;
padding-top: 50px;
padding-bottom: 50px;
text-align: center;
2018-08-10 04:02:31 +00:00
}
@media (min-width: 720px) {
2022-03-02 08:54:14 +00:00
.details-animated > summary {
min-height: 600px;
}
}
2018-08-10 04:02:31 +00:00
.details-animated[open] > summary {
2022-03-02 08:54:14 +00:00
display: none!important;
}
2018-08-14 06:58:07 +00:00
.profile-avatar img {
2022-03-02 08:54:14 +00:00
object-fit: cover;
2018-08-14 06:58:07 +00:00
}
2018-08-20 06:41:02 +00:00
.tt-menu {
2022-03-02 08:54:14 +00:00
padding: 0 !important;
border-radius: 0 0 0.25rem 0.25rem !important;
2018-08-20 06:41:02 +00:00
}
.tt-dataset .alert {
2022-03-02 08:54:14 +00:00
border: 0 !important;
border-radius: 0 !important;
2018-08-20 06:41:02 +00:00
}
2018-10-21 05:54:41 +00:00
.input-elevated {
2022-03-02 08:54:14 +00:00
font-size: 16px;
line-height: 1.5;
border: none;
background: #FFFFFF;
box-shadow: 0 2px 4px 0 rgba(0,0,0,0.08);
border-radius: 5px;
padding: .5em 1em .5em .5em;
}
2018-10-21 05:54:41 +00:00
.input-elevated::placeholder {
2022-03-02 08:54:14 +00:00
color: #838D99;
2018-10-21 05:54:41 +00:00
}
.input-elevated:focus {
2022-03-02 08:54:14 +00:00
outline: none;
box-shadow: 0 4px 10px 0 rgba(0,0,0,0.16);
2018-10-22 01:49:42 +00:00
}
.icon-wrapper {
2022-03-02 08:54:14 +00:00
display: inline-flex;
padding: 14px;
border-radius: 50%;
background: #10c5f8;
background: -webkit-gradient(linear,left top,right bottom,from(#6736dd),to(#10c5f8));
background: linear-gradient(to bottom right,#6736dd,#10c5f8);
2018-10-22 01:49:42 +00:00
}
.border-left-blue {
2022-03-02 08:54:14 +00:00
border-left: 3px solid #10c5f8;
2018-10-24 02:39:24 +00:00
}
.b-dropdown {
2022-03-02 08:54:14 +00:00
padding:0 !important;
2018-10-24 02:39:24 +00:00
}
.b-dropdown > button {
2022-03-02 08:54:14 +00:00
padding:0 !important;
2018-10-24 02:39:24 +00:00
}
.lds-ring {
2022-03-02 08:54:14 +00:00
display: inline-block;
position: relative;
width: 64px;
height: 64px;
2018-10-24 02:39:24 +00:00
}
.lds-ring div {
2022-03-02 08:54:14 +00:00
box-sizing: border-box;
display: block;
position: absolute;
width: 51px;
height: 51px;
margin: 6px;
border: 6px solid #6c757d;
border-radius: 50%;
animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
border-color: #6c757d transparent transparent transparent;
2018-10-24 02:39:24 +00:00
}
.lds-ring div:nth-child(1) {
2022-03-02 08:54:14 +00:00
animation-delay: -0.45s;
2018-10-24 02:39:24 +00:00
}
.lds-ring div:nth-child(2) {
2022-03-02 08:54:14 +00:00
animation-delay: -0.3s;
2018-10-24 02:39:24 +00:00
}
.lds-ring div:nth-child(3) {
2022-03-02 08:54:14 +00:00
animation-delay: -0.15s;
2018-10-24 02:39:24 +00:00
}
@keyframes lds-ring {
2022-03-02 08:54:14 +00:00
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
2018-11-03 03:26:59 +00:00
}
.navbar .nav-notification.dropdown-toggle::after {
2022-03-02 08:54:14 +00:00
display: none;
2018-11-03 03:26:59 +00:00
}
.navbar .dropdown .nav-notification-dropdown {
2022-03-02 08:54:14 +00:00
width:500px;
max-height: 300px;
overflow-y: scroll;
padding-top: 0;
padding-bottom: 0;
2018-11-03 03:26:59 +00:00
}
.nav-notification-dropdown .loader {
2022-03-02 08:54:14 +00:00
padding-top: 5rem;
padding-bottom: 5rem;
2018-11-04 04:15:36 +00:00
}
.timeline-sidenav.nav-pills .nav-link {
2022-03-02 08:54:14 +00:00
color: #6c757d;
2018-11-04 04:15:36 +00:00
}
.timeline-sidenav.nav-pills .nav-link:hover {
2022-03-02 08:54:14 +00:00
background: rgba(0,0,0,0.04);
2018-11-04 04:15:36 +00:00
}
.timeline-sidenav.nav-pills .nav-link.active,
2018-11-04 04:15:36 +00:00
.timeline-sidenav.nav-pills .show > .nav-link {
2022-03-02 08:54:14 +00:00
color: #08d;
background: transparent;
border: 1px solid #08d;
2018-11-13 04:49:57 +00:00
}
.messages-page .bg-primary.text-white a {
2022-03-02 08:54:14 +00:00
color: #fff;
2018-11-13 04:49:57 +00:00
}
.notification-tooltip .tooltip-inner {
2022-03-02 08:54:14 +00:00
font-weight: bold;
2018-11-13 04:49:57 +00:00
}
#previewAvatar {
2022-03-02 08:54:14 +00:00
img {
max-width: 100%;
height: auto;
}
}
.img-thumbnail {
2022-03-02 08:54:14 +00:00
box-sizing: content-box;
}
.media-drawer-filters img {
2022-03-02 08:54:14 +00:00
object-fit: contain;
}
.reply-container {
2022-03-02 08:54:14 +00:00
.post-thumbnail {
object-fit: cover;
}
}
2019-01-31 20:21:40 +00:00
#l-modal .modal-body,
#s-modal .modal-body {
2022-03-02 08:54:14 +00:00
height: 60vh;
overflow-y: scroll;
2019-01-31 20:21:40 +00:00
}
#l-modal .modal-content,
#s-modal .modal-content {
2022-03-02 08:54:14 +00:00
border-radius: 0;
2019-01-31 20:21:40 +00:00
}
2019-02-22 04:05:55 +00:00
.text-lighter {
2022-03-02 08:54:14 +00:00
color:#B8C2CC !important;
2020-02-16 05:10:37 +00:00
}
2019-02-22 04:05:55 +00:00
2019-08-30 01:32:13 +00:00
.btn-outline-lighter {
2022-03-02 08:54:14 +00:00
color: #B8C2CC !important;
border-color: #B8C2CC !important;
2019-08-30 01:32:13 +00:00
}
2019-02-22 04:05:55 +00:00
.cursor-pointer {
2022-03-02 08:54:14 +00:00
cursor: pointer;
2019-02-22 04:05:55 +00:00
}
2019-03-12 06:53:54 +00:00
.tooltip-notification .tooltip-inner {
2022-03-02 08:54:14 +00:00
max-width: 200px;
padding: 3px 8px;
color: #fff;
text-align: center;
/*background-color: #dc3545;*/
border-radius: .25rem;
2019-03-12 06:53:54 +00:00
}
.tooltip-notification .tooltip.bs-tooltip-auto[x-placement^=top] .arrow::before, .tooltip.bs-tooltip-top .arrow::before {
2022-03-02 08:54:14 +00:00
/*border-top-color: #dc3545; */
2019-03-12 06:53:54 +00:00
}
.carousel-control-prev-icon, .carousel-control-next-icon {
2022-03-02 08:54:14 +00:00
filter: drop-shadow(0px 0px 1px black);
}
2019-10-16 03:45:58 +00:00
.VueCarousel:focus,
.VueCarousel-navigation-button:focus,
.VueCarousel-dot:focus,
.VueCarousel-dot--active:focus {
2022-03-02 08:54:14 +00:00
outline: 0px !important;
2019-11-06 06:33:50 +00:00
}
.status-content > p:first-child {
2022-03-02 08:54:14 +00:00
display: inline;
2020-02-16 05:09:05 +00:00
}
2020-02-22 08:38:17 +00:00
.follow-modal {
2022-03-02 08:54:14 +00:00
max-width: 400px !important;
}
.square-content {
2022-03-02 08:54:14 +00:00
img {
object-fit: cover !important;
}
}
.square .square-content {
2022-03-02 08:54:14 +00:00
canvas {
width: 100%;
height: 100%;
}
}
.tribute-container {
2022-03-02 08:54:14 +00:00
position: absolute;
top: 0;
left: 0;
height: auto;
max-height: 300px;
min-width: 120px;
max-width: 500px;
overflow: auto;
display: block;
z-index: 999999;
border: 1px solid #ccc;
border-radius: 4px;
box-shadow: 0 1px 4px rgba(#000, 0.13);
ul {
margin: 0;
margin-top: 2px;
padding: 0;
list-style: none;
background: #fff;
border-radius: 4px;
border: 1px solid rgba(#000, 0.13);
background-clip: padding-box;
overflow: hidden;
}
li {
color: #000;
padding: 5px 15px;
cursor: pointer;
font-size: 14px;
overflow-x: hidden !important;
&.highlight,
&:hover {
background: #2c78bf;
color: #fff;
}
&.no-match {
cursor: default;
}
}
.menu-highlighted {
font-weight: bold;
}
}
.content-label {
&-wrapper {
div:not(.content-label) {
height: 100%;
}
}
&-text {
width: 80%;
@media (min-width: 768px) {
width: 50%;
}
}
}