1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-25 17:26:43 +00:00
pixelfed/resources/assets/sass/custom.scss

555 lines
9.4 KiB
SCSS
Raw Normal View History

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