Better display layout and further visual improvments

This commit is contained in:
Alicia Sykes 2021-03-01 18:44:57 +00:00
parent f9bac8ceb0
commit a2023fcb4b
9 changed files with 29 additions and 23 deletions

View File

@ -20,6 +20,12 @@ export default {
@import '../src/styles/global-styles.scss'; @import '../src/styles/global-styles.scss';
@import '../src/styles/color-pallet.scss'; @import '../src/styles/color-pallet.scss';
body {
background: $background;
margin: 0;
padding: 0;
}
#app { #app {
.footer { .footer {
text-align: center; text-align: center;

Binary file not shown.

Binary file not shown.

View File

@ -9,7 +9,7 @@
tabIndex="-1" tabIndex="-1"
> >
<label :for="`collapsible-${uniqueKey}`" class="lbl-toggle" tabindex="-1"> <label :for="`collapsible-${uniqueKey}`" class="lbl-toggle" tabindex="-1">
<h2>{{ title }}</h2> <h3>{{ title }}</h3>
</label> </label>
<div class="collapsible-content"> <div class="collapsible-content">
<div class="content-inner"> <div class="content-inner">
@ -102,14 +102,14 @@ export default {
.lbl-toggle { .lbl-toggle {
display: block; display: block;
padding: 1rem; padding: 0.25rem;
cursor: pointer; cursor: pointer;
border-radius: 7px; border-radius: 7px;
transition: all 0.25s ease-out; transition: all 0.25s ease-out;
text-align: left; text-align: left;
color:$bg-with-opacity; color:$bg-with-opacity;
h2 { h3 {
margin: 0; margin: 0;
padding: 0; padding: 0;
display: inline; display: inline;

View File

@ -52,22 +52,20 @@ export default {
if (isOverflowing) { if (isOverflowing) {
tileElem.className += ' is-overflowing'; tileElem.className += ' is-overflowing';
} }
} } // Not from present me to past me: WTF?!
}, },
}; };
</script> </script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="scss"> <style scoped lang="scss">
@import '../../src/styles/color-pallet.scss'; @import '../../src/styles/color-pallet.scss';
.item { .item {
width: 120px; flex-grow: 1;
height: 100px; height: 100px;
color: $ascent; color: $ascent;
display: inline-block;
vertical-align: middle; vertical-align: middle;
margin: 8px; margin: 0.5rem;
background: #607d8b33; background: #607d8b33;
text-align: center; text-align: center;
padding: 2px; padding: 2px;
@ -92,7 +90,7 @@ export default {
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
width: 120px; min-width: 120px;
height: 30px; height: 30px;
overflow: hidden; overflow: hidden;
position: relative; position: relative;
@ -109,7 +107,6 @@ export default {
width: 100%; width: 100%;
} }
.overflow-dots { .overflow-dots {
// display: none;
opacity: 0; opacity: 0;
} }
} }
@ -121,7 +118,7 @@ export default {
.overflow-dots { .overflow-dots {
display: block; display: block;
opacity: 1; opacity: 1;
background: #1b3550; background: $overflow-ellipse;
position: absolute; position: absolute;
z-index: 5; z-index: 5;
right: 0; right: 0;
@ -129,9 +126,8 @@ export default {
} }
} }
.item:hover .tile-title{ .item:hover .tile-title.is-overflowing{
.overflow-dots { .overflow-dots {
// display: none;
opacity: 0; opacity: 0;
} }
span.text { span.text {

View File

@ -55,6 +55,8 @@ export default {
.there-are-items { .there-are-items {
height: 100%; height: 100%;
display: flex;
flex-wrap: wrap;
} }
</style> </style>

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="page-titles"> <div class="page-titles">
<h1>Alicia App</h1> <h1>Networking Services</h1>
<span class="subtitle">Dashboard of all the things</span> <span class="subtitle">Local network management and moniroting</span>
</div> </div>
</template> </template>

View File

@ -2,10 +2,11 @@
/* Core Pallet */ /* Core Pallet */
$background: #0b1021; $background: #0b1021;
$ascent: #0875c3; $ascent: #5cabca;
/* Action Colors */ /* Action Colors */
$transparent-black: #0000008a; $transparent-black: #0000008a;
$overflow-ellipse: #283e51;
/* Modified Colors */ /* Modified Colors */
$bg-with-opacity: rgba($background, 0.8); $bg-with-opacity: rgba($background, 0.8);

View File

@ -1,22 +1,23 @@
@import url('https://fonts.googleapis.com/css?family=Montserrat&display=swap');
@font-face {
font-family: 'Inconsolata';
src: url('./assets/Inconsolata-Light.ttf');
}
html { html {
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
body { body {
margin: 0; font-family: 'Inconsolata', sans-serif;
padding: 0;
background: #282a32;
font-family: 'Montserrat', sans-serif;
} }
h1, h2, h3, h4, h5 { h1, h2, h3, h4, h5 {
font-family: 'Montserrat', sans-serif; font-family: 'Inconsolata', sans-serif;
} }
p, a, span, div, input { p, a, span, div, input {
font-family: 'Montserrat', sans-serif; font-family: 'Inconsolata', sans-serif;
} }