mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #366 from dkanada/margin
Minor fixes for section headers
This commit is contained in:
commit
aafb7c0be7
8 changed files with 29 additions and 65 deletions
|
@ -32,6 +32,8 @@ button {
|
||||||
|
|
||||||
.itemsContainer {
|
.itemsContainer {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
margin-left: -0.6em;
|
||||||
|
margin-right: -0.6em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vertical-list {
|
.vertical-list {
|
||||||
|
@ -77,7 +79,7 @@ button {
|
||||||
|
|
||||||
.cardBox {
|
.cardBox {
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
margin: .42em;
|
margin: 0.6em;
|
||||||
transition: none;
|
transition: none;
|
||||||
border: 0 solid transparent;
|
border: 0 solid transparent;
|
||||||
/* These both are needed in case cardBox is a button */
|
/* These both are needed in case cardBox is a button */
|
||||||
|
@ -86,25 +88,10 @@ button {
|
||||||
contain: layout style;
|
contain: layout style;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*.cardBox-withfocuscontent {
|
|
||||||
margin: .68em;
|
|
||||||
}*/
|
|
||||||
|
|
||||||
@media (min-width: 50em) {
|
|
||||||
|
|
||||||
.cardBox {
|
|
||||||
margin: .9em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.cardBox-withfocuscontent-large {
|
.cardBox-withfocuscontent-large {
|
||||||
margin: .4em;
|
margin: .4em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*.card-focuscontent {
|
|
||||||
border: .12em solid transparent;
|
|
||||||
}*/
|
|
||||||
|
|
||||||
.card-focuscontent-large {
|
.card-focuscontent-large {
|
||||||
border: .5em solid transparent;
|
border: .5em solid transparent;
|
||||||
}
|
}
|
||||||
|
@ -123,7 +110,6 @@ button {
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 50em) {
|
@media (max-width: 50em) {
|
||||||
|
|
||||||
.cardBox-bottompadded {
|
.cardBox-bottompadded {
|
||||||
margin-bottom: 1.2em !important;
|
margin-bottom: 1.2em !important;
|
||||||
}
|
}
|
||||||
|
@ -213,9 +199,9 @@ button {
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cardContent-button:not(.defaultCardBackground) {
|
.cardContent-button:not(.defaultCardBackground) {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
.visualCardBox .cardContent {
|
.visualCardBox .cardContent {
|
||||||
border-bottom-left-radius: 0;
|
border-bottom-left-radius: 0;
|
||||||
|
@ -371,9 +357,9 @@ button {
|
||||||
justify-content: center;*/
|
justify-content: center;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
.textActionButton:hover {
|
.textActionButton:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cardImageIcon {
|
.cardImageIcon {
|
||||||
font-size: 5em;
|
font-size: 5em;
|
||||||
|
@ -797,4 +783,4 @@ button {
|
||||||
.cardOverlayFab-primary:hover {
|
.cardOverlayFab-primary:hover {
|
||||||
transform: scale(1.4, 1.4);
|
transform: scale(1.4, 1.4);
|
||||||
transition: 0.2s;
|
transition: 0.2s;
|
||||||
}
|
}
|
|
@ -414,12 +414,8 @@ define(['connectionManager', 'cardBuilder', 'appSettings', 'dom', 'apphost', 'la
|
||||||
var scrollX = !layoutManager.desktop;
|
var scrollX = !layoutManager.desktop;
|
||||||
|
|
||||||
if (userViews.length) {
|
if (userViews.length) {
|
||||||
|
|
||||||
html += '<div class="verticalSection">';
|
html += '<div class="verticalSection">';
|
||||||
|
|
||||||
html += '<div class="sectionTitleContainer sectionTitleContainer-cards">';
|
|
||||||
html += '<h2 class="sectionTitle sectionTitle-cards padded-left">' + globalize.translate('HeaderMyMedia') + '</h2>';
|
html += '<h2 class="sectionTitle sectionTitle-cards padded-left">' + globalize.translate('HeaderMyMedia') + '</h2>';
|
||||||
html += '</div>';
|
|
||||||
|
|
||||||
if (scrollX) {
|
if (scrollX) {
|
||||||
html += '<div is="emby-scroller" class="padded-top-focusscale padded-bottom-focusscale" data-mousewheel="false" data-centerfocus="true"><div is="emby-itemscontainer" class="scrollSlider focuscontainer-x padded-left padded-right">';
|
html += '<div is="emby-scroller" class="padded-top-focusscale padded-bottom-focusscale" data-mousewheel="false" data-centerfocus="true"><div is="emby-itemscontainer" class="scrollSlider focuscontainer-x padded-left padded-right">';
|
||||||
|
|
|
@ -887,10 +887,6 @@
|
||||||
margin-bottom: 2.7em
|
margin-bottom: 2.7em
|
||||||
}
|
}
|
||||||
|
|
||||||
.sectionTitleContainer {
|
|
||||||
margin: 1.25em 0
|
|
||||||
}
|
|
||||||
|
|
||||||
.sectionTitleButton,
|
.sectionTitleButton,
|
||||||
.sectionTitleIconButton {
|
.sectionTitleIconButton {
|
||||||
margin-right: 0 !important;
|
margin-right: 0 !important;
|
||||||
|
@ -898,30 +894,22 @@
|
||||||
vertical-align: middle
|
vertical-align: middle
|
||||||
}
|
}
|
||||||
|
|
||||||
.sectionTitleContainer-cards {
|
.sectionTitleContainer {
|
||||||
margin-bottom: .1em
|
margin: 1.25em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sectionTitle {
|
.sectionTitleContainer > .sectionTitle {
|
||||||
margin-bottom: 1em
|
margin: 0;
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionTitleContainer-cards {
|
||||||
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sectionTitle-cards {
|
.sectionTitle-cards {
|
||||||
margin-left: .28em;
|
|
||||||
margin-bottom: 0
|
|
||||||
}
|
|
||||||
|
|
||||||
@media all and (min-width:50em) {
|
|
||||||
.sectionTitle-cards {
|
|
||||||
margin-left: .55em
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.sectionTitleContainer>.sectionTitle {
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
display: inline-block;
|
|
||||||
vertical-align: middle
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sectionTitleButton {
|
.sectionTitleButton {
|
||||||
|
@ -930,7 +918,7 @@
|
||||||
flex-shrink: 0
|
flex-shrink: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
.sectionTitleButton+.sectionTitleButton {
|
.sectionTitleButton + .sectionTitleButton {
|
||||||
margin-left: .5em !important
|
margin-left: .5em !important
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.osdHeader {
|
.osdHeader {
|
||||||
padding-bottom: 3vh;
|
|
||||||
-webkit-transition: opacity .3s ease-out;
|
-webkit-transition: opacity .3s ease-out;
|
||||||
-o-transition: opacity .3s ease-out;
|
-o-transition: opacity .3s ease-out;
|
||||||
transition: opacity .3s ease-out;
|
transition: opacity .3s ease-out;
|
||||||
|
|
|
@ -32,8 +32,8 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="dashboardSection" style="padding-left: 0;">
|
<div class="dashboardSection" style="padding-left: 0;">
|
||||||
<a is="emby-linkbutton" href="devices.html" style="margin-left:.8em!important;" class="button-flat sectionTitleTextButton">
|
<a is="emby-linkbutton" href="devices.html" class="button-flat sectionTitleTextButton">
|
||||||
<h3 style="margin:0;">${HeaderActiveDevices}</h3>
|
<h3>${HeaderActiveDevices}</h3>
|
||||||
<i class="md-icon"></i>
|
<i class="md-icon"></i>
|
||||||
</a>
|
</a>
|
||||||
<div class="activeDevices itemsContainer vertical-wrap">
|
<div class="activeDevices itemsContainer vertical-wrap">
|
||||||
|
|
|
@ -281,7 +281,7 @@ define(["dom", "layoutManager", "inputManager", "connectionManager", "events", "
|
||||||
pageIds: ["userProfilesPage", "newUserPage", "editUserPage", "userLibraryAccessPage", "userParentalControlPage", "userPasswordPage"],
|
pageIds: ["userProfilesPage", "newUserPage", "editUserPage", "userLibraryAccessPage", "userParentalControlPage", "userPasswordPage"],
|
||||||
icon: "people"
|
icon: "people"
|
||||||
}, {
|
}, {
|
||||||
name: globalize.translate("TabLibrary"),
|
name: globalize.translate("HeaderLibraries"),
|
||||||
href: "library.html",
|
href: "library.html",
|
||||||
pageIds: ["mediaLibraryPage", "librarySettingsPage", "libraryDisplayPage", "metadataImagesConfigurationPage", "metadataNfoPage"],
|
pageIds: ["mediaLibraryPage", "librarySettingsPage", "libraryDisplayPage", "metadataImagesConfigurationPage", "metadataNfoPage"],
|
||||||
icon: "folder"
|
icon: "folder"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<div id="selectServerPage" data-role="page" class="page noSecondaryNavPage standalonePage pageContainer fullWidth vertical flex flex-direction-column">
|
<div id="selectServerPage" data-role="page" class="page noSecondaryNavPage standalonePage pageContainer fullWidth vertical flex flex-direction-column">
|
||||||
<div class="verticalSection flex-shrink-zero flex flex-direction-column" style="margin: 2em 0 1em;">
|
<div class="verticalSection flex-shrink-zero flex flex-direction-column" style="margin: 2em 0 1em;">
|
||||||
<div class="padded-left padded-right flex align-items-center justify-content-center" style="margin-bottom:2em;">
|
<div class="padded-left padded-right flex align-items-center justify-content-center" style="margin-bottom:2em;">
|
||||||
<h1 class="sectionTitle sectionTitle-cards" style="margin:0;">${HeaderSelectServer}</h1>
|
<h1 class="sectionTitle sectionTitle-cards">${HeaderSelectServer}</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="padded-top padded-bottom-focusscale flex-grow flex" data-mousewheel="false" data-horizontal="true" data-centerfocus="card">
|
<div class="padded-top padded-bottom-focusscale flex-grow flex" data-mousewheel="false" data-horizontal="true" data-centerfocus="card">
|
||||||
<div is="emby-itemscontainer" class="scrollSlider focuscontainer-x padded-left padded-right servers flex-grow" style="display: block; text-align: center;" data-hovermenu="false" data-multiselect="false"></div>
|
<div is="emby-itemscontainer" class="scrollSlider focuscontainer-x padded-left padded-right servers flex-grow" style="display: block; text-align: center;" data-hovermenu="false" data-multiselect="false"></div>
|
||||||
|
@ -12,4 +12,4 @@
|
||||||
<span>${ButtonAddServer}</span>
|
<span>${ButtonAddServer}</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -4,22 +4,17 @@
|
||||||
<div class="content-primary">
|
<div class="content-primary">
|
||||||
<div class="verticalSection verticalSection-extrabottompadding">
|
<div class="verticalSection verticalSection-extrabottompadding">
|
||||||
<div class="sectionTitleContainer sectionTitleContainer-cards">
|
<div class="sectionTitleContainer sectionTitleContainer-cards">
|
||||||
<h2 class="sectionTitle sectionTitle-cards">
|
<h2 class="sectionTitle sectionTitle-cards">${HeaderUsers}</h2>
|
||||||
<span>${HeaderUsers}</span>
|
|
||||||
</h2>
|
|
||||||
<button is="emby-button" type="button" class="fab btnAddUser submit sectionTitleButton" style="margin-left:1em;" title="${ButtonAddUser}">
|
<button is="emby-button" type="button" class="fab btnAddUser submit sectionTitleButton" style="margin-left:1em;" title="${ButtonAddUser}">
|
||||||
<i class="md-icon"></i>
|
<i class="md-icon"></i>
|
||||||
</button>
|
</button>
|
||||||
<a style="margin-left:2em!important;" is="emby-linkbutton" class="raised button-alt headerHelpButton" target="_blank" href="https://jellyfin.readthedocs.io/en/latest/server/users/">${Help}</a>
|
<a style="margin-left:2em!important;" is="emby-linkbutton" class="raised button-alt headerHelpButton" target="_blank" href="https://jellyfin.readthedocs.io/en/latest/server/users/">${Help}</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="localUsers itemsContainer vertical-wrap" style="margin-top: .5em;"></div>
|
<div class="localUsers itemsContainer vertical-wrap"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="sectionPendingGuests verticalSection hide">
|
<div class="sectionPendingGuests verticalSection hide">
|
||||||
<div class="sectionTitleContainer">
|
<div class="sectionTitleContainer">
|
||||||
<h2 class="sectionTitle">
|
<h2 class="sectionTitle">${HeaderPendingInvitations}</h2>
|
||||||
${HeaderPendingInvitations}
|
|
||||||
</h2>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="itemsContainer vertical-wrap pending" style="margin-top:.5em;"></div>
|
<div class="itemsContainer vertical-wrap pending" style="margin-top:.5em;"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue