35 Commits

Author SHA1 Message Date
Anatoly Kopyl
4089f640ea Merge pull request #25 from anatolykopyl/dependabot/npm_and_yarn/postcss-8.4.31
Bump postcss from 8.4.20 to 8.4.31
2023-12-09 13:15:20 +03:00
Anatoly Kopyl
85596a95a6 Merge pull request #26 from anatolykopyl/dependabot/npm_and_yarn/babel/traverse-7.23.2
Bump @babel/traverse from 7.9.5 to 7.23.2
2023-10-28 11:53:03 +03:00
dependabot[bot]
4cebd66a85 Bump @babel/traverse from 7.9.5 to 7.23.2
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.9.5 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-20 00:45:14 +00:00
dependabot[bot]
bc49282b62 Bump postcss from 8.4.20 to 8.4.31
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.20 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.20...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-07 10:53:05 +00:00
Anatoly Kopyl
78c6b02214 Merge pull request #24 from anatolykopyl/dependabot/npm_and_yarn/webpack-5.76.0
Bump webpack from 5.75.0 to 5.76.0
2023-03-17 11:41:04 +03:00
dependabot[bot]
97a8920057 Bump webpack from 5.75.0 to 5.76.0
Bumps [webpack](https://github.com/webpack/webpack) from 5.75.0 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.75.0...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-15 09:35:17 +00:00
Anatoly Kopyl
a22c3485fa Merge pull request #23 from anatolykopyl/dependabot/npm_and_yarn/json5-and-babel-loader-and-css-loader-and-html-webpack-plugin-and-webpack-2.2.3
Bump json5, babel-loader, css-loader, html-webpack-plugin and webpack
2023-01-01 22:38:20 +03:00
dependabot[bot]
fd8c01e41b Bump json5, babel-loader, css-loader, html-webpack-plugin and webpack
Bumps [json5](https://github.com/json5/json5) to 2.2.3 and updates ancestor dependencies [json5](https://github.com/json5/json5), [babel-loader](https://github.com/babel/babel-loader), [css-loader](https://github.com/webpack-contrib/css-loader), [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin) and [webpack](https://github.com/webpack/webpack). These dependencies need to be updated together.


Updates `json5` from 2.1.3 to 2.2.3
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.1.3...v2.2.3)

Updates `babel-loader` from 8.1.0 to 8.3.0
- [Release notes](https://github.com/babel/babel-loader/releases)
- [Changelog](https://github.com/babel/babel-loader/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel-loader/compare/v8.1.0...v8.3.0)

Updates `css-loader` from 3.5.2 to 6.7.3
- [Release notes](https://github.com/webpack-contrib/css-loader/releases)
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v3.5.2...v6.7.3)

Updates `html-webpack-plugin` from 4.2.0 to 5.5.0
- [Release notes](https://github.com/jantimon/html-webpack-plugin/releases)
- [Changelog](https://github.com/jantimon/html-webpack-plugin/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jantimon/html-webpack-plugin/compare/v4.2.0...v5.5.0)

Updates `webpack` from 4.42.1 to 5.75.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.42.1...v5.75.0)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
- dependency-name: babel-loader
  dependency-type: direct:development
- dependency-name: css-loader
  dependency-type: direct:development
- dependency-name: html-webpack-plugin
  dependency-type: direct:development
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-01 19:37:39 +00:00
Anatoly Kopyl
aad1365953 Merge pull request #21 from anatolykopyl/dependabot/npm_and_yarn/loader-utils-1.4.2
Bump loader-utils from 1.4.1 to 1.4.2
2022-11-25 02:40:15 +03:00
dependabot[bot]
de578fd210 Bump loader-utils from 1.4.1 to 1.4.2
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.2/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v1.4.1...v1.4.2)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-18 00:39:12 +00:00
Anatoly Kopyl
59ca6bb360 Merge pull request #20 from anatolykopyl/dependabot/npm_and_yarn/minimatch-3.1.2
Bump minimatch from 3.0.4 to 3.1.2
2022-11-10 23:21:20 +03:00
dependabot[bot]
f7474d863b Bump minimatch from 3.0.4 to 3.1.2
Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to 3.1.2.
- [Release notes](https://github.com/isaacs/minimatch/releases)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.1.2)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-10 20:20:24 +00:00
Anatoly Kopyl
9a2381690e Merge pull request #19 from anatolykopyl/dependabot/npm_and_yarn/loader-utils-1.4.1
Bump loader-utils from 1.4.0 to 1.4.1
2022-11-10 23:14:05 +03:00
dependabot[bot]
ecc265430b Bump loader-utils from 1.4.0 to 1.4.1
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.1/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v1.4.0...v1.4.1)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-08 09:50:42 +00:00
Anatoly Kopyl
a8290e41f3 Merge pull request #18 from anatolykopyl/dependabot/npm_and_yarn/glob-parent-5.1.2
Bump glob-parent from 3.1.0 to 5.1.2
2022-10-09 13:13:10 +03:00
dependabot[bot]
343ebe14ea Bump glob-parent from 3.1.0 to 5.1.2
Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 3.1.0 to 5.1.2.
- [Release notes](https://github.com/gulpjs/glob-parent/releases)
- [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gulpjs/glob-parent/compare/v3.1.0...v5.1.2)

---
updated-dependencies:
- dependency-name: glob-parent
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-09 10:12:57 +00:00
Anatoly Kopyl
31dcbae1da Merge pull request #17 from anatolykopyl/dependabot/npm_and_yarn/terser-4.8.1
Bump terser from 4.6.11 to 4.8.1
2022-08-14 04:11:42 +03:00
dependabot[bot]
2330704243 Bump terser from 4.6.11 to 4.8.1
Bumps [terser](https://github.com/terser/terser) from 4.6.11 to 4.8.1.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-21 01:38:14 +00:00
Anatoly
56bf77001c Merge pull request #16 from anatolykopyl/dependabot/npm_and_yarn/minimist-1.2.6
Bump minimist from 1.2.5 to 1.2.6
2022-04-03 13:12:23 +03:00
dependabot[bot]
d8f653382b Bump minimist from 1.2.5 to 1.2.6
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-26 16:24:48 +00:00
afa274b651 Bump manifest version 2022-02-20 02:45:07 +03:00
9a201e7412 Обновил иконку 2022-02-20 02:35:06 +03:00
Anatoly
fee04826c9 Merge pull request #15 from anatolykopyl/dependabot/npm_and_yarn/path-parse-1.0.7
Bump path-parse from 1.0.6 to 1.0.7
2022-02-13 13:43:12 +03:00
Anatoly
ae88addcfd Merge pull request #14 from anatolykopyl/dependabot/npm_and_yarn/nth-check-2.0.1
Bump nth-check from 2.0.0 to 2.0.1
2022-02-13 13:42:57 +03:00
dependabot[bot]
119d598c24 Bump path-parse from 1.0.6 to 1.0.7
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-13 10:42:00 +00:00
dependabot[bot]
c227c69aaf Bump nth-check from 2.0.0 to 2.0.1
Bumps [nth-check](https://github.com/fb55/nth-check) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/fb55/nth-check/releases)
- [Commits](https://github.com/fb55/nth-check/compare/v2.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: nth-check
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-13 10:42:00 +00:00
Anatoly
874c0694ba Merge pull request #13 from anatolykopyl/dependabot/npm_and_yarn/ajv-6.12.6
Bump ajv from 6.12.0 to 6.12.6
2022-02-13 13:41:30 +03:00
dependabot[bot]
671ab3c037 Bump ajv from 6.12.0 to 6.12.6
Bumps [ajv](https://github.com/ajv-validator/ajv) from 6.12.0 to 6.12.6.
- [Release notes](https://github.com/ajv-validator/ajv/releases)
- [Commits](https://github.com/ajv-validator/ajv/compare/v6.12.0...v6.12.6)

---
updated-dependencies:
- dependency-name: ajv
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-13 10:39:45 +00:00
Anatoly
5f5e5d1461 Добавил ссылку на магазин Chrome в README 2021-10-30 18:17:36 +03:00
42d352c0f6 Более надежный css 2021-07-03 16:37:35 +03:00
Anatoly
2ee163cba7 Update README.md 2021-06-30 23:36:10 +03:00
378ea441f6 Fixed permissions 2021-06-28 19:55:57 +03:00
4db9172fc8 Не добавлять кнопку на свои сообщения 2021-06-28 01:15:32 +03:00
825db14e0f Перешел на css ВК 2021-06-27 23:58:01 +03:00
cfd6691eba Возвращение сообщений без перезагрузки 2021-06-27 12:40:25 +03:00
18 changed files with 2375 additions and 7028 deletions

2
.gitignore vendored
View File

@@ -1,4 +1,6 @@
/node_modules /node_modules
.DS_Store
/.cache /.cache
/.idea /.idea
/assets
.zip .zip

View File

@@ -6,11 +6,15 @@
Если нажать на кнопку 🔇 напротив сообщения в беседе, то все сообщения во всех беседах от этого отправителя будут скрыты. Если нажать на кнопку 🔇 напротив сообщения в беседе, то все сообщения во всех беседах от этого отправителя будут скрыты.
## Установка: ## Установка:
1. Скачать ZIP ### Вариант 1
Скачать из интернет-магазина Chrome ([ссылка](https://chrome.google.com/webstore/detail/vk-mute/mcnkfnjggkbenehgfelnnkklpkpjeibl)).
### Вариант 2
1. [Скачать ZIP](https://github.com/anatolykopyl/vk-mute/releases)
2. Разархивировать в удобное место 2. Разархивировать в удобное место
3. Хром > Настройки > Расширения 3. Хром > Настройки > Расширения
1. Включить режим разработчика 1. Включить режим разработчика
2. Загрузить распакованное, выбрать каталог с расширением (vk-mute-master/extension) 2. Загрузить распакованное, выбрать каталог с расширением
Расширение должно работать во всех браузерах на движке Chromium. Расширение должно работать во всех браузерах на движке Chromium.
@@ -18,3 +22,14 @@
- Google Chrome - Google Chrome
- Opera - Opera
- Brave - Brave
## Разработка:
Для живого обновления содержимого каталога `extension` во время работы запускаем:
```
$ npm run watch
```
Для билда расширения:
```
$ npm run build
```

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

File diff suppressed because one or more lines are too long

115
extension/dist/dom.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -25,7 +25,7 @@
} }
.container { .container {
background-color: hsl(207, 90%, 90%); background-color: hsl(207, 90%, 95%);
max-width: 700px; max-width: 700px;
margin: auto; margin: auto;
padding: 2rem; padding: 2rem;

File diff suppressed because one or more lines are too long

View File

@@ -6,10 +6,9 @@
"128": "assets/icons/icon128.png", "128": "assets/icons/icon128.png",
"48": "assets/icons/icon48.png" "48": "assets/icons/icon48.png"
}, },
"version": "1.0", "version": "1.4",
"description": "Позволяет заглушить нежелаемых собеседников", "description": "Позволяет заглушить нежелаемых собеседников",
"permissions": [ "permissions": [
"activeTab",
"declarativeContent", "declarativeContent",
"storage" "storage"
], ],

9083
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -20,10 +20,11 @@
"devDependencies": { "devDependencies": {
"@babel/core": "^7.9.0", "@babel/core": "^7.9.0",
"@babel/preset-env": "^7.9.5", "@babel/preset-env": "^7.9.5",
"babel-loader": "^8.1.0", "babel-loader": "^8.3.0",
"css-loader": "^3.5.2", "css-loader": "^6.7.3",
"html-webpack-plugin": "^4.2.0", "html-webpack-plugin": "^5.5.0",
"style-loader": "^1.1.4", "style-loader": "^1.1.4",
"webpack": "^4.42.1" "webpack": "^5.76.0",
"webpack-cli": "^4.7.2"
} }
} }

34
src/dom/controls.js vendored
View File

@@ -9,15 +9,16 @@ function muteBtnHTML(id) {
const element = document.createElement('span'); const element = document.createElement('span');
element.setAttribute('class', 'mute_message'); element.setAttribute('class', 'mute_message');
element.setAttribute('id', `mute${id}`); element.setAttribute('id', `mute${id}`);
element.setAttribute('label', 'Заглушить');
element.style.background = `url(${chrome.runtime.getURL("assets/mute.png")}) center no-repeat`; element.style.background = `url(${chrome.runtime.getURL("assets/mute.png")}) center no-repeat`;
element.innerHTML ='<span class="mutetooltip">Заглушить</span>'; element.innerHTML = '<div class="mute_tooltip tt_w tt_black tt_down"><div class="tt_text">Заглушить</div></div>';
return element; return element;
} }
export function tryToAddControls(target) { export function tryToAddControls(target) {
if (target.className === 'im-mess--check fl_l') { if (target.className === 'im-mess--check fl_l') {
const message = target.parentElement; const message = target.parentElement;
addControlButton(message) addControlButton(message);
} }
} }
@@ -66,7 +67,11 @@ function setIdToHideHandle() {
name: clickedName name: clickedName
}); });
chrome.storage.sync.set({idsToHide: idsToHide}, function () { chrome.storage.sync.set({idsToHide: idsToHide}, function () {
hideExistingMessages(); chrome.storage.sync.get('isExtensionOn', function(data) {
if (data.isExtensionOn) {
hideExistingMessages();
}
});
}); });
} }
}); });
@@ -99,15 +104,18 @@ export function createTryToInitInterval() {
* @param message {HTMLElement} * @param message {HTMLElement}
*/ */
function addControlButton(message) { function addControlButton(message) {
const actionsArea = message.getElementsByClassName("im-mess--actions")[0]; // Check if message is not an outgoing one
if (actionsArea && actionsArea.lastChild.className !== "mute_message") { if (!message.classList.contains('im-mess_out')) {
const senderId = message.parentElement.parentElement.parentElement["dataset"].peer; const actionsArea = message.getElementsByClassName("im-mess--actions")[0];
const muteBtn = addMuteButton(actionsArea, senderId); if (actionsArea && actionsArea.lastChild.className !== "mute_message") {
addActionAreaEvents(actionsArea); const senderId = message.parentElement.parentElement.parentElement["dataset"].peer;
muteBtn.addEventListener("click", setIdToHideHandle()); const muteBtn = addMuteButton(actionsArea, senderId);
return true; addActionAreaEvents(actionsArea);
} else { muteBtn.addEventListener("click", setIdToHideHandle());
return false; return true;
} else {
return false;
}
} }
} }
@@ -119,7 +127,7 @@ export function tryToInitControls() {
if (item.className.includes('im-mess-stack _im_mess_stack')) { if (item.className.includes('im-mess-stack _im_mess_stack')) {
let messages = item.children[1].children[1].getElementsByClassName('im-mess _im_mess'); let messages = item.children[1].children[1].getElementsByClassName('im-mess _im_mess');
for (let message of messages) { for (let message of messages) {
status = addControlButton(message, chatBody) status = addControlButton(message);
} }
} }
} }

