Remove scss directives from restyled css

This commit is contained in:
Matthew Strasiotto
2022-08-14 13:13:06 +10:00
committed by Matthew Strasitoto
parent 7e5738c65f
commit bd60d7e32c
+200 -230
View File
@@ -3,400 +3,370 @@ Emby Button
*/ */
.emby-button { .emby-button {
position: relative; position: relative;
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
box-sizing: border-box; box-sizing: border-box;
margin: 0.3em; margin: 0.3em;
text-align: center; text-align: center;
font-size: inherit; font-size: inherit;
font-family: inherit; font-family: inherit;
color: inherit; color: inherit;
/* These are getting an outline in opera tv browsers, which run chrome 30 */ /* These are getting an outline in opera tv browsers, which run chrome 30 */
outline: none !important; outline: none !important;
outline-width: 0; outline-width: 0;
-moz-user-select: none; -moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
-webkit-user-select: none; -webkit-user-select: none;
user-select: none; user-select: none;
cursor: pointer; cursor: pointer;
z-index: 0; z-index: 0;
padding: 0.9em 1em; padding: 0.9em 1em;
vertical-align: middle; vertical-align: middle;
border: 0; border: 0;
border-radius: 0.2em; border-radius: 0.2em;
font-weight: 600; font-weight: 600;
/* Disable webkit tap highlighting */ /* Disable webkit tap highlighting */
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
text-decoration: none; text-decoration: none;
/* Not crazy about this but it normalizes heights between anchors and buttons */ /* Not crazy about this but it normalizes heights between anchors and buttons */
line-height: 1.35; line-height: 1.35;
transform-origin: center; transform-origin: center;
transition: 0.2s; transition: 0.2s;
} }
.emby-button.show-focus:focus { .emby-button.show-focus:focus {
transform: scale(1.2); transform: scale(1.2);
z-index: 1; z-index: 1;
} }
.emby-button::-moz-focus-inner { .emby-button::-moz-focus-inner {
border: 0; border: 0;
} }
.button-flat { .button-flat {
background: transparent; background: transparent;
} }
.button-link { .button-link {
background: transparent; background: transparent;
cursor: pointer; cursor: pointer;
margin: 0; margin: 0;
padding: 0; padding: 0;
vertical-align: initial; vertical-align: initial;
} }
.button-link:hover { .button-link:hover {
text-decoration: underline; text-decoration: underline;
} }
.emby-button > .material-icons { .emby-button > .material-icons {
/* For non-fab buttons that have icons */ /* For non-fab buttons that have icons */
font-size: 1.36em; font-size: 1.36em;
} }
.button-link > .material-icons { .button-link > .material-icons {
font-size: 1em; font-size: 1em;
} }
.fab { .fab {
display: inline-flex; display: inline-flex;
border-radius: 50%; border-radius: 50%;
padding: 0.6em; padding: 0.6em;
box-sizing: border-box; box-sizing: border-box;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
text-align: center; text-align: center;
} }
.emby-button.block { .emby-button.block {
display: block; display: block;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
margin: 0.25em 0; margin: 0.25em 0;
width: 100%; width: 100%;
} }
.paper-icon-button-light { .paper-icon-button-light {
position: relative; position: relative;
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
box-sizing: border-box; box-sizing: border-box;
margin: 0 0.29em; margin: 0 0.29em;
background: transparent; background: transparent;
text-align: center; text-align: center;
font-size: inherit; font-size: inherit;
font-family: inherit; font-family: inherit;
color: inherit; color: inherit;
-moz-user-select: none; -moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
-webkit-user-select: none; -webkit-user-select: none;
user-select: none; user-select: none;
cursor: pointer; cursor: pointer;
z-index: 0; z-index: 0;
min-width: initial; min-width: initial;
min-height: initial; min-height: initial;
width: auto; width: auto;
height: auto; height: auto;
padding: 0.556em; padding: 0.556em;
vertical-align: middle; vertical-align: middle;
border: 0; border: 0;
/* These are getting an outline in opera tv browsers, which run chrome 30 */ /* These are getting an outline in opera tv browsers, which run chrome 30 */
outline: none !important; outline: none !important;
overflow: hidden; overflow: hidden;
border-radius: 50%; border-radius: 50%;
/* Disable webkit tap highlighting */ /* Disable webkit tap highlighting */
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
justify-content: center; justify-content: center;
transform-origin: center; transform-origin: center;
transition: 0.2s; transition: 0.2s;
} }
.paper-icon-button-light.show-focus:focus { .paper-icon-button-light.show-focus:focus {
transform: scale(1.3); transform: scale(1.3);
z-index: 1; z-index: 1;
} }
.paper-icon-button-light::-moz-focus-inner { .paper-icon-button-light::-moz-focus-inner {
border: 0; border: 0;
} }
.paper-icon-button-light:disabled { .paper-icon-button-light:disabled {
opacity: 0.3; opacity: 0.3;
cursor: default; cursor: default;
} }
.paper-icon-button-light > .material-icons { .paper-icon-button-light > .material-icons {
font-size: 1.66956521739130434em; font-size: 1.66956521739130434em;
/* Make sure its on top of the ripple */ /* Make sure its on top of the ripple */
position: relative; position: relative;
z-index: 1; z-index: 1;
vertical-align: middle; vertical-align: middle;
} }
.paper-icon-button-light > div { .paper-icon-button-light > div {
max-height: 100%; max-height: 100%;
transform: scale(1.8); transform: scale(1.8);
position: relative; position: relative;
z-index: 1; z-index: 1;
vertical-align: middle; vertical-align: middle;
display: inline; display: inline;
margin: 0 auto; margin: 0 auto;
} }
.emby-button-foreground { .emby-button-foreground {
position: relative; position: relative;
z-index: 1; z-index: 1;
} }
.btnFilterWithBubble { .btnFilterWithBubble {
position: relative; position: relative;
} }
.filterButtonBubble { .filterButtonBubble {
color: #fff; color: #fff;
position: absolute; position: absolute;
top: 0; top: 0;
right: 0; right: 0;
width: 1.6em; width: 1.6em;
height: 1.6em; height: 1.6em;
z-index: 100000000; z-index: 100000000;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-size: 82%; font-size: 82%;
border-radius: 100em; border-radius: 100em;
box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.2); box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12),
background: #03a9f4; 0 2px 4px -1px rgba(0, 0, 0, 0.2);
font-weight: bold; background: #03a9f4;
font-weight: bold;
} }
/* fonts.scss */ /* fonts.scss */
@import "../../styles/noto-sans/index.scss";
@mixin font($weight: null, $size: null) {
font-weight: $weight;
font-size: $size;
}
html { html {
@include font($size: 93%); font-family: "Noto Sans", "Noto Sans HK", "Noto Sans JP", "Noto Sans KR",
font-family: "Noto Sans", "Noto Sans HK", "Noto Sans JP", "Noto Sans KR", "Noto Sans SC", "Noto Sans TC", sans-serif; "Noto Sans SC", "Noto Sans TC", sans-serif;
text-size-adjust: 100%; text-size-adjust: 100%;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
} }
html[lang|="ja"] { html[lang|="ja"] {
font-family: "Noto Sans", "Noto Sans JP", "Noto Sans HK", "Noto Sans KR", "Noto Sans SC", "Noto Sans TC", sans-serif; font-family: "Noto Sans", "Noto Sans JP", "Noto Sans HK", "Noto Sans KR",
"Noto Sans SC", "Noto Sans TC", sans-serif;
} }
html[lang|="ko"] { html[lang|="ko"] {
font-family: "Noto Sans", "Noto Sans KR", "Noto Sans HK", "Noto Sans JP", "Noto Sans SC", "Noto Sans TC", sans-serif; font-family: "Noto Sans", "Noto Sans KR", "Noto Sans HK", "Noto Sans JP",
"Noto Sans SC", "Noto Sans TC", sans-serif;
} }
html[lang|="zh-CN"] { html[lang|="zh-CN"] {
font-family: "Noto Sans", "Noto Sans SC", "Noto Sans HK", "Noto Sans JP", "Noto Sans KR", "Noto Sans TC", sans-serif; font-family: "Noto Sans", "Noto Sans SC", "Noto Sans HK", "Noto Sans JP",
"Noto Sans KR", "Noto Sans TC", sans-serif;
} }
html[lang|="zh-TW"] { html[lang|="zh-TW"] {
font-family: "Noto Sans", "Noto Sans TC", "Noto Sans HK", "Noto Sans JP", "Noto Sans KR", "Noto Sans SC", sans-serif; font-family: "Noto Sans", "Noto Sans TC", "Noto Sans HK", "Noto Sans JP",
"Noto Sans KR", "Noto Sans SC", sans-serif;
} }
html[lang|="zh-HK"] { html[lang|="zh-HK"] {
font-family: "Noto Sans", "Noto Sans HK", "Noto Sans JP", "Noto Sans KR", "Noto Sans SC", "Noto Sans TC", sans-serif; font-family: "Noto Sans", "Noto Sans HK", "Noto Sans JP", "Noto Sans KR",
} "Noto Sans SC", "Noto Sans TC", sans-serif;
h1 {
@include font(400, 1.8em);
}
h2 {
@include font(400, 1.5em);
}
h3 {
@include font(400, 1.17em);
} }
.layout-tv { .layout-tv {
/* Per WebOS and Tizen guidelines, fonts must be 20px minimum. /* Per WebOS and Tizen guidelines, fonts must be 20px minimum.
This takes the 16px baseline and multiplies it by 1.25 to get 20px. */ This takes the 16px baseline and multiplies it by 1.25 to get 20px. */
font-size: 125%; font-size: 125%;
} }
.layout-mobile { .layout-mobile {
font-size: 90%; font-size: 90%;
} }
/* site.scss */ /* site.scss */
@mixin fullpage {
margin: 0;
padding: 0;
height: 100%;
}
html { html {
@include fullpage; line-height: 1.35;
line-height: 1.35;
} }
body { body {
@include fullpage; overflow-x: hidden;
overflow-x: hidden; background-color: transparent !important;
background-color: transparent !important; -webkit-font-smoothing: antialiased;
-webkit-font-smoothing: antialiased;
} }
.clipForScreenReader { .clipForScreenReader {
clip: rect(1px, 1px, 1px, 1px); clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%); clip-path: inset(50%);
height: 1px; height: 1px;
width: 1px; width: 1px;
margin: -1px; margin: -1px;
overflow: hidden; overflow: hidden;
padding: 0; padding: 0;
position: absolute; position: absolute;
} }
.material-icons { .material-icons {
/* Fix font ligatures on older WebOS versions */ /* Fix font ligatures on older WebOS versions */
font-feature-settings: "liga"; font-feature-settings: "liga";
} }
.backgroundContainer { .backgroundContainer {
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
contain: strict; contain: strict;
} }
.layout-mobile, .layout-mobile,
.layout-tv { .layout-tv {
-webkit-touch-callout: none; -webkit-touch-callout: none;
user-select: none; user-select: none;
} }
.mainAnimatedPage { .mainAnimatedPage {
contain: style size !important; contain: style size !important;
} }
.pageContainer { .pageContainer {
overflow-x: visible !important; overflow-x: visible !important;
} }
.bodyWithPopupOpen { .bodyWithPopupOpen {
overflow-y: hidden !important; overflow-y: hidden !important;
} }
div[data-role="page"] { div[data-role="page"] {
outline: 0; outline: 0;
} }
.pageTitle { .pageTitle {
margin-top: 0; margin-top: 0;
font-family: inherit; font-family: inherit;
} }
.fieldDescription { .fieldDescription {
padding-left: 0.15em; padding-left: 0.15em;
font-weight: 400; font-weight: 400;
white-space: normal !important; white-space: normal !important;
}
+ .fieldDescription { .fieldDescription + .fieldDescription {
margin-top: 0.3em; margin-top: 0.3em;
}
} }
.content-primary, .content-primary,
.padded-bottom-page, .padded-bottom-page,
.page, .page,
.pageWithAbsoluteTabs .pageTabContent { .pageWithAbsoluteTabs .pageTabContent {
/* provides room for the music controls */ /* provides room for the music controls */
padding-bottom: 5em !important; padding-bottom: 5em !important;
} }
.readOnlyContent { .readOnlyContent {
@media all and (min-width: 50em) { @media all and (min-width: 50em) {
max-width: 54em; max-width: 54em;
} }
} }
form { form {
@media all and (min-width: 50em) { @media all and (min-width: 50em) {
max-width: 54em; max-width: 54em;
} }
} }
.headerHelpButton { .headerHelpButton {
margin-left: 1.25em !important; margin-left: 1.25em !important;
padding-bottom: 0.4em !important; padding-bottom: 0.4em !important;
padding-top: 0.4em !important; padding-top: 0.4em !important;
} }
.mediaInfoContent { .mediaInfoContent {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
width: 85%; width: 85%;
} }
.headroom { .headroom {
will-change: transform; will-change: transform;
transition: transform 200ms linear; transition: transform 200ms linear;
&--pinned {
transform: translateY(0%);
}
&--unpinned {
transform: translateY(-100%);
}
} }
.drawerContent { .drawerContent {
/* make sure the bottom of the drawer is visible when music is playing */ /* make sure the bottom of the drawer is visible when music is playing */
padding-bottom: 4em; padding-bottom: 4em;
} }
.force-scroll { .force-scroll {
overflow-y: scroll; overflow-y: scroll;
} }
.hide-scroll { .hide-scroll {
overflow-y: hidden; overflow-y: hidden;
} }
.w-100 { .w-100 {
width: 100%; width: 100%;
} }
.margin-auto-x { .margin-auto-x {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
} }
.margin-auto-y { .margin-auto-y {
margin-top: auto; margin-top: auto;
margin-bottom: auto; margin-bottom: auto;
} }