diff --git a/src/ign-frontend/src/styles/_media_queries.scss b/src/ign-frontend/src/styles/_media_queries.scss index 8023f16..44cbf03 100755 --- a/src/ign-frontend/src/styles/_media_queries.scss +++ b/src/ign-frontend/src/styles/_media_queries.scss @@ -15,25 +15,4 @@ display: block; } - .palette-grid { - .palette-post { - display: inline-flex; - width: 30%; - margin: 15px 10px; - flex: auto; - } - .palette-title { - font-size: 25px; - text-align: center; - width: calc(100% - 16px); - padding-top: 5em; - height: 6em; - color: $nord6; - background: #757575c9; - font-weight: bold; - display: block; - border: 8px solid transparent; - } - - } -} \ No newline at end of file +} diff --git a/src/ign-frontend/src/styles/global.scss b/src/ign-frontend/src/styles/global.scss index ca3549c..fec65ab 100755 --- a/src/ign-frontend/src/styles/global.scss +++ b/src/ign-frontend/src/styles/global.scss @@ -251,48 +251,52 @@ html { } .palette-grid { - display: flex; - flex-flow: row wrap; - justify-content: space-around; - flex-direction: row; + display: grid; + grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); + grid-gap: 1em; + box-sizing: border-box; + padding: 0 1em; + overflow-y: auto; + height: 500px; .palette-post { display: flex; - text-align: center; - width: 100%; - margin: 15px 10px; - flex: auto; + justify-content: center; + align-items: center; + position: relative; border: 8px solid transparent; - + cursor: pointer; &:hover, &:focus, &:active, &.current-palette { border-color: $nord12; - cursor: pointer; + .palette-img { + -webkit-filter: brightness(0.6) blur(0); + filter: brightness(0.6) blur(0); + } } .palette-title { font-size: 25px; text-align: center; - width: calc(100% - 16px); - padding-top: 5em; - height: 6em; - color: $nord6; - background: #757575c9; font-weight: bold; - display: block; + color: $nord4; + position: absolute; } - img { - max-width: 100%; - max-height: 215px; - border: 6px solid $nord4; - border-radius: 5px; + .palette-img { + width: 100%; + aspect-ratio: 4/3; + object-fit: cover; + background-size: cover; + -webkit-filter: brightness(0.3) blur(2px); + filter: brightness(0.3) blur(2px); + overflow: hidden; } + } } - /* dark theme */ @import 'dark'; /* media queries */ -@import '_media_queries'; \ No newline at end of file +@import '_media_queries'; diff --git a/src/ign-frontend/src/views/GoWild.vue b/src/ign-frontend/src/views/GoWild.vue index aedb7b2..0065fd2 100644 --- a/src/ign-frontend/src/views/GoWild.vue +++ b/src/ign-frontend/src/views/GoWild.vue @@ -238,60 +238,6 @@ export default { } } -.palette-grid { - display: flex; - flex-flow: row wrap; - justify-content: space-around; - flex-direction: row; - - .palette-post { - display: flex; - text-align: center; - width: 100%; - margin: 15px 10px; - flex: auto; - border: 8px solid transparent; - .palette-img { - -webkit-filter: brightness(0.6) blur(0); - filter: brightness(0.6) blur(0); - } - - &:hover, &:focus, &:active, &.current-palette { - border-color: $nord12; - cursor: pointer; - } - - .palette-title { - font-size: 25px; - text-align: center; - width: calc(100% - 16px); - padding-top: 5em; - height: 6em; - color: $nord6; - background: #757575c9; - font-weight: bold; - display: block; - } - - .palette-img { - width: 100%; - aspect-ratio: 4/3; - object-fit: cover; - background-size: cover; - -webkit-filter: brightness(0.3) blur(2px); - filter: brightness(0.3) blur(2px); - overflow: hidden; - } - - img { - max-width: 100%; - max-height: 215px; - border: 6px solid $nord4; - border-radius: 5px; - } - } -} - @media (min-width: 56.25em) { .slider-section { .slider-item { @@ -305,27 +251,6 @@ export default { } } } - .palette-grid { - .palette-post { - display: inline-flex; - width: 30%; - margin: 15px 10px; - flex: auto; - } - .palette-title { - font-size: 25px; - text-align: center; - width: calc(100% - 16px); - padding-top: 5em; - height: 6em; - color: $nord6; - background: #757575c9; - font-weight: bold; - display: block; - border: 8px solid transparent; - } - - } } .#{$dark-mode-class} { diff --git a/src/ign-frontend/src/views/ImagIA.vue b/src/ign-frontend/src/views/ImagIA.vue index e228e14..075f843 100755 --- a/src/ign-frontend/src/views/ImagIA.vue +++ b/src/ign-frontend/src/views/ImagIA.vue @@ -4,9 +4,6 @@ h1="Image Go AI 🤖" h2="Use the power of the PaletteNet to recolor your images" /> -