1
0
Fork 0

Clean up spicetify folder

This commit is contained in:
Florian RICHER 2022-05-09 01:02:49 +02:00
parent 4bcc1690d9
commit befab520ee
524 changed files with 0 additions and 370144 deletions

View file

@ -1,28 +0,0 @@
// Entire modal container
#marketplace-add-snippet-container {
display: flex;
flex-direction: column;
gap: 16px;
input, textarea {
width: 100%;
margin-bottom: 10px;
padding: 3px 5px;
background-color: var(--spice-main);
color: var(--spice-text);
font-size: 14px;
border: 1px solid var(--spice-button);
border-radius: 4px;
}
}
// Container for label + input
.marketplace-customCSS-input-container {
display: flex;
flex-direction: column;
}
// Submit button
#marketplace-customCSS-submit {
margin-left: auto;
}

View file

@ -1,150 +0,0 @@
// e.g. "Extensions" heading
.marketplace-card-type-heading {
margin: 1em 0 0.5em;
color: var(--spice-subtext);
font-size: 1.3em;
}
.marketplace-grid {
.main-card-draggable {
display: flex;
flex-direction: column;
.main-card-cardMetadata {
flex-grow: 1;
display: flex;
flex-direction: column;
.marketplace-card__author {
// Add comma before authors that have a sibling
& ~ .marketplace-card__author {
&::before {
content: ", ";
}
}
}
ul.marketplace-card__tags {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
li.marketplace-card__tag {
background-color: var(--spice-tab-active);
border-radius: 4px;
padding: 0px 9px 2px;
&[data-tag='external JS'] {
background-color: hsl(0deg 70% 54%);
color: #fff;
}
&[data-tag='dark'] {
background-color: #000;
color: #fff;
}
&[data-tag='light'] {
background-color: #fff;
color: #333;
}
}
.marketplace-card__tags-more-btn {
background-color: var(--spice-tab-active);
border-radius: 4px;
padding: 0px 9px 2px;
margin-top: 8px;
border: none;
&:hover, &:focus {
filter: brightness(1.4);
}
}
.marketplace-card-desc {
font: -webkit-small-control;
margin: 12px 0;
display: -webkit-box;
overflow: hidden;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
}
.marketplace-card__bottom-meta {
margin-top: auto;
margin-bottom: 0;
// Add space between multiple blurbs
& + .marketplace-card__bottom-meta {
margin-top: 8px;
}
}
}
}
&[data-tab='Installed'] {
&:empty::after {
content: 'No installed extensions';
display: block;
}
}
}
// Card preview image error placeholder
.main-cardImage-imageWrapper--error::before {
content: '';
display: block;
position: absolute;
overflow: hidden;
top: 0;
left: 0;
bottom: 0;
right: 0;
height: 100%;
width: 100%;
background-color: var(--spice-subtext);
filter: brightness(50%);
/* https://developer.mozilla.org/en-US/docs/Web/CSS/clip-path */
/* https://icons8.com/icons/set/box */
clip-path: path('M41.20833,21.5c-2.54758,0.00136 -4.90298,1.35492 -6.18685,3.55534l-12.54167,21.5c-0.64062,1.09578 -0.97875,2.34203 -0.97982,3.61133v86c0,7.83362 6.49972,14.33333 14.33333,14.33333h100.33333c7.83362,0 14.33333,-6.49972 14.33333,-14.33333v-86c-0.00107,-1.2693 -0.3392,-2.51555 -0.97982,-3.61133l-12.54167,-21.5c-1.28387,-2.20042 -3.63926,-3.55398 -6.18685,-3.55534zM45.32357,35.83333h81.35286l8.35645,14.33333h-98.06576zM35.83333,64.5h100.33333v71.66667h-100.33333zM64.5,78.83333v14.33333h43v-14.33333z');
clip-rule: nonzero;
transform: scale(0.5);
}
.main-cardImage-imageWrapper--error {
box-shadow: none;
}
.main-card-card:hover .main-cardImage-imageWrapper--error::before {
filter: brightness(100%);
}
.marketplace-cardSubHeader,
.marketplace-card__bottom-meta {
margin-top: 4px;
white-space: normal;
color: var(--spice-subtext);
}
// author, stars, etc.
.marketplace-cardSubHeader {
display: flex;
flex-direction: column;
gap: 8px;
}
.marketplace-card--snippet {
// Hide image preview for CSS snippets
.main-card-imageContainer { display: none; }
}
.marketplace-card--installed {
flex: 0 !important;
-webkit-box-flex: 0 !important;
border: 1px solid var(--spice-button);
}

View file

@ -1,8 +0,0 @@
/*
TODO: can we get this added to the default Spicetify stylesheet?
It should fix broken extension modals
*/
.GenericModal {
background-color: var(--spice-player);
}

View file

@ -1,149 +0,0 @@
.marketplace-header {
-webkit-box-pack: justify;
-webkit-box-align: center;
align-content: space-between;
align-items: center;
color: var(--spice-text);
display: flex;
justify-content: space-between;
margin: 16px 0;
// To position the settings button + colour schemes
position: sticky;
flex-direction: row-reverse;
top: 80px;
z-index: 1;
h1 {
position: fixed;
left: 16px;
@media (min-width: 1024px) {
left: 32px;
}
}
}
.marketplace-header__right {
display: flex;
}
.marketplace-sort-bar {
align-items: center;
display: flex;
}
.marketplace-sort-container {
position: relative;
display: flex;
}
.marketplace-tabBar-headerItem {
-webkit-app-region: no-drag;
display: inline-block;
pointer-events: auto;
}
.marketplace-tabBar-active {
background-color: var(--spice-tab-active);
border-radius: 4px;
}
.marketplace-tabBar-headerItemLink {
border-radius: 4px;
color: var(--spice-text);
display: inline-block;
margin: 0 8px 0 0;
padding: 8px 16px;
position: relative;
text-decoration: none !important;
cursor: pointer;
}
.marketplace-tabBar-nav {
-webkit-app-region: drag;
pointer-events: none;
width: 100%;
}
.marketplace-tabBar-headerItem .optionsMenu-dropBox {
color: var(--spice-text);
border: 0;
max-width: 150px;
height: 42px;
padding: 0 30px 0 12px;
background-color: initial;
cursor: pointer;
appearance: none;
}
.marketplace-tabBar-headerItem .optionsMenu-dropBox svg {
position: absolute;
margin-left: 8px;
}
.marketplace-settings-button {
border-radius: 4px;
color: var(--spice-text);
display: inline-block;
padding: 10px 14px 6px;
margin-left: 8px;
position: relative;
text-decoration: none !important;
cursor: pointer;
background-color: transparent;
border: none;
background-color: var(--spice-sidebar);
&:hover {
background-color: var(--spice-tab-active);
}
}
// Search bar
.searchbar--bar__wrapper {
display: flex;
flex-direction: column;
align-items: flex-end;
flex-grow: 1;
}
.searchbar-bar {
border: unset;
background-color: var(--spice-sidebar) !important;
border-radius: 5px !important;
padding-left: 10px;
padding-right: 10px;
color: var(--spice-text) !important;
z-index: 1000;
}
.marketplace-sort-container {
// The dropdown menus (sort by)
.optionsMenu-dropBox {
grid-gap: 8px;
align-items: center;
background-color: var(--spice-sidebar);
border-radius: 4px;
display: grid;
grid-template-columns: 1fr 16px;
color: rgba(var(--spice-rgb-text), .7);
border: 0;
height: 32px;
margin-left: 8px;
padding: 0 8px 0 12px;
&:hover {
color: var(--spice-text);
}
}
}
option {
background-color: var(--spice-button);
}
// "Add CSS" button
.marketplace-add-snippet-btn {
position: fixed;
bottom: 32px;
right: 32px;
}

View file

@ -1,971 +0,0 @@
/* Readme pages */
// TODO: This is just copy-pasted water.css (https://watercss.kognise.dev/)
// We probably want to customize and make it use the spicetify colours if possible
// I put custom fixes at the bottom of the file
// TODO: I wanted to get it to just @import the external URL and customize the colours,
// but I'm not sure how to get that working yet
// See here? https://www.npmjs.com/package/postcss-import-url
// @import url(https://cdn.jsdelivr.net/npm/water.css@2/out/water.css);
// (This is just for reference)
.spicetify-root-vars {
--spice-shadow: #1f1525;
--spice-text: #ffffff;
--spice-sidebar: #0a0e14;
--spice-button-disabled: #535353;
--spice-main: #0a0e14;
--spice-misc: #bfbfbf;
--spice-selected-row: #909090;
--spice-subtext: #f0f0f0;
--spice-tab-active: #795b84;
--spice-button: #6f3c89;
--spice-notification: #6f3c89;
--spice-player: #0a0e14;
--spice-notification-error: #e22134;
--spice-card: #6f3c89;
--spice-button-active: #795b84;
}
:root {
// --background-body: #202b38;
--background-body: var(--spice-main);
// TODO: what do i use for this? nothing seems suitable
// --background: #161f27;
// --background: rgba(var(--spice-main), 0.5);
// --background: var(--spice-shadow);
--background: var(--spice-main);
// TODO: idk if this is a good colour choice
// --background-alt: #1a242f;
--background-alt: var(--spice-shadow);
--selection: #1c76c5;
// --text-main: #dbdbdb;
--text-main: var(--spice-subtext);
// --text-bright: #fff;
--text-bright: var(--spice-text);
--text-muted: #a9b1ba;
--links: #41adff;
--focus: #0096bfab;
--border: #526980;
--code: #ffbe85;
--animation-duration: 0.1s;
--button-base: #0c151c;
--button-hover: #040a0f;
--scrollbar-thumb: var(--button-hover);
--scrollbar-thumb-hover: rgb(0, 0, 0);
--form-placeholder: #a9a9a9;
--form-text: #fff;
--variable: #d941e2;
--highlight: #efdb43;
--select-arrow: url("data:image/svg+xml;charset=utf-8,%3C?xml version='1.0' encoding='utf-8'?%3E %3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' height='62.5' width='116.9' fill='%23efefef'%3E %3Cpath d='M115.3,1.6 C113.7,0 111.1,0 109.5,1.6 L58.5,52.7 L7.4,1.6 C5.8,0 3.2,0 1.6,1.6 C0,3.2 0,5.8 1.6,7.4 L55.5,61.3 C56.3,62.1 57.3,62.5 58.4,62.5 C59.4,62.5 60.5,62.1 61.3,61.3 L115.2,7.4 C116.9,5.8 116.9,3.2 115.3,1.6Z'/%3E %3C/svg%3E");
}
#marketplace-readme {
// Allow selecting text
user-select: text;
/*
* Forced dark theme version
*/
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',
'Helvetica Neue', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji',
sans-serif;
line-height: 1.4;
max-width: 800px;
margin: 20px auto;
padding: 0 10px;
word-wrap: break-word;
color: #dbdbdb;
color: var(--text-main);
background: #202b38;
background: var(--background-body);
text-rendering: optimizeLegibility;
button {
transition: background-color 0.1s linear, border-color 0.1s linear,
color 0.1s linear, box-shadow 0.1s linear, transform 0.1s ease;
transition: background-color var(--animation-duration) linear,
border-color var(--animation-duration) linear,
color var(--animation-duration) linear,
box-shadow var(--animation-duration) linear,
transform var(--animation-duration) ease;
}
input {
transition: background-color 0.1s linear, border-color 0.1s linear,
color 0.1s linear, box-shadow 0.1s linear, transform 0.1s ease;
transition: background-color var(--animation-duration) linear,
border-color var(--animation-duration) linear,
color var(--animation-duration) linear,
box-shadow var(--animation-duration) linear,
transform var(--animation-duration) ease;
}
textarea {
transition: background-color 0.1s linear, border-color 0.1s linear,
color 0.1s linear, box-shadow 0.1s linear, transform 0.1s ease;
transition: background-color var(--animation-duration) linear,
border-color var(--animation-duration) linear,
color var(--animation-duration) linear,
box-shadow var(--animation-duration) linear,
transform var(--animation-duration) ease;
}
h1 {
font-size: 2.2em;
margin-top: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin-bottom: 12px;
margin-top: 24px;
}
h1 {
color: #fff;
color: var(--text-bright);
}
h2 {
color: #fff;
color: var(--text-bright);
}
h3 {
color: #fff;
color: var(--text-bright);
}
h4 {
color: #fff;
color: var(--text-bright);
}
h5 {
color: #fff;
color: var(--text-bright);
}
h6 {
color: #fff;
color: var(--text-bright);
}
strong {
color: #fff;
color: var(--text-bright);
}
h1,
h2,
h3,
h4,
h5,
h6,
b,
strong,
th {
font-weight: 600;
}
q::before {
content: none;
}
q::after {
content: none;
}
blockquote {
border-left: 4px solid #0096bfab;
border-left: 4px solid var(--focus);
margin: 1.5em 0;
padding: 0.5em 1em;
font-style: italic;
}
q {
border-left: 4px solid #0096bfab;
border-left: 4px solid var(--focus);
margin: 1.5em 0;
padding: 0.5em 1em;
font-style: italic;
}
blockquote > footer {
font-style: normal;
border: 0;
}
blockquote cite {
font-style: normal;
}
address {
font-style: normal;
}
a[href^='mailto\:']::before {
content: '📧 ';
}
a[href^='tel\:']::before {
content: '📞 ';
}
a[href^='sms\:']::before {
content: '💬 ';
}
mark {
background-color: #efdb43;
background-color: var(--highlight);
border-radius: 2px;
padding: 0 2px 0 2px;
color: #000;
}
a > code,
a > strong {
color: inherit;
}
button,
select,
input[type='submit'],
input[type='reset'],
input[type='button'],
input[type='checkbox'],
input[type='range'],
input[type='radio'] {
cursor: pointer;
}
input,
select {
display: block;
}
[type='checkbox'],
[type='radio'] {
display: initial;
}
input {
color: #fff;
color: var(--form-text);
background-color: #161f27;
background-color: var(--background);
font-family: inherit;
font-size: inherit;
margin-right: 6px;
margin-bottom: 6px;
padding: 10px;
border: none;
border-radius: 6px;
outline: none;
}
button {
color: #fff;
color: var(--form-text);
background-color: #161f27;
background-color: var(--background);
font-family: inherit;
font-size: inherit;
margin-right: 6px;
margin-bottom: 6px;
padding: 10px;
border: none;
border-radius: 6px;
outline: none;
}
textarea {
color: #fff;
color: var(--form-text);
background-color: #161f27;
background-color: var(--background);
font-family: inherit;
font-size: inherit;
margin-right: 6px;
margin-bottom: 6px;
padding: 10px;
border: none;
border-radius: 6px;
outline: none;
}
select {
color: #fff;
color: var(--form-text);
background-color: #161f27;
background-color: var(--background);
font-family: inherit;
font-size: inherit;
margin-right: 6px;
margin-bottom: 6px;
padding: 10px;
border: none;
border-radius: 6px;
outline: none;
}
button {
background-color: #0c151c;
background-color: var(--button-base);
padding-right: 30px;
padding-left: 30px;
}
input[type='submit'] {
background-color: #0c151c;
background-color: var(--button-base);
padding-right: 30px;
padding-left: 30px;
}
input[type='reset'] {
background-color: #0c151c;
background-color: var(--button-base);
padding-right: 30px;
padding-left: 30px;
}
input[type='button'] {
background-color: #0c151c;
background-color: var(--button-base);
padding-right: 30px;
padding-left: 30px;
}
button:hover {
background: #040a0f;
background: var(--button-hover);
}
input[type='submit']:hover {
background: #040a0f;
background: var(--button-hover);
}
input[type='reset']:hover {
background: #040a0f;
background: var(--button-hover);
}
input[type='button']:hover {
background: #040a0f;
background: var(--button-hover);
}
input[type='color'] {
min-height: 2rem;
padding: 8px;
cursor: pointer;
}
input[type='checkbox'],
input[type='radio'] {
height: 1em;
width: 1em;
}
input[type='radio'] {
border-radius: 100%;
}
input {
vertical-align: top;
}
label {
vertical-align: middle;
margin-bottom: 4px;
display: inline-block;
}
input:not([type='checkbox']):not([type='radio']),
input[type='range'],
select,
button,
textarea {
-webkit-appearance: none;
}
textarea {
display: block;
margin-right: 0;
box-sizing: border-box;
resize: vertical;
}
textarea:not([cols]) {
width: 100%;
}
textarea:not([rows]) {
min-height: 40px;
height: 140px;
}
select {
background: #161f27
url("data:image/svg+xml;charset=utf-8,%3C?xml version='1.0' encoding='utf-8'?%3E %3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' height='62.5' width='116.9' fill='%23efefef'%3E %3Cpath d='M115.3,1.6 C113.7,0 111.1,0 109.5,1.6 L58.5,52.7 L7.4,1.6 C5.8,0 3.2,0 1.6,1.6 C0,3.2 0,5.8 1.6,7.4 L55.5,61.3 C56.3,62.1 57.3,62.5 58.4,62.5 C59.4,62.5 60.5,62.1 61.3,61.3 L115.2,7.4 C116.9,5.8 116.9,3.2 115.3,1.6Z'/%3E %3C/svg%3E")
calc(100% - 12px) 50% / 12px no-repeat;
background: var(--background) var(--select-arrow) calc(100% - 12px) 50% /
12px no-repeat;
padding-right: 35px;
}
select::-ms-expand {
display: none;
}
select[multiple] {
padding-right: 10px;
background-image: none;
overflow-y: auto;
}
input:focus {
box-shadow: 0 0 0 2px #0096bfab;
box-shadow: 0 0 0 2px var(--focus);
}
select:focus {
box-shadow: 0 0 0 2px #0096bfab;
box-shadow: 0 0 0 2px var(--focus);
}
button:focus {
box-shadow: 0 0 0 2px #0096bfab;
box-shadow: 0 0 0 2px var(--focus);
}
textarea:focus {
box-shadow: 0 0 0 2px #0096bfab;
box-shadow: 0 0 0 2px var(--focus);
}
input[type='checkbox']:active,
input[type='radio']:active,
input[type='submit']:active,
input[type='reset']:active,
input[type='button']:active,
input[type='range']:active,
button:active {
transform: translateY(2px);
}
input:disabled,
select:disabled,
button:disabled,
textarea:disabled {
cursor: not-allowed;
opacity: 0.5;
}
::-moz-placeholder {
color: #a9a9a9;
color: var(--form-placeholder);
}
:-ms-input-placeholder {
color: #a9a9a9;
color: var(--form-placeholder);
}
::-ms-input-placeholder {
color: #a9a9a9;
color: var(--form-placeholder);
}
::placeholder {
color: #a9a9a9;
color: var(--form-placeholder);
}
fieldset {
border: 1px #0096bfab solid;
border: 1px var(--focus) solid;
border-radius: 6px;
margin: 0;
margin-bottom: 12px;
padding: 10px;
}
legend {
font-size: 0.9em;
font-weight: 600;
}
input[type='range'] {
margin: 10px 0;
padding: 10px 0;
background: transparent;
}
input[type='range']:focus {
outline: none;
}
input[type='range']::-webkit-slider-runnable-track {
width: 100%;
height: 9.5px;
-webkit-transition: 0.2s;
transition: 0.2s;
background: #161f27;
background: var(--background);
border-radius: 3px;
}
input[type='range']::-webkit-slider-thumb {
box-shadow: 0 1px 1px #000, 0 0 1px #0d0d0d;
height: 20px;
width: 20px;
border-radius: 50%;
background: #526980;
background: var(--border);
-webkit-appearance: none;
margin-top: -7px;
}
input[type='range']:focus::-webkit-slider-runnable-track {
background: #161f27;
background: var(--background);
}
input[type='range']::-moz-range-track {
width: 100%;
height: 9.5px;
-moz-transition: 0.2s;
transition: 0.2s;
background: #161f27;
background: var(--background);
border-radius: 3px;
}
input[type='range']::-moz-range-thumb {
box-shadow: 1px 1px 1px #000, 0 0 1px #0d0d0d;
height: 20px;
width: 20px;
border-radius: 50%;
background: #526980;
background: var(--border);
}
input[type='range']::-ms-track {
width: 100%;
height: 9.5px;
background: transparent;
border-color: transparent;
border-width: 16px 0;
color: transparent;
}
input[type='range']::-ms-fill-lower {
background: #161f27;
background: var(--background);
border: 0.2px solid #010101;
border-radius: 3px;
box-shadow: 1px 1px 1px #000, 0 0 1px #0d0d0d;
}
input[type='range']::-ms-fill-upper {
background: #161f27;
background: var(--background);
border: 0.2px solid #010101;
border-radius: 3px;
box-shadow: 1px 1px 1px #000, 0 0 1px #0d0d0d;
}
input[type='range']::-ms-thumb {
box-shadow: 1px 1px 1px #000, 0 0 1px #0d0d0d;
border: 1px solid #000;
height: 20px;
width: 20px;
border-radius: 50%;
background: #526980;
background: var(--border);
}
input[type='range']:focus::-ms-fill-lower {
background: #161f27;
background: var(--background);
}
input[type='range']:focus::-ms-fill-upper {
background: #161f27;
background: var(--background);
}
a {
text-decoration: none;
color: #41adff;
color: var(--links);
}
a:hover {
text-decoration: underline;
}
code {
background: #161f27;
background: var(--background);
color: #ffbe85;
color: var(--code);
padding: 2.5px 5px;
border-radius: 6px;
font-size: 1em;
}
samp {
background: #161f27;
background: var(--background);
color: #ffbe85;
color: var(--code);
padding: 2.5px 5px;
border-radius: 6px;
font-size: 1em;
}
time {
background: #161f27;
background: var(--background);
color: #ffbe85;
color: var(--code);
padding: 2.5px 5px;
border-radius: 6px;
font-size: 1em;
}
pre > code {
padding: 10px;
display: block;
overflow-x: auto;
}
var {
color: #d941e2;
color: var(--variable);
font-style: normal;
font-family: monospace;
}
kbd {
background: #161f27;
background: var(--background);
border: 1px solid #526980;
border: 1px solid var(--border);
border-radius: 2px;
color: #dbdbdb;
color: var(--text-main);
padding: 2px 4px 2px 4px;
}
img,
video {
max-width: 100%;
height: auto;
}
hr {
border: none;
border-top: 1px solid #526980;
border-top: 1px solid var(--border);
}
table {
border-collapse: collapse;
margin-bottom: 10px;
width: 100%;
table-layout: fixed;
}
table caption {
text-align: left;
}
td,
th {
padding: 6px;
text-align: left;
vertical-align: top;
word-wrap: break-word;
}
thead {
border-bottom: 1px solid #526980;
border-bottom: 1px solid var(--border);
}
tfoot {
border-top: 1px solid #526980;
border-top: 1px solid var(--border);
}
tbody tr:nth-child(even) {
background-color: #161f27;
background-color: var(--background);
}
tbody tr:nth-child(even) button {
background-color: #1a242f;
background-color: var(--background-alt);
}
tbody tr:nth-child(even) button:hover {
background-color: #202b38;
background-color: var(--background-body);
}
::-webkit-scrollbar {
height: 10px;
width: 10px;
}
::-webkit-scrollbar-track {
background: #161f27;
background: var(--background);
border-radius: 6px;
}
::-webkit-scrollbar-thumb {
background: #040a0f;
background: var(--scrollbar-thumb);
border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
background: rgb(0, 0, 0);
background: var(--scrollbar-thumb-hover);
}
::-moz-selection {
background-color: #1c76c5;
background-color: var(--selection);
color: #fff;
color: var(--text-bright);
}
::selection {
background-color: #1c76c5;
background-color: var(--selection);
color: #fff;
color: var(--text-bright);
}
details {
display: flex;
flex-direction: column;
align-items: flex-start;
background-color: #1a242f;
background-color: var(--background-alt);
padding: 10px 10px 0;
margin: 1em 0;
border-radius: 6px;
overflow: hidden;
}
details[open] {
padding: 10px;
}
details > :last-child {
margin-bottom: 0;
}
details[open] summary {
margin-bottom: 10px;
}
summary {
display: list-item;
background-color: #161f27;
background-color: var(--background);
padding: 10px;
margin: -10px -10px 0;
cursor: pointer;
outline: none;
}
summary:hover,
summary:focus {
text-decoration: underline;
}
details > :not(summary) {
margin-top: 0;
}
summary::-webkit-details-marker {
color: #dbdbdb;
color: var(--text-main);
}
dialog {
background-color: #1a242f;
background-color: var(--background-alt);
color: #dbdbdb;
color: var(--text-main);
border: none;
border-radius: 6px;
border-color: #526980;
border-color: var(--border);
padding: 10px 30px;
}
dialog > header:first-child {
background-color: #161f27;
background-color: var(--background);
border-radius: 6px 6px 0 0;
margin: -10px -30px 10px;
padding: 10px;
text-align: center;
}
dialog::-webkit-backdrop {
background: #0000009c;
-webkit-backdrop-filter: blur(4px);
backdrop-filter: blur(4px);
}
dialog::backdrop {
background: #0000009c;
-webkit-backdrop-filter: blur(4px);
backdrop-filter: blur(4px);
}
footer {
border-top: 1px solid #526980;
border-top: 1px solid var(--border);
padding-top: 10px;
color: #a9b1ba;
color: var(--text-muted);
}
body > footer {
margin-top: 40px;
}
@media print {
body,
pre,
code,
summary,
details,
button,
input,
textarea {
background-color: #fff;
}
button,
input,
textarea {
border: 1px solid #000;
}
body,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
button,
input,
textarea,
footer,
summary,
strong {
color: #000;
}
summary::marker {
color: #000;
}
summary::-webkit-details-marker {
color: #000;
}
tbody tr:nth-child(even) {
background-color: #f2f2f2;
}
a {
color: #00f;
text-decoration: underline;
}
}
// === Custom tweaks to water.css ===
code {
// TODO: I added this myself to try and make the code blocks look presentable
// since I don't havea good background colour
border: 1px solid var(--spice-button-disabled);
}
// Add some basic styling (Spotify has it removed)
ul, li {
list-style-position: inside;
li {
margin-bottom: 8px;
}
}
ul { list-style-type: disc; }
ol { list-style-type: auto; }
// Add some basic margin
p, pre, code {
margin: 8px 0;
}
// Make single-line code blocks not trail offscreen
pre {
overflow-x: auto;
}
table {
// Stop install directions "platform/path" stuff from doing the widths equally all the time
table-layout: auto;
th, td {
// Add borders to table cells
border: 1px solid var(--spice-button-disabled);
}
}
}

