added foundation for tooltip

This commit is contained in:
Ari Sosnovsky committed 2021-10-31 22:56:42 -04:00
1 parent 53ec0d417b
commit 70eba32b34
9 files changed
+267 -131

No files matched your search

+97
View File
@@ -0,0 +1,97 @@
html,
body,
#app {
margin: 0;
padding: 0;
height: 100vh;
width: 100vw;
overflow: hidden;
font-family: Tahoma, Geneva, sans-serif;
background-color: $primary;
display: grid;
align-items: center;
justify-items: center;
color: $font-color-primary;
}
h1,
h2,
h3,
h4,
h5 {
justify-content: center;
align-items: center;
display: flex;
text-align: center;
}
/* width */
::-webkit-scrollbar {
width: 10px;
}
/* Track */
::-webkit-scrollbar-track {
background: $secondary;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: $secondary-accent;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: $primary-accent;
}
:root {
touch-action: pan-x pan-y;
height: 100%;
}
button {
background-color: $secondary;
color: $primary-accent;
border-color: $primary-accent;
&:hover {
background-color: $primary;
border-color: $secondary-accent;
}
&:disabled {
background-color: $gray;
border-color: $gray;
color: darken($gray, 50);
cursor: not-allowed;
}
&.secondary {
background-color: $primary;
color: $secondary-accent;
border-color: $secondary-accent;
&:hover {
background-color: $secondary;
border-color: $primary-accent;
}
}
border-style: solid;
border-width: 1px;
padding: 2.5%;
margin-left: 5%;
margin-right: 5%;
border-radius: 5px;
cursor: pointer;
}
select {
@extend button;
margin: 0;
}
input {
@extend button;
margin: 0;
cursor: text;
}
+2 -113
View File
@@ -1,117 +1,6 @@
@import "./colors.scss";
@import "./pages/index.scss";
@import "./utils.scss";
@import "./common.scss";
@import "./components/index.scss";
html,
body,
#app {
margin: 0;
padding: 0;
height: 100vh;
width: 100vw;
overflow: hidden;
font-family: Tahoma, Geneva, sans-serif;
background-color: $primary;
display: grid;
align-items: center;
justify-items: center;
color: $font-color-primary;
}
.row {
display: flex;
flex-direction: row;
}
.col {
display: flex;
flex-direction: column;
}
.center {
display: flex;
justify-content: center;
align-items: center;
}
h1,
h2,
h3,
h4,
h5 {
justify-content: center;
align-items: center;
display: flex;
text-align: center;
}
/* width */
::-webkit-scrollbar {
width: 10px;
}
/* Track */
::-webkit-scrollbar-track {
background: $secondary;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: $secondary-accent;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: $primary-accent;
}
:root {
touch-action: pan-x pan-y;
height: 100%;
}
button {
background-color: $secondary;
color: $primary-accent;
border-color: $primary-accent;
&:hover {
background-color: $primary;
border-color: $secondary-accent;
}
&:disabled {
background-color: $gray;
border-color: $gray;
color: darken($gray, 50);
cursor: not-allowed;
}
&.secondary {
background-color: $primary;
color: $secondary-accent;
border-color: $secondary-accent;
&:hover {
background-color: $secondary;
border-color: $primary-accent;
}
}
border-style: solid;
border-width: 1px;
padding: 2.5%;
margin-left: 5%;
margin-right: 5%;
border-radius: 5px;
cursor: pointer;
}
select {
@extend button;
margin: 0;
}
input {
@extend button;
margin: 0;
cursor: text;
}
@import "./tooltip.scss";
+30
View File
@@ -0,0 +1,30 @@
.tooltip {
&.hide {
width: 0;
height: 0;
display: none;
}
&-bg {
position: absolute;
left: 0;
top: 0;
width: 100vw;
height: 100vh;
z-index: 9;
}
ul {
position: absolute;
left: 0;
top: 0;
list-style: none;
margin: 0;
padding: 0;
z-index: 10;
li {
@extend button;
margin: 0;
}
}
}