Dwinzo_dev/app/src/styles/components/tools.scss

193 lines
3.8 KiB
SCSS
Raw Normal View History

2025-03-25 06:17:41 +00:00
@use "../abstracts/variables" as *;
@use "../abstracts/mixins" as *;
.tools-container {
@include flex-center;
position: fixed;
2025-03-25 08:55:51 +00:00
bottom: 50px;
2025-03-25 06:17:41 +00:00
left: 50%;
transform: translate(-50%, 0);
padding: 8px;
gap: 10px;
box-shadow: #{$box-shadow-medium};
border-radius: #{$border-radius-large};
width: fit-content;
transition: width 0.2s;
background-color: var(--background-color);
z-index: #{$z-index-default};
2025-03-25 06:17:41 +00:00
.split {
height: 20px;
width: 2px;
border-radius: 2px;
background: var(--highlight-accent-color);
}
2025-03-25 08:55:51 +00:00
2025-03-25 06:17:41 +00:00
.draw-tools,
.general-options,
.activeDropicon {
@include flex-center;
gap: 8px;
interpolate-size: allow-keywords;
width: 0;
opacity: 0;
animation: expandWidth 0.2s ease-in-out forwards;
2025-03-25 08:55:51 +00:00
2025-03-25 06:17:41 +00:00
.tool-button {
@include flex-center;
height: 28px;
width: 28px;
cursor: pointer;
border-radius: #{$border-radius-small};
2025-03-25 08:55:51 +00:00
2025-03-25 06:17:41 +00:00
&:hover {
2025-03-25 08:55:51 +00:00
background: color-mix(in srgb,
var(--highlight-accent-color) 60%,
transparent);
2025-03-25 06:17:41 +00:00
}
}
2025-03-25 08:55:51 +00:00
2025-03-25 06:17:41 +00:00
.active {
background-color: var(--accent-color);
2025-03-25 08:55:51 +00:00
2025-03-25 06:17:41 +00:00
&:hover {
background-color: var(--accent-color);
}
}
}
2025-03-25 08:55:51 +00:00
2025-03-25 06:17:41 +00:00
.activeDropicon {
gap: 2px;
2025-03-25 08:55:51 +00:00
2025-03-25 06:17:41 +00:00
.drop-down-option-button {
@include flex-center;
height: 28px;
cursor: pointer;
border-radius: #{$border-radius-small};
position: relative;
2025-03-25 08:55:51 +00:00
2025-03-25 06:17:41 +00:00
&:hover {
2025-03-25 08:55:51 +00:00
background: color-mix(in srgb,
var(--highlight-accent-color) 60%,
transparent);
2025-03-25 06:17:41 +00:00
}
2025-03-25 08:55:51 +00:00
2025-03-25 06:17:41 +00:00
.drop-down-container {
position: absolute;
bottom: 40px;
left: 0;
box-shadow: #{$box-shadow-medium};
padding: 8px;
border-radius: #{$border-radius-large};
background: var(--background-color);
2025-03-26 06:00:17 +00:00
2025-03-25 06:17:41 +00:00
.option-list {
margin: 4px 0;
display: flex;
align-items: center;
white-space: nowrap;
border-radius: #{$border-radius-medium};
gap: 6px;
padding: 4px;
2025-03-25 08:55:51 +00:00
2025-03-25 06:17:41 +00:00
&:hover {
background-color: var(--highlight-accent-color);
color: var(--accent-color);
2025-03-25 08:55:51 +00:00
2025-03-25 06:17:41 +00:00
path {
stroke: var(--accent-color);
}
}
2025-03-25 08:55:51 +00:00
2025-03-25 06:17:41 +00:00
.active-option {
height: 12px;
width: 12px;
@include flex-center;
}
2025-03-25 08:55:51 +00:00
2025-03-25 06:17:41 +00:00
.option {
color: inherit;
}
}
}
}
}
2025-03-25 08:55:51 +00:00
2025-03-25 06:17:41 +00:00
.toggle-threed-button {
@include flex-center;
padding: 3px;
border-radius: #{$border-radius-small};
background-color: var(--highlight-accent-color);
gap: 2px;
position: relative;
2025-03-25 08:55:51 +00:00
2025-03-25 06:17:41 +00:00
.toggle-option {
font-size: var(--font-size-small);
padding: 2px;
z-index: 1;
transition: all 0.2s;
}
2025-03-25 08:55:51 +00:00
2025-03-25 06:17:41 +00:00
&::after {
content: "";
position: absolute;
background-color: var(--accent-color);
left: 3px;
top: 3px;
height: 18px;
width: 18px;
border-radius: #{$border-radius-small};
transition: all 0.2s;
}
2025-03-25 08:55:51 +00:00
2025-03-25 06:17:41 +00:00
.active {
color: var(--highlight-accent-color);
}
}
2025-03-25 08:55:51 +00:00
2025-03-25 06:17:41 +00:00
.toggled {
&::after {
left: 24px;
}
}
2025-03-25 08:55:51 +00:00
2025-03-26 06:00:17 +00:00
}
.exitPlay {
width: 30px;
height: 30px;
border-radius: 50%;
background-color: var(--accent-color);
cursor: pointer;
@include flex-center;
position: fixed;
bottom: 50px;
left: 50%;
transform: translate(-50%, 0);
transition: background-color 0.3s, transform 0.3s;
color: var(--background-color);
transform: none;
&:hover {
2025-03-25 08:55:51 +00:00
background-color: var(--accent-color);
transform: scale(1.1);
}
2025-03-25 06:17:41 +00:00
}
2025-03-26 06:00:17 +00:00
2025-03-25 06:17:41 +00:00
@keyframes expandWidth {
from {
width: 0;
opacity: 0;
}
2025-03-25 08:55:51 +00:00
2025-03-25 06:17:41 +00:00
to {
width: fit-content;
opacity: 1;
}
2025-03-25 08:55:51 +00:00
}