View file

@ -1,14 +0,0 @@
/* Need to hijack height because .GenericModal has it set to 90% via style attr... */
.GenericModal[aria-label="Reload required"] {
height: 240px !important;
}
.marketplace-reload-modal__button-container {
display: flex;
justify-content: center;
padding-top: 18px;
}
.marketplace-reload-modal__button-container button {
margin: 18px;
padding: 8px 24px;
}

View file

@ -1,78 +0,0 @@
// Make settings modal use same background colour as the reload modal
// (The large style modal uses --spice-player as the background colour by default)
.GenericModal[aria-label="Marketplace"] {
.main-embedWidgetGenerator-container {
background-color: var(--spice-tab-active);
}
// Toggle switches
.x-toggle-wrapper {
cursor: pointer;
margin-inline-start: 12px;
// Hide disabled toggle rows (i.e. the "Extensions" one)
&.disabled {
opacity: 0;
pointer-events: none;
}
}
}
.setting-row {
&::after {
content: "";
display: table;
clear: both;
}
.col {
display: flex;
padding: 10px 0;
align-items: center;
&.description {
float: left;
padding-right: 15px;
cursor: default;
}
&.action {
float: right;
text-align: right;
}
}
}
// The up/down arrows
button.arrow-btn {
align-items: center;
border: 0px;
border-radius: 50%;
background-color: rgba(var(--spice-rgb-shadow), .7);
color: var(--spice-text);
cursor: pointer;
display: flex;
margin-inline-start: 12px;
padding: 8px;
&.small {
width: 24px;
height: 24px;
padding: 5px;
}
&.disabled,
&[disabled] {
color: rgba(var(--spice-rgb-text), .3);
}
}
// Add snippet modal
#marketplace-add-snippet-container input, textarea {
width: 100%;
margin-bottom: 10px;
padding: 3px 5px;
background-color: var(--spice-main);
color: var(--spice-text);
font-size: 14px;
border: 1px solid var(--spice-button);
border-radius: 4px;
}

View file

@ -1,15 +0,0 @@
// This is the main file that imports all the components
/*
TODOs:
- We might want to customize/scope the css classes etc
so we don't interfere with other extension like reddit
*/
@import url(components/grid.scss);
@import url(components/card.scss);
@import url(components/settings.scss);
@import url(components/reload-modal.scss);
@import url(components/add-snippet-modal.scss);
@import url(components/readme-pages.scss);
@import url(components/fixes.scss);