diff --git a/public/css/modules/middle-section.css b/public/css/modules/middle-section.css index b4333c8..fca1dd1 100644 --- a/public/css/modules/middle-section.css +++ b/public/css/modules/middle-section.css @@ -48,20 +48,50 @@ width: 90%; } +/* The Modal (background) */ +.smallmodal { + display: none; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 1250; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgb(0,0,0); /* Fallback color */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + animation-duration: 0.3s; +} + +/* Modal Content */ +.smallmodal-content { + background-color: none; + margin: auto; + width: 30%; + align-items: center; + position: relative; + top: 50%; + transform: translateY(-50%); +} +.smallmodal-content button{ + width: 100%; + margin-bottom: 8px; +} + @media only screen and (min-width: 601px) { - #container { + #container, .smallmodal-content { width: 85%; } } @media only screen and (min-width: 993px) { - #container { + #container, .smallmodal-content { width: 70%; } } @media only screen and (max-width: 600px) { - #container { + #container, .smallmodal-content { width: 100%; } -} \ No newline at end of file +} diff --git a/public/index.html b/public/index.html index 6135706..ff5bd5d 100644 --- a/public/index.html +++ b/public/index.html @@ -53,7 +53,7 @@
{{ results.TOP_RESULT[0].__TYPE__ == 'artist' ? results.TOP_RESULT[0].ART_NAME : results.TOP_RESULT[0].__TYPE__ == 'album' ? results.TOP_RESULT[0].ALB_TITLE : results.TOP_RESULT[0].__TYPE__ == 'playlist' ? results.TOP_RESULT[0].TITLE : '' }}
@@ -69,7 +69,7 @@{{ section == 'ARTIST' ? release.ART_NAME : section == 'ALBUM' ? release.ALB_TITLE : section == 'PLAYLIST' ? release.TITLE : '' }}
{{ section == 'ARTIST' ? numberWithDots(release.NB_FAN) + ' fans' : section == 'ALBUM' ? release.ART_NAME+' - '+release.NUMBER_TRACK+' tracks' : section == 'PLAYLIST' ? release.NB_SONG+' tracks' : '' }}
@@ -109,7 +109,7 @@{{ release.ALB_TITLE }}
{{ 'by '+release.ART_NAME }}
@@ -138,7 +138,7 @@{{ release.ART_NAME }}
{{ numberWithDots(release.NB_FAN) + ' fans' }}
@@ -154,7 +154,7 @@{{ release.TITLE }}
{{ release.NB_SONG+' tracks' }}
@@ -393,6 +393,17 @@