diff --git a/src/assets/_vars.scss b/src/assets/_vars.scss new file mode 100644 index 0000000..3c4813e --- /dev/null +++ b/src/assets/_vars.scss @@ -0,0 +1,5 @@ + +$txt-color: black; +$bg-color: white; +$button-border: 2px solid $txt-color; +$button-border-small: 1px solid $txt-color; diff --git a/src/assets/menubar.scss b/src/assets/menubar.scss deleted file mode 100644 index 6898f4e..0000000 --- a/src/assets/menubar.scss +++ /dev/null @@ -1,112 +0,0 @@ -$button-width: 42px; -$button-border: 2px solid black; -.menubar { - - - &.paragraph-menubar { - position: fixed; - display: flex; - flex-direction: column; - - top: 100px; - right: 25px; - - button { - cursor: pointer; - width: $button-width; - height: $button-width; - background-color: white; - border-left: $button-border; - border-right: $button-border; - border-bottom: $button-border; - border-top: none; - - &:nth-child(1) { - border-top: $button-border; - } - - &:hover { - color: white; - background-color: black; - } - } - } - - &.char-menubar { - - top: 10px; - left: 0px; - display: block; - width: 100%; - position: fixed; - text-align: center; - z-index: 10; - ul, li { - padding: 0; - margin: 0; - } - - - & > ul { - display: flex; - justify-content: center; - position: relative; - - li, button { - cursor: pointer; - } - - ul { - display: none; - position: absolute; - } - - & > li { - background-color: white; - width: 150px; - list-style-type: none; - border-top: $button-border; - border-right: $button-border; - border-bottom: $button-border; - - &:nth-child(1) { - border-left: $button-border; - } - } - - li:hover { - ul { - display: flex; - flex-direction: column; - position: absolute; - width: 152px; - - li { - border-left: $button-border; - border-right: $button-border; - border-bottom: $button-border; - list-style-type: none; - margin-left: -2px; - background-color: white; - - button { - border: none; - background-color: white; - width: 100%; - } - } - } - } - - } - - - - } - - .menubar__button.is-active{ - color: white; - background-color: black; - } - -} diff --git a/src/assets/menuchar.scss b/src/assets/menuchar.scss new file mode 100644 index 0000000..b123407 --- /dev/null +++ b/src/assets/menuchar.scss @@ -0,0 +1,112 @@ +@import '_vars'; + +$btn-width:120px; + + +/* Dropdown Button */ +.dropbtn { + background-color: $bg-color; + color: $txt-color; + //padding: 16px; + //font-size: 16px; + //border: none; + min-width: $btn-width; + border-top: $button-border; + border-right: $button-border-small; + border-bottom: $button-border; + border-left: $button-border-small; + + &.border-left{ + border-left : $button-border; + } + + &.border-right{ + border-right : $button-border; + } +} + + + +/* The container