Skip to content

Commit a058766

Browse files
committed
1.9 - Adding modal to confirm when remove item from playlist
1 parent e8cefa6 commit a058766

17 files changed

+664
-407
lines changed

dist/assets/css/main.css

Lines changed: 136 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
:root {
44
--c-base: #f9f9f9;
55
--c-primary: red;
6-
--c-primary-active: #cc0000;
7-
--c-primary-active-focus: #990000;
6+
--c-primary-active: #ea0000;
7+
--c-primary-active-focus: #cc0000;
88
--c-primary-inverse: #232228;
99
--c-secondary: #167ac6;
1010
--c-success: #23CF5F;
@@ -81,7 +81,7 @@ a:active {
8181
vertical-align: middle;
8282
user-select: none;
8383
border: 1px solid transparent;
84-
padding: .5rem 1rem;
84+
padding: 6px 15px;
8585
text-decoration: none;
8686
transition: all .1s ease-out;
8787
outline: 0;
@@ -95,6 +95,46 @@ a:active {
9595
padding: 5px 17px;
9696
}
9797

98+
.btn-link {
99+
background-color: transparent;
100+
color: rgba(35, 34, 40, 0.3);
101+
}
102+
103+
.btn-link:hover {
104+
color: rgba(35, 34, 40, 0.6);
105+
}
106+
107+
.btn-link:active {
108+
color: var(--c-primary-inverse);
109+
}
110+
111+
.btn-primary {
112+
background-color: var(--c-primary);
113+
color: var(--c-white);
114+
}
115+
116+
.btn-primary:hover {
117+
background-color: var(--c-primary-active);
118+
}
119+
120+
.btn-primary:active {
121+
background-color: var(--c-primary-active-focus);
122+
}
123+
124+
.btn-primary-inverse {
125+
background-color: var(--c-primary-inverse);
126+
color: rgba(255, 255, 255, 0.6);
127+
}
128+
129+
.btn-primary-inverse:hover {
130+
color: var(--c-white);
131+
}
132+
133+
.btn-primary-inverse:active {
134+
background-color: var(--c-black);
135+
color: var(--c-white);
136+
}
137+
98138
:root {
99139
--menu-diff: 175px;
100140
}
@@ -337,12 +377,99 @@ a:active {
337377
visibility: visible;
338378
}
339379

340-
#test {
341-
height: 50px;
342-
width: 10px;
343-
background: red;
344-
cursor: e-resize;
345-
position: relative;
380+
.modal-overlay {
381+
position: fixed;
382+
overflow: hidden;
383+
width: 100%;
384+
height: 100%;
385+
left: 0;
386+
top: 0;
387+
z-index: 999;
388+
}
389+
390+
.modal-background-overlay {
391+
background-color: rgba(0, 0, 0, 0.3);
392+
position: absolute;
393+
overflow: hidden;
394+
width: 100%;
395+
height: 100%;
396+
left: 0;
397+
top: 0;
398+
}
399+
400+
.modal-container {
401+
position: absolute;
402+
background-color: var(--c-white);
403+
color: var(--c-black);
404+
top: 50%;
405+
right: 50%;
406+
transform: translate(50%, -50%);
407+
width: 400px;
408+
height: 400px;
409+
text-align: center;
410+
padding-top: 30px;
411+
padding-bottom: 90px;
412+
animation: loading-animation 0.2s 1;
413+
}
414+
415+
.modal-container h2 {
416+
margin-top: 10px;
417+
font-size: 18px;
418+
font-weight: 400;
419+
padding: 0 40px;
420+
margin-bottom: 30px;
421+
}
422+
423+
.modal-content {
424+
padding: 0 20px;
425+
}
426+
427+
.modal-content img {
428+
width: 200px;
429+
height: auto;
430+
}
431+
432+
.modal-content p {
433+
margin-top: 5px;
434+
}
435+
436+
.modal-close {
437+
position: absolute;
438+
top: 13px;
439+
right: 15px;
440+
cursor: pointer;
441+
}
442+
443+
.modal-close span {
444+
font-size: 18px;
445+
color: rgba(0, 0, 0, 0.6);
446+
}
447+
448+
.modal-close span:active {
449+
color: var(--c-black);
450+
}
451+
452+
.modal-buttons {
453+
display: block;
454+
width: 100%;
455+
position: absolute;
456+
bottom: 0;
457+
}
458+
459+
.modal-buttons .btn {
460+
display: block;
461+
margin: 5px auto;
462+
padding: 15px;
463+
border: none;
464+
text-transform: uppercase;
465+
font-weight: 600;
466+
padding: 11px 10px;
467+
font-size: 12px;
468+
}
469+
470+
.modal-buttons .btn-primary {
471+
width: 70%;
472+
border-radius: 30px;
346473
}
347474

348475
.current-video-all {

dist/inline.bundle.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)