plate-tool/plate-tool-web/assets/scss/default_theme/components/_upper_menu.scss

91 lines
1.2 KiB
SCSS
Raw Normal View History

2023-06-05 18:25:47 +00:00
@use "sass:color";
@use "../variables" as *;
div.upper_menu {
position: absolute;
top: 0px;
left: 0px;
$menu-height: min(2.5vh, 25px);
height: $menu-height;
padding-left: 1vw;
2023-06-05 20:54:15 +00:00
visibility: inherit;
Merge from import_from_csv feature branch Of course, there were other features that got tacked on... Squashed commit of the following: commit 3ee3bd2dab3ed362bf5be9acfea8db1f16f6fc9c Author: Emilia <contact@emiliaallison.com> Date: Fri Dec 29 19:12:16 2023 -0500 Superior clipboard manipulation Won't work on non-https connections, but actually works... commit 08f647cd01566e9000d71f677df0d96411ed4cd4 Author: Emilia <contact@emiliaallison.com> Date: Fri Dec 29 18:50:01 2023 -0500 Utility for copying plates as image commit 3456be2e9a07f63bf5d62ca685fe692303875888 Author: Emilia <contact@emiliaallison.com> Date: Fri Dec 29 17:46:38 2023 -0500 Change wording in options menu Father suggests that this wording is more clear to the end user. I agree! commit 4c79cc0b4dd5402a798ce8d7ac69599c03cf49d9 Author: Emilia <contact@emiliaallison.com> Date: Fri Dec 29 18:20:00 2023 -0500 Set default plate format to 96 well commit 056688c4ec690a384f57c194314cb924253770f5 Author: Emilia <contact@emiliaallison.com> Date: Fri Dec 29 18:12:00 2023 -0500 Implement in_transfer hashes toggle in plates commit 4937d4ad283b90629a80a213595a873d1a3a2615 Author: Emilia <contact@emiliaallison.com> Date: Fri Dec 29 18:11:00 2023 -0500 Preferences menu and toggle for in_transfer hashes commit 0101846b52393d1a050c2c7672274b4589c5c993 Author: Emilia <contact@emiliaallison.com> Date: Fri Dec 29 18:10:00 2023 -0500 Add preferences struct to main state commit ec37887c2f7e834ed7456625a9ec4c4cc7fea08f Author: Emilia <contact@emiliaallison.com> Date: Fri Dec 29 18:05:00 2023 -0500 Squashed commit of the following: commit 5e1137c46050d6d1d10fb1cbf842d5efd455f926 Author: Emilia <contact@emiliaallison.com> Date: Fri Dec 29 18:03:00 2023 -0500 Fix: indexing error w.r.t. logarithm argument commit 535b14a5867b15dea0e193c94829a0b99a29605c Author: Emilia <contact@emiliaallison.com> Date: Fri Dec 29 18:02:00 2023 -0500 Space colors evenly, consistently, etc Colors should now: - Not change if new transfers are added - Be evenly spaced throughout the palette - Be persistent across refreshes commit 6e08f479551315e072ec40853290d699220c9ba8 Author: Emilia <contact@emiliaallison.com> Date: Fri Dec 29 18:01:00 2023 -0500 Add palette function for ordered ids Given an id and a list of sorted ids, yields a color commit 88e838e102602f4d89ab65d8245a820158374959 Author: Emilia <contact@emiliaallison.com> Date: Fri Dec 29 18:00:00 2023 -0500 Switch to v7 UUIDs from v4 v7 UUIDs are timestamp based and thus we can establish a useful total ordering over them; will base colors on this commit 85d4b30d4795636add23a6a2c47b2068e24dbb74 Author: Emilia <contact@emiliaallison.com> Date: Tue Oct 24 21:18:10 2023 -0400 Update README.md Updated info about import/export, including the new Import Transfer from CSV feature. commit 11a561c1d447e1376e58f970f74d0778e8ed1722 Author: Emilia <contact@emiliaallison.com> Date: Tue Oct 24 20:32:51 2023 -0400 Add text to button commit 562dc2adf60b8569da579b1bb637cea344a7a596 Author: Emilia <contact@emiliaallison.com> Date: Tue Oct 24 20:32:40 2023 -0400 Change to make colors more evenly distributed commit 6b09aad289b83576bdf67882ee3f30b7f1d23619 Author: Emilia <contact@emiliaallison.com> Date: Tue Oct 24 19:27:02 2023 -0400 Implementation 1 commit a9e5f05fd9c0ebcbbb1c3cc86af8f30c92f373c5 Author: Emilia <contact@emiliaallison.com> Date: Tue Oct 24 17:18:45 2023 -0400 Hide parts of transfer menu when Custom transfer selected commit db345bfbb585c826c6f97424c5ee61337c4ffbfd Author: Emilia <contact@emiliaallison.com> Date: Tue Oct 24 17:18:08 2023 -0400 delete weird whitespace from Cargo.toml commit edcc3528aab3b17aedaf7b3424ece82ad09d591a Author: Emilia <contact@emiliaallison.com> Date: Tue Oct 24 16:41:58 2023 -0400 First implementation of custom region type commit 9a3a10c8b43e51471f74f79dfbef66b3f69ea0f5 Author: Emilia <contact@emiliaallison.com> Date: Tue Oct 24 16:21:30 2023 -0400 Transfer region no longer copy
2023-12-30 01:39:00 +00:00
display: flex;
2023-06-05 18:25:47 +00:00
div.dropdown {
margin-right: 2px;
position: relative;
display: flex;
flex-direction: column;
button {
vertical-align: top;
border: none;
padding: 0px 0.4em 0px 0.4em;
2023-06-05 18:25:47 +00:00
margin: 0;
cursor: pointer;
font-size: calc($menu-height*0.7);
}
* {
visibility: hidden;
}
2023-06-05 20:54:15 +00:00
& > *:first-child {
outline: 1px solid $color-dark;
2023-06-05 18:25:47 +00:00
visibility: visible;
}
&:hover {
outline: 2px solid $color-dark;
z-index: 2;
* {
visibility: visible;
outline: 1px solid $color-dark;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.4);
z-index: 1;
}
2023-06-05 18:25:47 +00:00
}
}
2023-06-05 20:54:15 +00:00
div.dropdown-sub {
position: relative;
height: $menu-height;
* {
visibility: hidden;
}
div {
display: none;
visibility: hidden;
}
& > *:first-child {
visibility: inherit;
}
&:hover {
visibility: visible;
div {
position: absolute;
left: 100%;
top: 0;
visibility: hidden;
display: flex;
flex-direction: column;
width: max-content;
}
}
}
2023-06-05 18:25:47 +00:00
}