�� Refactor CSS to use constants for media queries

This commit is contained in:
Alicia Sykes
2021-04-20 15:12:58 +01:00
parent 33127ab414
commit 7c016ac2e8
8 changed files with 27 additions and 17 deletions

View File

@@ -31,6 +31,8 @@ export default {
<style scoped lang="scss">
@import '@/styles/media-queries.scss';
header {
margin: 0;
padding: 0.5rem;
@@ -39,7 +41,7 @@ export default {
background: var(--background-darker);
align-items: center;
align-content: flex-start;
@media screen and (max-width: 600px) {
@include phone {
flex-direction: column-reverse;
}
}

View File

@@ -16,16 +16,13 @@ export default {
</script>
<style scoped lang="scss">
@import '@/styles/media-queries.scss';
.page-titles {
display: flex;
flex-direction: column;
h1 {
color: var(--primary);
// background: -webkit-linear-gradient(to left top, #9F86FF, #1CA8DD, #007AE1);
// background: linear-gradient(to left top, #9F86FF, #1CA8DD, #007AE1);
// -webkit-background-clip: text;
// -webkit-text-fill-color: transparent;
font-size: 2.5rem;
margin: 0;
}
@@ -35,7 +32,7 @@ export default {
text-shadow: 1px 1px 2px #130f23;
opacity: var(--dimming-factor);
}
@media screen and (max-width: 600px) {
@include phone {
text-align: center;
padding: 0.25rem 0;
}