style: added image-header CSS component; style: removed stackedTabs and middle section SCSS files

This commit is contained in:
Roberto Tonino 2020-10-28 21:25:07 +01:00
parent 2cf68d182b
commit e950a59e1f
10 changed files with 38 additions and 41 deletions

File diff suppressed because one or more lines are too long

View File

@ -31,11 +31,23 @@
</template> </template>
<style lang="scss"> <style lang="scss">
@import '../styles/scss/base/_variables.scss';
// src/components/TheContent.vue
#container { #container {
--container-width: 95%;
margin: 0 auto; margin: 0 auto;
max-width: 1280px; max-width: 1280px;
width: var(--container-width); width: var(--container-width);
transform: scale(1); transform: scale(1);
@media only screen and (min-width: $small) {
--container-width: 85%;
}
@media only screen and (min-width: $medium) {
--container-width: 70%;
}
} }
main { main {

View File

@ -22,7 +22,9 @@
</div> </div>
</div> </div>
</template> </template>
<style> <style lang="scss">
@import '../../styles/scss/base/_variables.scss';
.smallmodal { .smallmodal {
position: fixed; position: fixed;
z-index: 1250; z-index: 1250;
@ -36,12 +38,22 @@
} }
.smallmodal-content { .smallmodal-content {
--modal-content-width: 95%;
background-color: transparent; background-color: transparent;
margin: auto; margin: auto;
width: var(--modal-content-width); width: var(--modal-content-width);
position: relative; position: relative;
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
@media only screen and (min-width: $small) {
--modal-content-width: 85%;
}
@media only screen and (min-width: $medium) {
--modal-content-width: 70%;
}
} }
.smallmodal-content button { .smallmodal-content button {

View File

@ -1,5 +1,5 @@
<template> <template>
<div id="artist_tab" class="relative image_header" ref="root"> <div id="artist_tab" class="relative image-header" ref="root">
<header <header
class="inline-flex" class="inline-flex"
:style="{ :style="{

View File

@ -1,5 +1,5 @@
<template> <template>
<div id="analyzer_tab" class="image_header" ref="root"> <div id="analyzer_tab" class="image-header" ref="root">
<h1 class="mb-8 text-5xl capitalize">{{ $t('sidebar.linkAnalyzer') }}</h1> <h1 class="mb-8 text-5xl capitalize">{{ $t('sidebar.linkAnalyzer') }}</h1>
<div v-if="link === ''"> <div v-if="link === ''">

View File

@ -1,5 +1,5 @@
<template> <template>
<div class="relative fixed_footer image_header" ref="root"> <div class="relative fixed_footer image-header" ref="root">
<header <header
:style="{ :style="{
'background-image': 'background-image':

View File

@ -46,4 +46,11 @@
@apply text-primary border-primary bg-background-secondary; @apply text-primary border-primary bg-background-secondary;
@apply bg-opacity-25; @apply bg-opacity-25;
} }
/* Image header */
.image-header header {
@apply bg-cover pt-56 px-6 pb-2 rounded-t-lg;
background-position: 0% 35%;
}
} }

View File

@ -1,24 +0,0 @@
#container {
--container-width: 95%;
@media only screen and (min-width: $small) {
--container-width: 85%;
}
@media only screen and (min-width: $medium) {
--container-width: 70%;
}
}
/* Modal Content */
.smallmodal-content {
--modal-content-width: 95%;
@media only screen and (min-width: $small) {
--modal-content-width: 85%;
}
@media only screen and (min-width: $medium) {
--modal-content-width: 70%;
}
}

View File

@ -1,7 +0,0 @@
// Make a component? But it would be only one HTML tag with a bunch of classes and a prop (the img src)...
.image_header {
header {
@apply bg-cover pt-56 px-6 pb-2 rounded-t-lg;
background-position: 0% 35%;
}
}

View File

@ -28,6 +28,3 @@ body {
@import './tabs/search-tab'; @import './tabs/search-tab';
@import './tabs/settings-tab'; @import './tabs/settings-tab';
@import './tabs/tabs'; @import './tabs/tabs';
@import './middle-section';
@import './stackedTabs';