View File

@@ -1,50 +1,28 @@
.mute_message .mutetooltip { .mute_tooltip {
visibility: hidden;
width: 120px;
background-color: #555;
color: #fff;
text-align: center;
padding: 5px 0;
border-radius: 6px;
/* Position the tooltip text */
position: absolute; position: absolute;
z-index: 1; left: -50px;
bottom: 110%; top: -33px;
margin-left: -53px; display: none;
/* Fade in tooltip */
opacity: 0;
transition: opacity 0.3s;
} }
/* Tooltip arrow */ .mute_tooltip::after {
.mute_message .mutetooltip::after { left: 61px !important;
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: #555 transparent transparent transparent;
} }
/* Show the tooltip text when you mouse over the tooltip container */ /* Show the tooltip text when you mouse over the tooltip container */
.mute_message:hover .mutetooltip { .mute_message:hover .mute_tooltip {
visibility: visible; display: block !important;
opacity: 1; opacity: 1;
} }
.mute_message { .mute_message {
margin-top: .46rem; position: relative;
margin-left: 4px;
margin-right: 3px;
display: inline-block; display: inline-block;
vertical-align: top; vertical-align: top;
width: 12px; padding-top: 2px;
height: 12px; width: 24px;
background-size: contain !important; height: 24px;
background-size: 11px !important;
} }
.im-mess--actions { .im-mess--actions {

View File

@@ -1,5 +1,5 @@
import {getChatBody} from "../utils/getChatBody"; import {getChatBody} from "../utils/getChatBody";
import {tryToAddControls} from "./controls"; import {tryToAddControls, hideExistingMessages} from "./controls";
export function addNewMessageEventListener() { export function addNewMessageEventListener() {
const chatBody = getChatBody(); const chatBody = getChatBody();
@@ -22,3 +22,37 @@ function newMessageHandler(message) {
}); });
} }
} }
export function returnMessagesEventListener() {
chrome.storage.onChanged.addListener(function(changes) {
const isExtensionOn = changes.isExtensionOn;
const idsToHide = changes.idsToHide;
const chatBody = getChatBody();
if (isExtensionOn) {
if (isExtensionOn.newValue === false) {
for (let item of chatBody.children) {
item.style.display = "block";
}
} else {
hideExistingMessages();
}
}
if (idsToHide) {
chrome.storage.sync.get('isExtensionOn', function(data) {
if (data.isExtensionOn) {
if (idsToHide.newValue.length < idsToHide.oldValue.length) {
// for (let item of chatBody.children) {
// item.style.display = "block";
// }
// hideExistingMessages();
for (let item of chatBody.children) {
if (idsToHide.newValue.filter(user => user.id == item.dataset.peer).length === 0) {
item.style.display = "block";
}
}
}
}
});
}
});
}

