mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update styles
This commit is contained in:
parent
692a73ec0b
commit
15d65531a6
6 changed files with 632 additions and 328 deletions
3
resources/assets/sass/_variables.scss
vendored
3
resources/assets/sass/_variables.scss
vendored
|
@ -20,7 +20,8 @@ $custom-control-description-disabled-color: #868e96;
|
|||
$white: white;
|
||||
$theme-colors: (
|
||||
'primary': #2c78bf,
|
||||
'muted' : #697179
|
||||
'muted' : #697179,
|
||||
'dark' : #212529
|
||||
);
|
||||
|
||||
$card-cap-bg: $white;
|
||||
|
|
5
resources/assets/sass/app.scss
vendored
5
resources/assets/sass/app.scss
vendored
|
@ -23,4 +23,7 @@
|
|||
|
||||
@import "moment";
|
||||
|
||||
@import '~animate.css/animate.min.css';
|
||||
@import 'animate.css';
|
||||
|
||||
@import "lib/placeholder-loading";
|
||||
|
||||
|
|
11
resources/assets/sass/custom.scss
vendored
11
resources/assets/sass/custom.scss
vendored
|
@ -12,8 +12,7 @@ body {
|
|||
}
|
||||
|
||||
body, button, input, textarea {
|
||||
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",
|
||||
Roboto,Helvetica,Arial,sans-serif;
|
||||
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
|
||||
}
|
||||
|
||||
.navbar-laravel {
|
||||
|
@ -294,6 +293,14 @@ body, button, input, textarea {
|
|||
max-height: calc(100vh - (6rem));
|
||||
}
|
||||
|
||||
.fade-enter-active, .fade-leave-active {
|
||||
transition: opacity .5s;
|
||||
}
|
||||
|
||||
.fade-enter, .fade-leave-to {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
@keyframes fadeInDown {
|
||||
0% {
|
||||
opacity: 0;
|
||||
|
|
108
resources/assets/sass/lib/ibmplexsans.scss
vendored
Normal file
108
resources/assets/sass/lib/ibmplexsans.scss
vendored
Normal file
|
@ -0,0 +1,108 @@
|
|||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'IBM Plex Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: url(/fonts/zYXgKVElMYYaJe8bpLHnCwDKhdzeFaxOedfTDw.woff2) format('woff2');
|
||||
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'IBM Plex Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: url(/fonts/zYXgKVElMYYaJe8bpLHnCwDKhdXeFaxOedfTDw.woff2) format('woff2');
|
||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* greek */
|
||||
@font-face {
|
||||
font-family: 'IBM Plex Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: url(/fonts/zYXgKVElMYYaJe8bpLHnCwDKhdLeFaxOedfTDw.woff2) format('woff2');
|
||||
unicode-range: U+0370-03FF;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'IBM Plex Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: url(/fonts/zYXgKVElMYYaJe8bpLHnCwDKhd7eFaxOedfTDw.woff2) format('woff2');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'IBM Plex Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: url(/fonts/zYXgKVElMYYaJe8bpLHnCwDKhd_eFaxOedfTDw.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'IBM Plex Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: url(/fonts/zYXgKVElMYYaJe8bpLHnCwDKhdHeFaxOedc.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'IBM Plex Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-display: swap;
|
||||
src: url(/fonts/zYX9KVElMYYaJe8bpLHnCwDKjQ76AIxsdP3pBmtF8A.woff2) format('woff2');
|
||||
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'IBM Plex Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-display: swap;
|
||||
src: url(/fonts/zYX9KVElMYYaJe8bpLHnCwDKjQ76AIVsdP3pBmtF8A.woff2) format('woff2');
|
||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* greek */
|
||||
@font-face {
|
||||
font-family: 'IBM Plex Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-display: swap;
|
||||
src: url(/fonts/zYX9KVElMYYaJe8bpLHnCwDKjQ76AIJsdP3pBmtF8A.woff2) format('woff2');
|
||||
unicode-range: U+0370-03FF;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'IBM Plex Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-display: swap;
|
||||
src: url(/fonts/zYX9KVElMYYaJe8bpLHnCwDKjQ76AI5sdP3pBmtF8A.woff2) format('woff2');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'IBM Plex Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-display: swap;
|
||||
src: url(/fonts/zYX9KVElMYYaJe8bpLHnCwDKjQ76AI9sdP3pBmtF8A.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'IBM Plex Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-display: swap;
|
||||
src: url(/fonts/zYX9KVElMYYaJe8bpLHnCwDKjQ76AIFsdP3pBms.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
136
resources/assets/sass/lib/placeholder-loading.scss
vendored
Normal file
136
resources/assets/sass/lib/placeholder-loading.scss
vendored
Normal file
|
@ -0,0 +1,136 @@
|
|||
/**
|
||||
* placeholder-loading v0.5.0
|
||||
* Author: Zalog (https://www.zalog.ro/)
|
||||
* License: MIT
|
||||
**/
|
||||
|
||||
.ph-item {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 30px;
|
||||
padding: 30px 15px 15px 15px;
|
||||
overflow: hidden;
|
||||
direction: ltr;
|
||||
background-color: #fff;
|
||||
border: 1px solid #e6e6e6;
|
||||
border-radius: 2px;
|
||||
}
|
||||
.ph-item,
|
||||
.ph-item *,
|
||||
.ph-item ::after,
|
||||
.ph-item ::before {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.ph-item::before {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 50%;
|
||||
z-index: 1;
|
||||
width: 500%;
|
||||
margin-left: -250%;
|
||||
background: linear-gradient(to right, rgba(255, 255, 255, 0) 46%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 54%) 50% 50%;
|
||||
-webkit-animation: phAnimation 0.8s linear infinite;
|
||||
animation: phAnimation 0.8s linear infinite;
|
||||
content: " ";
|
||||
pointer-events: none;
|
||||
}
|
||||
.ph-item > * {
|
||||
display: flex;
|
||||
flex: 1 1 auto;
|
||||
flex-flow: column;
|
||||
margin-bottom: 15px;
|
||||
padding-right: 15px;
|
||||
padding-left: 15px;
|
||||
}
|
||||
|
||||
.ph-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin-top: -7.5px;
|
||||
}
|
||||
.ph-row div {
|
||||
height: 10px;
|
||||
margin-top: 7.5px;
|
||||
background-color: #ced4da;
|
||||
}
|
||||
.ph-row .big, .ph-row.big div {
|
||||
height: 20px;
|
||||
}
|
||||
.ph-row .empty {
|
||||
background-color: rgba(255, 255, 255, 0);
|
||||
}
|
||||
|
||||
.ph-col-2 {
|
||||
flex: 0 0 16.6666666667%;
|
||||
}
|
||||
|
||||
.ph-col-4 {
|
||||
flex: 0 0 33.3333333333%;
|
||||
}
|
||||
|
||||
.ph-col-6 {
|
||||
flex: 0 0 50%;
|
||||
}
|
||||
|
||||
.ph-col-8 {
|
||||
flex: 0 0 66.6666666667%;
|
||||
}
|
||||
|
||||
.ph-col-10 {
|
||||
flex: 0 0 83.3333333333%;
|
||||
}
|
||||
|
||||
.ph-col-12 {
|
||||
flex: 0 0 100%;
|
||||
}
|
||||
|
||||
[class*=ph-col] {
|
||||
direction: ltr;
|
||||
}
|
||||
[class*=ph-col] > * + .ph-row {
|
||||
margin-top: 0;
|
||||
}
|
||||
[class*=ph-col] > * + * {
|
||||
margin-top: 7.5px;
|
||||
}
|
||||
|
||||
.ph-avatar {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
min-width: 60px;
|
||||
overflow: hidden;
|
||||
background-color: #ced4da;
|
||||
border-radius: 50%;
|
||||
}
|
||||
.ph-avatar::before {
|
||||
display: block;
|
||||
padding-top: 100%;
|
||||
content: " ";
|
||||
}
|
||||
|
||||
.ph-picture {
|
||||
width: 100%;
|
||||
height: 120px;
|
||||
background-color: #ced4da;
|
||||
}
|
||||
|
||||
@-webkit-keyframes phAnimation {
|
||||
0% {
|
||||
transform: translate3d(-30%, 0, 0);
|
||||
}
|
||||
100% {
|
||||
transform: translate3d(30%, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes phAnimation {
|
||||
0% {
|
||||
transform: translate3d(-30%, 0, 0);
|
||||
}
|
||||
100% {
|
||||
transform: translate3d(30%, 0, 0);
|
||||
}
|
||||
}
|
49
resources/assets/sass/spa.scss
vendored
Normal file
49
resources/assets/sass/spa.scss
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
@import "lib/ibmplexsans";
|
||||
|
||||
body {
|
||||
background: rgba(243,244,246,1);
|
||||
font-family: 'IBM Plex Sans', sans-serif;
|
||||
}
|
||||
|
||||
.primary {
|
||||
color: #3B82F6;
|
||||
}
|
||||
|
||||
.web-wrapper {
|
||||
margin-bottom: 10rem;
|
||||
}
|
||||
|
||||
.jumbotron {
|
||||
border-radius: 18px;
|
||||
}
|
||||
|
||||
.rounded-px {
|
||||
border-radius: 18px;
|
||||
}
|
||||
|
||||
.doc-body {
|
||||
p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.sticky-top {
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.container-fluid {
|
||||
max-width: 1440px !important;
|
||||
}
|
||||
|
||||
.text-lighter {
|
||||
color: #94a3b8 !important;
|
||||
}
|
||||
|
||||
.badge-primary {
|
||||
background-color: #3B82F6;
|
||||
}
|
||||
|
||||
.btn-primary.primary {
|
||||
background-color: #3B82F6;
|
||||
color: #fff !important;
|
||||
}
|
Loading…
Reference in a new issue