lbry-desktop/ui/scss/component/_main.scss

341 lines
6.4 KiB
SCSS
Raw Normal View History

.main-wrapper {
2019-07-23 04:05:51 -04:00
position: relative;
margin-left: auto;
margin-right: auto;
}
2019-10-09 12:34:18 -04:00
.main-wrapper--mac {
margin-top: calc(var(--header-height) + var(--mac-titlebar-height));
}
2019-07-17 16:49:06 -04:00
.main-wrapper__inner {
display: flex;
2019-07-17 16:49:06 -04:00
align-items: flex-start;
2019-07-23 04:05:51 -04:00
justify-content: space-between;
2019-10-03 12:06:06 -04:00
min-height: calc(100vh - var(--header-height));
2019-06-11 14:10:58 -04:00
margin-left: auto;
margin-right: auto;
2019-07-23 04:05:51 -04:00
margin-top: var(--header-height);
2020-06-01 13:03:19 -04:00
padding: var(--spacing-l); // Unfortunately this is coupled with .claim-preview--tile width calculation
2020-08-10 16:47:39 -04:00
padding-left: 0;
padding-right: 0;
2019-12-18 00:27:08 -05:00
2020-08-11 16:32:03 -04:00
> :first-child {
flex-shrink: 0;
}
2019-12-18 00:27:08 -05:00
@media (max-width: $breakpoint-small) {
2020-08-10 16:47:39 -04:00
padding: var(--spacing-xs);
padding-top: var(--spacing-m);
2019-12-18 00:27:08 -05:00
}
2020-08-10 16:47:39 -04:00
@media (min-width: $breakpoint-large) {
width: 100%;
}
}
.main-wrapper__inner--filepage {
padding: 0;
}
2021-01-08 10:21:27 -05:00
.main-wrapper__inner--theater-mode {
padding-top: 0;
}
2019-06-11 14:10:58 -04:00
.main {
2019-09-26 12:07:11 -04:00
position: relative;
2020-06-01 13:03:19 -04:00
width: calc(100% - var(--side-nav-width) - var(--spacing-l));
2020-08-10 16:47:39 -04:00
max-width: var(--page-max-width);
z-index: 0;
margin-right: auto;
margin-left: auto;
2019-05-06 22:35:04 -04:00
2020-08-11 16:32:03 -04:00
@media (max-width: $breakpoint-medium) and (min-width: $breakpoint-small) {
margin: 0 var(--spacing-l);
}
2020-08-10 16:47:39 -04:00
@media (max-width: $breakpoint-medium) {
2019-06-11 14:10:58 -04:00
width: 100%;
2020-08-10 16:47:39 -04:00
}
}
.main--file-page {
width: 100%;
max-width: var(--page-max-width--filepage);
margin-left: auto;
margin-right: auto;
2021-03-11 12:08:11 -05:00
margin-top: var(--spacing-m);
padding: 0 var(--spacing-m);
2020-08-10 16:47:39 -04:00
display: flex;
2021-03-11 12:08:11 -05:00
flex-direction: row;
align-items: flex-start;
2021-01-08 10:21:27 -05:00
position: relative;
2020-08-10 16:47:39 -04:00
> :first-child {
2021-01-08 10:21:27 -05:00
flex-grow: 2;
}
.file-page__secondary-content {
display: flex;
2021-03-11 12:08:11 -05:00
flex-direction: row;
2021-01-08 10:21:27 -05:00
justify-content: center;
width: 100%;
margin-top: var(--spacing-m);
max-width: var(--page-max-width--filepage);
margin-left: auto;
margin-right: auto;
> :first-child {
flex: 1;
}
@media (min-width: $breakpoint-medium) {
flex-direction: row;
}
}
2021-03-11 12:08:11 -05:00
.file-page__post-comments {
margin-top: var(--spacing-l);
@media (min-width: $breakpoint-small) {
padding: var(--spacing-m);
}
}
2021-01-08 10:21:27 -05:00
.file-page__info {
margin-top: var(--spacing-m);
2020-08-10 16:47:39 -04:00
}
.file-page__recommended {
height: 0%;
2021-01-08 10:21:27 -05:00
width: 35rem;
margin-left: var(--spacing-m);
@media (max-width: $breakpoint-small) {
margin-left: 0;
}
2020-08-11 16:32:03 -04:00
@media (max-width: $breakpoint-medium) {
2020-08-18 10:17:45 -04:00
width: 100%;
2020-08-11 16:32:03 -04:00
margin-top: var(--spacing-l);
}
2020-08-10 16:47:39 -04:00
}
@media (max-width: $breakpoint-medium) {
> :first-child {
margin-right: 0;
}
2019-06-11 14:10:58 -04:00
}
2020-08-18 10:17:45 -04:00
@media (max-width: $breakpoint-small) {
padding: var(--spacing-xs);
2021-03-11 12:08:11 -05:00
flex-direction: column;
2020-08-19 10:02:00 -04:00
padding-top: 0;
2020-08-18 10:17:45 -04:00
}
}
2019-01-09 13:39:05 -05:00
2021-01-08 10:21:27 -05:00
.main--theater-mode {
padding-left: 0;
padding-right: 0;
margin-left: 0;
margin-right: 0;
width: 100vw;
max-width: none;
> :first-child {
margin-right: 0;
}
.file-page__info {
padding: 0 var(--spacing-m);
margin-top: var(--spacing-m);
max-width: var(--page-max-width--filepage);
display: flex;
flex-direction: column;
margin-left: auto;
margin-right: auto;
}
.file-page__recommended {
width: 25rem;
}
.file-page__secondary-content {
padding: 0 var(--spacing-s);
@media (min-width: $breakpoint-medium) {
flex-direction: row;
}
}
}
.main--livestream {
margin-top: var(--spacing-m);
}
2020-08-21 11:49:13 -04:00
.main--full-width {
@extend .main;
@media (min-width: $breakpoint-large) {
max-width: none;
width: 100%;
2021-01-08 10:21:27 -05:00
margin: 0 var(--spacing-l);
2020-08-21 11:49:13 -04:00
}
}
2019-08-27 10:43:42 -04:00
.main--auth-page {
2020-08-21 11:49:13 -04:00
width: 100%;
max-width: 70rem;
2019-08-27 10:43:42 -04:00
margin-left: auto;
margin-right: auto;
padding: 0 var(--spacing-s);
@media (min-width: $breakpoint-small) {
margin-top: var(--spacing-main-padding);
padding: 0 var(--spacing-l);
}
}
2021-03-12 11:18:09 -05:00
.main--markdown {
2021-03-11 12:08:11 -05:00
flex-direction: column;
}
.main__auth-content {
display: flex;
position: relative;
flex-direction: column;
padding-bottom: var(--spacing-xl);
@media (min-width: $breakpoint-small) {
flex-direction: row;
> :first-child {
position: fixed;
background-color: var(--color-background);
width: calc(40% - var(--spacing-l));
margin-top: var(--spacing-xl);
}
> :nth-child(2) {
width: 50%;
margin-left: auto;
}
}
@media (min-width: $breakpoint-medium) {
> :first-child {
width: calc(30% - var(--spacing-l));
max-width: 25rem;
}
> :nth-child(2) {
width: 50%;
margin-left: auto;
}
}
2019-08-27 10:43:42 -04:00
}
2020-06-01 13:03:19 -04:00
.main--buy {
@extend .main--auth-page;
max-width: 30rem;
min-height: 400px;
.card {
height: 100%;
margin: 0;
padding: 0;
}
iframe {
min-height: 420px;
background-color: var(--color-card-background);
margin-bottom: 2rem;
}
.sm:bg-grey-lighter {
background-color: var(--color-card-background);
}
}
.main--empty {
2019-09-27 16:03:05 -04:00
align-self: center;
display: flex;
2019-09-27 16:03:05 -04:00
align-items: center;
flex-direction: column;
text-align: center;
padding: 0 var(--spacing-m);
margin-top: var(--spacing-l);
margin-bottom: var(--spacing-l);
2020-09-15 10:05:04 -04:00
width: 100%;
> .card {
width: 100%;
}
2020-05-21 11:38:28 -04:00
@media (min-width: $breakpoint-small) {
margin-top: 100px;
margin-bottom: 100px;
2020-05-21 11:38:28 -04:00
}
}
2019-06-17 16:32:38 -04:00
2019-07-23 04:05:51 -04:00
.main--launching {
width: 100vw;
height: 100vh;
background-color: var(--color-background);
}
2019-09-26 12:07:11 -04:00
.main--contained {
margin: auto;
2019-09-27 14:56:15 -04:00
display: flex;
flex-direction: column;
align-items: flex-start;
max-width: 60rem;
2019-09-27 14:56:15 -04:00
text-align: left;
2019-10-03 17:40:54 -04:00
& > * {
width: 100%;
}
2019-09-26 12:07:11 -04:00
}
2019-08-27 10:43:42 -04:00
2020-08-26 16:28:33 -04:00
.main--hoisted {
margin-top: calc(var(--spacing-s) * -1);
@media (min-width: $breakpoint-small) {
margin-top: calc(var(--spacing-l) * -1);
}
}
.main__sign-in,
.main__sign-up {
max-width: 27rem;
margin-left: auto;
margin-right: auto;
}
.main__channel-creation {
margin-left: auto;
margin-right: auto;
max-width: 32rem;
}
.main-wrapper--scrollbar {
// The W3C future standard; currently supported by Firefox only.
// It'll hopefully auto fallback to this when 'webkit-scrollbar' below is deprecated in the future.
scrollbar-width: auto;
scrollbar-color: var(--color-scrollbar-thumb-bg) var(--color-scrollbar-track-bg);
}
.main-wrapper--scrollbar *::-webkit-scrollbar {
width: 12px;
}
.main-wrapper--scrollbar *::-webkit-scrollbar-track {
background: var(--color-scrollbar-track-bg);
}
.main-wrapper--scrollbar *::-webkit-scrollbar-thumb {
// Don't set 'border-radius' because Firefox's 'scrollbar-xx'
// standard currently doesn't support it. Stick with square
// scrollbar for all browsers.
background-color: var(--color-scrollbar-thumb-bg);
}