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

174 lines
3 KiB
SCSS
Raw Normal View History

.main-wrapper {
2019-07-23 10:05:51 +02:00
position: relative;
margin-left: auto;
margin-right: auto;
}
2019-10-09 18:34:18 +02:00
.main-wrapper--mac {
margin-top: calc(var(--header-height) + var(--mac-titlebar-height));
}
2019-07-17 22:49:06 +02:00
.main-wrapper__inner {
display: flex;
2019-07-17 22:49:06 +02:00
align-items: flex-start;
2019-07-23 10:05:51 +02:00
justify-content: space-between;
2019-10-03 18:06:06 +02:00
min-height: calc(100vh - var(--header-height));
2019-06-11 20:10:58 +02:00
margin-left: auto;
margin-right: auto;
2019-07-23 10:05:51 +02:00
margin-top: var(--header-height);
2020-06-01 19:03:19 +02:00
padding: var(--spacing-l); // Unfortunately this is coupled with .claim-preview--tile width calculation
2020-08-10 22:47:39 +02:00
padding-left: 0;
padding-right: 0;
2019-12-18 06:27:08 +01:00
2020-08-11 22:32:03 +02:00
> :first-child {
flex-shrink: 0;
}
2019-12-18 06:27:08 +01:00
@media (max-width: $breakpoint-small) {
2020-08-10 22:47:39 +02:00
padding: var(--spacing-xs);
padding-top: var(--spacing-m);
2019-12-18 06:27:08 +01:00
}
2020-08-10 22:47:39 +02:00
@media (min-width: $breakpoint-large) {
width: 100%;
}
}
.main-wrapper__inner--filepage {
padding: 0;
padding-top: var(--spacing-s);
}
2019-06-11 20:10:58 +02:00
.main {
2019-09-26 18:07:11 +02:00
position: relative;
2020-06-01 19:03:19 +02:00
width: calc(100% - var(--side-nav-width) - var(--spacing-l));
2020-08-10 22:47:39 +02:00
max-width: var(--page-max-width);
z-index: 0;
margin-right: auto;
margin-left: auto;
2019-05-07 04:35:04 +02:00
2020-08-11 22:32:03 +02:00
@media (max-width: $breakpoint-medium) and (min-width: $breakpoint-small) {
margin: 0 var(--spacing-l);
}
2020-08-10 22:47:39 +02:00
@media (max-width: $breakpoint-medium) {
2019-06-11 20:10:58 +02:00
width: 100%;
2020-08-10 22:47:39 +02:00
}
}
.main--file-page {
width: 100%;
max-width: var(--page-max-width--filepage);
margin-left: auto;
margin-right: auto;
display: flex;
align-items: flex-start;
2020-08-10 22:47:39 +02:00
padding-left: var(--spacing-m);
padding-right: var(--spacing-m);
> :first-child {
flex: 1;
margin-right: var(--spacing-m);
}
.file-page__recommended {
width: 25rem;
height: 0%;
2020-08-11 22:32:03 +02:00
@media (max-width: $breakpoint-medium) {
width: auto;
margin-top: var(--spacing-l);
}
2020-08-10 22:47:39 +02:00
}
@media (max-width: $breakpoint-medium) {
flex-direction: column;
> :first-child {
margin-right: 0;
}
2019-06-11 20:10:58 +02:00
}
}
2019-01-09 19:39:05 +01:00
2019-08-27 16:43:42 +02:00
.main--auth-page {
max-width: 70rem;
2019-09-26 18:07:11 +02:00
margin-top: var(--spacing-main-padding);
2019-08-27 16:43:42 +02:00
margin-left: auto;
margin-right: auto;
}
2020-06-01 19:03:19 +02: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 22:03:05 +02:00
align-self: center;
display: flex;
2019-09-27 22:03:05 +02:00
align-items: center;
flex-direction: column;
2019-07-02 06:22:13 +02:00
margin-top: 100px;
margin-bottom: 100px;
text-align: center;
> .card {
width: 100%;
}
2020-05-21 17:38:28 +02:00
@media (max-width: $breakpoint-small) {
2020-06-01 19:03:19 +02:00
padding: 0 var(--spacing-m);
2020-05-21 17:38:28 +02:00
}
}
2019-06-17 22:32:38 +02:00
2019-07-23 10:05:51 +02:00
.main--launching {
width: 100vw;
height: 100vh;
background-color: var(--color-background);
}
2019-09-26 18:07:11 +02:00
.main--contained {
margin: auto;
2019-09-27 20:56:15 +02:00
display: flex;
flex-direction: column;
align-items: flex-start;
max-width: 50rem;
2019-09-27 20:56:15 +02:00
text-align: left;
2019-10-03 23:40:54 +02:00
& > * {
width: 100%;
}
2019-09-26 18:07:11 +02:00
}
2019-08-27 16:43:42 +02:00
2019-09-26 18:07:11 +02:00
.main--full-width {
width: 100%;
2019-08-27 16:43:42 +02:00
}
.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;
}