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

104 lines
1.8 KiB
SCSS
Raw Normal View History

.main-wrapper {
2019-07-23 04:05:51 -04:00
position: relative;
}
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-07-21 17:31:22 -04:00
max-width: var(--page-max-width);
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);
padding: var(--spacing-large);
2019-12-18 00:27:08 -05:00
@media (max-width: $breakpoint-small) {
padding: var(--spacing-small);
}
}
2019-06-11 14:10:58 -04:00
.main {
2019-09-26 12:07:11 -04:00
position: relative;
width: calc(100% - var(--side-nav-width) - var(--spacing-large));
2019-09-30 17:48:30 -04:00
margin-right: var(--spacing-main-padding);
2019-05-06 22:35:04 -04:00
2019-12-18 00:27:08 -05:00
@media (max-width: $breakpoint-small) {
2019-06-11 14:10:58 -04:00
width: 100%;
margin-right: 0;
margin-left: 0;
}
}
2019-01-09 13:39:05 -05:00
2019-07-08 22:41:48 -04:00
.main--file-page {
position: relative;
2019-01-09 13:39:05 -05:00
2019-11-22 16:13:00 -05:00
.grid-area--content {
max-height: var(--inline-player-max-height);
}
2019-01-09 13:39:05 -05:00
.grid-area--info {
2019-07-08 22:41:48 -04:00
margin-right: var(--spacing-large);
2019-07-21 17:31:22 -04:00
width: 52.5%;
2019-06-17 16:32:38 -04:00
}
2019-07-08 22:41:48 -04:00
.grid-area--related {
2019-07-21 17:31:22 -04:00
width: calc(47.5% - var(--spacing-large));
2019-01-09 13:39:05 -05:00
}
2019-12-18 00:27:08 -05:00
@media (max-width: $breakpoint-small) {
2019-12-19 15:43:49 -05:00
overflow-x: hidden;
2019-12-18 00:27:08 -05:00
.grid-area--related,
.grid-area--info {
margin-right: 0;
width: 100%;
}
}
2019-01-09 13:39:05 -05:00
}
2019-08-27 10:43:42 -04:00
.main--auth-page {
max-width: 60rem;
2019-09-26 12:07:11 -04:00
margin-top: var(--spacing-main-padding);
2019-08-27 10:43:42 -04:00
margin-left: auto;
margin-right: auto;
}
.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;
2019-07-02 00:22:13 -04:00
margin-top: 100px;
margin-bottom: 100px;
text-align: center;
}
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;
margin-top: 5rem;
2019-09-27 14:56:15 -04:00
display: flex;
flex-direction: column;
align-items: flex-start;
max-width: 40rem;
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
2019-09-26 12:07:11 -04:00
.main--full-width {
width: 100%;
2019-08-27 10:43:42 -04:00
}