diff --git a/assets/buttons/menu.svg b/assets/buttons/dashboard.svg similarity index 100% rename from assets/buttons/menu.svg rename to assets/buttons/dashboard.svg diff --git a/css/dock-buttons.css b/css/dock-buttons.css new file mode 100644 index 0000000..326900e --- /dev/null +++ b/css/dock-buttons.css @@ -0,0 +1,54 @@ +/*Web buttons*/ + +.buttonContainer { + width: 36px; + height: 36px; + position: relative; + background: var(--base-container); + border-radius: var(--rounded-radius); + margin: 2px; + padding: 5px; + border: none; + cursor: pointer; + transition: transform .2s; +} + +.buttonContainer div { + background-size: cover; + width: 36px; + height: 36px; + border: none; + + position:absolute; + left:0; right:0; + top:0; bottom:0; + margin:auto; + + max-width:100%; + max-height:100%; + overflow:auto; +} + +.buttonContainer:hover { + background: var(--base-hover-bg); + + -ms-transform: scale(1.25); + -webkit-transform: scale(1.25); + transform: scale(1.25); +} + +.buttonContainer:active { + background: var(--base-active-bg); + + -ms-transform: scale(1); + -webkit-transform: scale(1); + transform: scale(1); +} + +#buttonImage0 { + background-image: url("../assets/buttons/launch.svg"); +} + +#buttonImage9 { + background-image: url("../assets/buttons/menu.svg"); +} \ No newline at end of file diff --git a/css/style.css b/css/style.css index aa69dac..dec135a 100644 --- a/css/style.css +++ b/css/style.css @@ -4,6 +4,7 @@ @import url('top-panel.css'); @import url('clock.css'); @import url('dock.css'); +@import url('dock-buttons.css'); :root { /* Colors */ diff --git a/index.html b/index.html index ef8dd78..8534abb 100644 --- a/index.html +++ b/index.html @@ -42,7 +42,6 @@