View File

@@ -1,7 +1,7 @@
import './dom.css' import './dom.css'
import {createTryToInitInterval, hideExistingMessages, tryToInitControls} from "./controls"; import {createTryToInitInterval, hideExistingMessages, tryToInitControls} from "./controls";
import {UrlController} from "../utils/Url"; import {UrlController} from "../utils/Url";
import {addNewMessageEventListener} from "./hide_element"; import {addNewMessageEventListener, returnMessagesEventListener} from "./hide_element";
function init() { function init() {
const url = new UrlController(); const url = new UrlController();
@@ -9,7 +9,12 @@ function init() {
if (tryToInitControls()) { if (tryToInitControls()) {
createTryToInitInterval(); createTryToInitInterval();
addNewMessageEventListener(); addNewMessageEventListener();
hideExistingMessages(); returnMessagesEventListener();
chrome.storage.sync.get('isExtensionOn', function(data) {
if (data.isExtensionOn) {
hideExistingMessages();
}
});
} }
}) })
} }

View File

@@ -25,7 +25,7 @@
} }
.container { .container {
background-color: hsl(207, 90%, 90%); background-color: hsl(207, 90%, 95%);
max-width: 700px; max-width: 700px;
margin: auto; margin: auto;
padding: 2rem; padding: 2rem;

View File

@@ -4,6 +4,7 @@
body { body {
min-width: 160px; min-width: 160px;
margin: 0;
} }
/* The switch - the box around the slider */ /* The switch - the box around the slider */
.switch { .switch {
@@ -71,19 +72,17 @@ input:checked + .slider:before {
.header { .header {
background-color: #2196F3; background-color: #2196F3;
color: white; color: white;
width: 100vw; width: 100%;
height: 3rem;
position: relative; position: relative;
margin-left: -50vw; display: flex;
left: 50%; align-items: center;
margin-top: -20vw; justify-content: center;
margin-bottom: 10vw; margin-bottom: 1rem;
padding-top: 5px;
padding-bottom: 5px;
} }
h3 { h3 {
margin-bottom: 0; margin: 0;
padding: 1rem 0 .5rem 0;
} }
.idToHide { .idToHide {
@@ -92,28 +91,32 @@ h3 {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
background-color: #fff; background-color: #fff;
width: 100vw;
} }
.idToHide:hover { .idToHide:hover {
background-color: #dcdfde; background-color: #f1f1f1;
} }
#id_list { #id_list {
color: black; color: black;
position: relative; position: relative;
margin-left: -50vw; width: 100%;
left: 50%; margin-top: 1rem;
margin-top: 10vw;
} }
.del_item { .del_item {
cursor: pointer; cursor: pointer;
transition: transform 0.2s;
}
.del_item:hover {
transform: scale(1.15);
} }
.donation_btn { .donation_btn {
text-align: right; text-align: right;
margin-top: .5rem; margin-top: .5rem;
padding: 0 10px 10px 0;
} }
a { a {