mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
improve configure page
This commit is contained in:
@@ -167,7 +167,6 @@ button:active {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.input, .btn {
|
.input, .btn {
|
||||||
height: 3.8vh;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
@@ -179,6 +178,11 @@ button:active {
|
|||||||
background-color: rgb(255, 255, 255);
|
background-color: rgb(255, 255, 255);
|
||||||
box-shadow: 0 0.5vh 1vh rgba(0, 0, 0, 0.2);
|
box-shadow: 0 0.5vh 1vh rgba(0, 0, 0, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.input:focus, .btn:focus {
|
||||||
|
outline: none;
|
||||||
|
box-shadow: 0 0 0 2pt rgb(30, 144, 255, 0.7);
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
const { Providers } = require('./filter');
|
const { Providers } = require('./filter');
|
||||||
const { SortOptions } = require('./sort');
|
const { SortOptions } = require('./sort');
|
||||||
@@ -209,7 +213,7 @@ function landingTemplate(manifest, config = {}) {
|
|||||||
const background = manifest.background || 'https://dl.strem.io/addon-background.jpg';
|
const background = manifest.background || 'https://dl.strem.io/addon-background.jpg';
|
||||||
const logo = manifest.logo || 'https://dl.strem.io/addon-logo.png';
|
const logo = manifest.logo || 'https://dl.strem.io/addon-logo.png';
|
||||||
const providersHTML = Providers.options
|
const providersHTML = Providers.options
|
||||||
.map(provider => `<option value="${provider.key}">${provider.foreign || ''}${provider.label}</option>`)
|
.map(provider => `<option value="${provider.key}">${provider.foreign ? provider.foreign + ' ' : ''}${provider.label}</option>`)
|
||||||
.join('\n');
|
.join('\n');
|
||||||
const sortOptionsHTML = Object.values(SortOptions.options)
|
const sortOptionsHTML = Object.values(SortOptions.options)
|
||||||
.map((option, i) => `<option value="${option.key}" ${i === 0 ? 'selected' : ''}>${option.description}</option>`)
|
.map((option, i) => `<option value="${option.key}" ${i === 0 ? 'selected' : ''}>${option.description}</option>`)
|
||||||
|
|||||||
Reference in New Issue
Block a user