1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #737 from MrTimscampi/css-fixes

Miscellaneous CSS fixes
This commit is contained in:
dkanada 2020-02-05 01:50:09 +09:00 committed by GitHub
commit 2c44558de2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 112 additions and 73 deletions

View file

@ -60,7 +60,7 @@
"serve": "webpack-dev-server --config webpack.dev.js --open", "serve": "webpack-dev-server --config webpack.dev.js --open",
"build": "webpack --config webpack.prod.js", "build": "webpack --config webpack.prod.js",
"lint": "eslint \"src\"", "lint": "eslint \"src\"",
"stylelint": "stylelint src/**/*.css", "stylelint": "stylelint \"src/**/*.css\"",
"prepare": "webpack --config webpack.prod.js" "prepare": "webpack --config webpack.prod.js"
} }
} }

View file

@ -201,6 +201,7 @@
.navMenuOptionText { .navMenuOptionText {
white-space: nowrap; white-space: nowrap;
margin-top: 0.25em;
} }
.sidebarHeader { .sidebarHeader {
@ -272,7 +273,25 @@
} }
} }
@media all and (min-width:84em) { @media all and (min-width: 84em) {
.headerTop {
padding: 0.8em 0.8em;
}
.headerTabs {
-webkit-align-self: center;
align-self: center;
width: auto;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
justify-content: center;
position: relative;
margin-top: -4.3em;
}
.libraryPage:not(.noSecondaryNavPage) { .libraryPage:not(.noSecondaryNavPage) {
padding-top: 4.6em !important; padding-top: 4.6em !important;
} }
@ -426,12 +445,44 @@
.desktopMiscInfoContainer { .desktopMiscInfoContainer {
position: absolute; position: absolute;
bottom: .75em bottom: 0.75em;
} }
.layout-mobile .detailPagePrimaryContainer { .parentName {
display: block; display: block;
position: relative; margin-bottom: 0.5em;
}
.mainDetailButtons {
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
-webkit-flex-wrap: wrap;
flex-wrap: wrap;
margin: 1em 0;
}
.detailButton,
.mainDetailButtons {
display: flex;
display: -webkit-box;
display: -webkit-flex;
}
.itemName {
margin: 0.5em 0;
}
.itemMiscInfo {
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
} }
.layout-mobile .parentName, .layout-mobile .parentName,
@ -443,14 +494,6 @@
justify-content: center; justify-content: center;
} }
.layout-mobile .infoText {
white-space: normal;
}
.layout-tv .detailPagePrimaryContainer {
position: relative;
}
.detailPagePrimaryContainer { .detailPagePrimaryContainer {
display: flex; display: flex;
align-items: center; align-items: center;
@ -460,6 +503,15 @@
z-index: 2; z-index: 2;
} }
.layout-mobile .detailPagePrimaryContainer {
display: block;
position: relative;
}
.layout-tv .detailPagePrimaryContainer {
position: relative;
}
.detailSticky { .detailSticky {
background-color: #101010; background-color: #101010;
} }
@ -475,6 +527,10 @@
text-align: left; text-align: left;
} }
.layout-mobile .infoText {
white-space: normal;
}
.detailPageSecondaryContainer { .detailPageSecondaryContainer {
margin: 1.25em 0; margin: 1.25em 0;
} }
@ -542,9 +598,9 @@
-webkit-box-shadow: 0 0.0725em 0.29em 0 rgba(0, 0, 0, 0.37); -webkit-box-shadow: 0 0.0725em 0.29em 0 rgba(0, 0, 0, 0.37);
} }
@media all and (max-width:62.5em) { @media all and (max-width: 62.5em) {
.detailPageWrapperContainer { .detailPageWrapperContainer {
position: relative position: relative;
} }
.btnPlaySimple { .btnPlaySimple {
@ -558,11 +614,6 @@
} }
} }
.parentName {
display: block;
margin-bottom: 0.5em;
}
.btnSyncComplete { .btnSyncComplete {
background: #673ab7 !important; background: #673ab7 !important;
} }
@ -613,17 +664,6 @@
} }
} }
.detailButton,
.mainDetailButtons {
display: flex;
display: -webkit-box;
display: -webkit-flex;
}
.itemName {
margin: 0.5em 0;
}
.empty { .empty {
margin: 0; margin: 0;
} }
@ -636,16 +676,6 @@
margin-top: 0; margin-top: 0;
} }
.mainDetailButtons {
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
-webkit-flex-wrap: wrap;
flex-wrap: wrap;
margin: 1em 0;
}
.recordingFields button { .recordingFields button {
margin-left: 0; margin-left: 0;
margin-right: 0.5em; margin-right: 0.5em;
@ -670,24 +700,24 @@
padding: 0.5em 0.7em !important; padding: 0.5em 0.7em !important;
} }
@media all and (min-width:29em) { @media all and (min-width: 29em) {
.detailButton { .detailButton {
padding-left: .75em !important; padding-left: 0.75em !important;
padding-right: .75em !important padding-right: 0.75em !important;
} }
} }
@media all and (min-width:32em) { @media all and (min-width: 32em) {
.detailButton { .detailButton {
padding-left: .8em !important; padding-left: 0.8em !important;
padding-right: .8em !important padding-right: 0.8em !important;
} }
} }
@media all and (min-width:35em) { @media all and (min-width: 35em) {
.detailButton { .detailButton {
padding-left: .85em !important; padding-left: 0.85em !important;
padding-right: .85em !important padding-right: 0.85em !important;
} }
} }
@ -720,7 +750,7 @@
} }
.detailButton-text { .detailButton-text {
margin-top: .7em; margin-top: 0.7em;
font-size: 80%; font-size: 80%;
font-weight: 400; font-weight: 400;
} }
@ -731,13 +761,14 @@
} }
.detailButtonHideonMobile { .detailButtonHideonMobile {
display: none !important display: none !important;
} }
} }
@media all and (min-width:62.5em) { @media all and (min-width: 62.5em) {
.headerTop { .headerTop {
padding: 0.8em 0 padding-left: 0.8em;
padding-right: 0.8em;
} }
.headerTabs { .headerTabs {
@ -745,7 +776,7 @@
width: auto; width: auto;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
margin-top: -3.34em; margin-top: -4.3em;
position: relative; position: relative;
} }
@ -754,7 +785,7 @@
} }
.personBackdrop { .personBackdrop {
display: none !important display: none !important;
} }
.mainDetailButtons { .mainDetailButtons {
@ -769,17 +800,6 @@
} }
} }
.itemMiscInfo {
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
}
@media all and (max-width: 31.25em) { @media all and (max-width: 31.25em) {
.mobileDetails .itemMiscInfo { .mobileDetails .itemMiscInfo {
text-align: center; text-align: center;
@ -950,7 +970,7 @@ div:not(.sectionTitleContainer-cards) > .sectionTitle-cards {
} }
.sectionTitleTextButton > .sectionTitle { .sectionTitleTextButton > .sectionTitle {
margin-bottom: 0; margin-bottom: 0.35em;
margin-top: 0; margin-top: 0;
} }
@ -980,7 +1000,7 @@ div:not(.sectionTitleContainer-cards) > .sectionTitle-cards {
margin-bottom: -1em; margin-bottom: -1em;
} }
@media all and (min-height:31.25em) { @media all and (min-height: 31.25em) {
.padded-right-withalphapicker { .padded-right-withalphapicker {
padding-right: 7.5%; padding-right: 7.5%;
} }

View file

@ -112,7 +112,6 @@
} }
@media all and (min-width: 62.5em) { @media all and (min-width: 62.5em) {
.alphaPicker-fixed-right { .alphaPicker-fixed-right {
right: 1em; right: 1em;
} }

View file

@ -13,6 +13,11 @@
margin-right: 1.2em; margin-right: 1.2em;
} }
.servers > .card > .cardBox {
margin-left: 0.6em;
margin-right: 0.6em;
}
.layout-tv .emby-scroller, .layout-tv .emby-scroller,
.layout-mobile .emby-scroller { .layout-mobile .emby-scroller {
padding-left: 3.3%; padding-left: 3.3%;

View file

@ -1,4 +1,7 @@
.emby-tab-button { .emby-tab-button {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
background: transparent; background: transparent;
box-shadow: none; box-shadow: none;
cursor: pointer; cursor: pointer;
@ -10,7 +13,7 @@
vertical-align: middle; vertical-align: middle;
flex-shrink: 0; flex-shrink: 0;
margin: 0; margin: 0;
padding: 1em 0.9em; padding: 1.5em;
position: relative; position: relative;
height: auto; height: auto;
min-width: initial; min-width: initial;

View file

@ -111,6 +111,10 @@
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.layout-desktop .listItemBodyText {
margin: 0.25em 0 0 0;
}
.listItemBodyText-nowrap { .listItemBodyText-nowrap {
white-space: nowrap; white-space: nowrap;
} }

View file

@ -21,8 +21,8 @@
border: 0; border: 0;
} }
.emby-input:required { .emby-input:required {
box-shadow: none; box-shadow: none;
} }
.inputContainer { .inputContainer {

View file

@ -311,6 +311,14 @@ html {
.emby-tab-button-active { .emby-tab-button-active {
color: #fff; color: #fff;
border-bottom: 2px solid #fff;
padding-top: 1.55em;
padding-bottom: 1.38em;
}
.layout-mobile .emby-tab-button-active {
padding-top: 1.56em; /* Add one pixel to get a better fit in mobile layout */
padding-bottom: 1.38em;
} }
.emby-tab-button.show-focus:focus { .emby-tab-button.show-focus:focus {