sigit.io/src/pages/create/style.module.scss

202 lines
2.9 KiB
SCSS
Raw Normal View History

@import '../../styles/colors.scss';
2024-08-16 11:08:03 +02:00
.flexWrap {
display: flex;
flex-direction: column;
gap: 15px;
container-type: inline-size;
2024-08-16 11:08:03 +02:00
}
.orderedFilesList {
counter-reset: item;
list-style-type: none;
margin: 0;
li {
display: flex;
align-items: center;
transition: ease 0.4s;
border-radius: 4px;
background: #ffffff;
padding: 7px 10px;
color: rgba(0, 0, 0, 0.5);
min-height: 45px;
cursor: pointer;
gap: 10px;
&::before {
content: counter(item) ' ';
counter-increment: item;
font-size: 14px;
}
:nth-child(1) {
flex-grow: 1;
font-size: 16px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
button {
color: $primary-main;
}
&:hover,
&.active,
&:focus-within {
background: $primary-main;
color: white;
button {
color: white;
}
}
}
}
.uploadFileText {
margin-left: 12px;
}
2024-08-16 11:08:03 +02:00
.paperGroup {
border-radius: 4px;
background: white;
padding: 15px;
display: flex;
flex-direction: column;
gap: 15px;
overflow-x: hidden;
overflow-y: auto;
2024-05-14 14:27:05 +05:00
}
.inputWrapper {
display: flex;
align-items: center;
flex-shrink: 0;
height: 36px;
overflow: hidden;
border-radius: 4px;
outline: solid 1px #dddddd;
background: white;
width: 100%;
&:focus-within {
outline-color: $primary-main;
}
}
.addCounterpart {
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: start;
gap: 10px;
> .inputWrapper {
flex-shrink: 1;
}
}
.users {
flex-shrink: 0;
max-height: 33vh;
}
.user {
display: flex;
gap: 10px;
2024-05-14 14:27:05 +05:00
font-size: 14px;
text-align: start;
justify-content: center;
align-items: center;
2024-05-14 14:27:05 +05:00
a:hover {
text-decoration: none;
}
}
.avatar {
flex-grow: 1;
min-width: 0;
&:first-child {
margin-left: 24px;
}
img {
// Override the default avatar size
width: 30px;
height: 30px;
}
}
2024-08-19 14:55:26 +02:00
.fileName {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
flex-grow: 1;
}
2024-08-19 18:05:14 +02:00
.toolbox {
display: grid;
grid-template-columns: 1fr;
@container (min-width: 204px) {
grid-template-columns: repeat(2, 1fr);
}
@container (min-width: 309px) {
grid-template-columns: repeat(3, 1fr);
}
2024-08-19 18:05:14 +02:00
gap: 15px;
overflow-x: hidden;
overflow-y: auto;
container-type: inline-size;
2024-08-19 18:05:14 +02:00
}
.toolItem {
transition: ease 0.2s;
display: flex;
2024-08-19 18:05:14 +02:00
flex-direction: column;
gap: 5px;
border-radius: 4px;
padding: 10px 5px 5px 5px;
background: rgba(0, 0, 0, 0.05);
color: rgba(0, 0, 0, 0.5);
text-align: center;
2024-08-19 18:05:14 +02:00
align-items: center;
justify-content: center;
font-size: 14px;
cursor: pointer;
-webkit-user-select: none;
user-select: none;
&.selected {
background: $primary-main;
color: white;
}
&:not(.selected, .comingSoon) {
2024-08-19 18:05:14 +02:00
&:hover {
background: $primary-light;
color: white;
}
}
&.comingSoon {
opacity: 0.5;
cursor: not-allowed;
}
}