Fixed media requests
This commit is contained in:
parent
f9dbbb01a9
commit
f601599a43
@ -3,21 +3,21 @@
|
|||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "parcel ./src/index.html -p 4500 --open ",
|
"start": "parcel src/index.html -p 4500 --open ",
|
||||||
"build": "parcel build ./src/index.html --public-url /cg-select/",
|
"build": "parcel build ./src/index.html --public-url /cg-select/",
|
||||||
"deploy": "gh-pages -d dist",
|
"deploy": "gh-pages -d dist",
|
||||||
"predeploy": "npm run build"
|
"predeploy": "npm run build"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/MaxOvs19/Cg-select.git"
|
"url": "git+https://github.com/MaxOvs19/cg-select.git"
|
||||||
},
|
},
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/MaxOvs19/Cg-select/issues"
|
"url": "https://github.com/MaxOvs19/cg-select/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/MaxOvs19/Cg-select",
|
"homepage": "https://github.com/MaxOvs19/cg-select",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@parcel/transformer-sass": "^2.7.0",
|
"@parcel/transformer-sass": "^2.7.0",
|
||||||
"parcel": "^2.7.0",
|
"parcel": "^2.7.0",
|
||||||
|
@ -217,11 +217,14 @@ export class DropDown {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const select = this.#element.querySelector('.cg-select');
|
const select = this.#element.querySelector('.cg-select');
|
||||||
|
const nativSelect = this.#element.querySelector('.nativSelect');
|
||||||
if (value === true) {
|
if (value === true) {
|
||||||
this.#element.setAttribute('disabled', true);
|
this.#element.setAttribute('disabled', true);
|
||||||
|
nativSelect.setAttribute('disabled', true);
|
||||||
select.classList.add('disabled');
|
select.classList.add('disabled');
|
||||||
} else {
|
} else {
|
||||||
this.#element.removeAttribute('disabled');
|
this.#element.removeAttribute('disabled');
|
||||||
|
nativSelect.removeAttribute('disabled');
|
||||||
select.classList.remove('disabled');
|
select.classList.remove('disabled');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -322,7 +322,23 @@ input[type='checkbox'] {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 425px) {
|
/*320px - 576px*/
|
||||||
|
@media (max-width: 576px) {
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
width: 90%;
|
||||||
|
|
||||||
|
.header {
|
||||||
|
h1 {
|
||||||
|
font-size: 32px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.list {
|
.list {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 425px) {
|
@media (max-width: 576px) {
|
||||||
.nativSelect {
|
.nativSelect {
|
||||||
display: block;
|
display: block;
|
||||||
min-width: 235px;
|
min-width: 235px;
|
||||||
@ -27,6 +27,7 @@
|
|||||||
border: none;
|
border: none;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
select[multiple='multiple'] {
|
select[multiple='multiple'] {
|
||||||
color: black;
|
color: black;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
|
Loading…
Reference in New Issue
Block a user