Files
guild_front/src/pages/Tracker/tracker.scss
2024-04-15 22:34:33 +03:00

1360 lines
30 KiB
SCSS

.tracker {
background: #f1f1f1;
display: flex;
flex-direction: column;
min-height: 100vh;
position: relative;
.container {
max-width: 1160px;
padding: 0 15px;
@media (max-width: 570px) {
margin-top: 0;
}
}
&__content {
margin-top: 23px;
}
&__title {
font-weight: 700;
font-size: 22px;
line-height: 32px;
margin-bottom: 27px;
}
&__tabs {
display: flex;
flex-direction: column;
flex: 1;
&__head {
display: flex;
max-width: 1160px;
width: 100%;
background: #e1fccf;
border-radius: 12px 12px 0 0;
margin: 0 auto;
position: relative;
height: 60px;
@media (max-width: 650px) {
justify-content: space-between;
position: relative;
top: 15px;
}
}
.tab {
display: flex;
padding: 12px 40px 15px 19px;
cursor: pointer;
align-items: center;
color: black;
img {
width: 16px;
height: 16px;
}
@media (max-width: 490px) {
padding: 8px 20px 8px 14px;
}
@media (max-width: 370px) {
padding: 5px 15px 5px 10px;
}
p {
font-weight: 400;
font-size: 16px;
line-height: 32px;
margin: 0 0 0 14px;
@media (max-width: 490px) {
font-size: 13px;
white-space: nowrap;
}
}
@media (max-width: 650px) {
border-radius: 10px 10px 0 0;
padding: 10px;
align-items: center;
p {
margin-left: 5px;
}
}
}
.active-tab {
background: white;
border-radius: 12px 12px 0px 0px;
position: relative;
height: 73px;
display: flex;
top: -13px;
align-items: center;
p {
font-weight: 600;
}
img {
filter: invert(0%) sepia(0%) saturate(2411%) hue-rotate(-25deg)
brightness(118%) contrast(119%);
}
@media (max-width: 650px) {
padding: 10px 20px;
}
}
&__content {
width: 100%;
background: #ffffff;
padding: 20px 0;
&__wrapper {
max-width: 1160px;
width: 100%;
margin: 0 auto;
}
&__projects {
flex-wrap: wrap;
column-gap: 34px;
row-gap: 30px;
display: none;
align-items: center;
@media (max-width: 785px) {
row-gap: 25px;
padding: 0 15px 20px;
}
.no-projects {
display: flex;
flex-direction: column;
padding: 20px;
width: 100%;
&__create-new {
display: flex;
div {
display: flex;
align-items: center;
margin-right: 35px;
p {
font-weight: 700;
font-size: 22px;
line-height: 32px;
color: #000000;
margin-left: 17px;
}
}
}
}
.create-project-btn {
width: 22%;
height: 140px;
border-radius: 12px;
background: #ecf8e5;
color: #000000;
display: flex;
flex-direction: column;
justify-content: flex-start;
transition: 0.4s;
padding: 10px 10px;
&__text {
color: #1458dd;
text-align: center;
font-weight: 700;
font-size: 18px;
margin: 0 0 25px 0;
}
&__content {
display: flex;
align-items: center;
margin: 0 20px 0 20px;
font-size: 10px;
font-weight: 400;
img {
margin: 0 20px 0 0;
}
p {
text-align: left;
}
}
&:hover {
transition: 0.4s;
box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.11);
}
@media (max-width: 1068px) {
width: 47%;
}
@media (max-width: 785px) {
max-width: 394px;
width: 100%;
}
}
}
&__tasks {
display: none;
background: #ffffff;
border-radius: 12px;
flex-direction: column;
@media (max-width: 650px) {
border-radius: 0;
}
}
.tasks {
&__head {
border-bottom: 1px solid #dde2e4;
padding: 0 35px 15px;
&__title {
display: flex;
align-items: center;
column-gap: 5px;
img {
height: 22px;
}
}
@media (max-width: 1000px) {
padding: 0 15px 15px;
}
&__wrapper {
display: flex;
max-width: 1400px;
width: 100%;
margin: 0 auto;
justify-content: space-between;
padding: 0 10px;
align-items: center;
&__fullScreen {
max-width: 1160px;
}
@media (max-width: 1350px) {
display: flex;
flex-wrap: wrap;
gap: 10px;
padding: 0px;
}
}
h5 {
color: #1458dd;
font-weight: 700;
font-size: 22px;
line-height: 32px;
margin-bottom: 0;
max-width: 160px;
word-break: break-all;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
@media (max-width: 1350px) {
width: 100%;
max-width: none;
}
}
&__add {
display: flex;
margin: 0 10px 0 15px;
.button-add-column {
width: 33px;
height: 33px;
font-size: 15px;
display: flex;
align-items: center;
justify-content: center;
}
p {
margin-left: 5px;
font-weight: 300;
font-size: 14px;
line-height: 17px;
max-width: 120px;
display: flex;
align-items: center;
}
@media (max-width: 1350px) {
margin-left: 0;
}
@media (max-width: 700px) {
width: 100%;
}
}
.no-project-users {
@media (max-width: 900px) {
position: inherit;
.add-person {
position: inherit;
}
p {
position: inherit;
margin-left: 14px;
}
}
}
&__checkBox {
margin: 0 15px 0 0;
cursor: pointer;
display: flex;
align-items: center;
@media (max-width: 650px) {
margin: 0;
}
span {
color: #252c32;
font-weight: 400;
font-size: 14px;
line-height: 24px;
}
&__box {
width: 20px;
height: 20px;
border-radius: 6px;
border: solid 1px gray;
margin-left: 5px;
display: flex;
justify-content: center;
align-items: center;
img {
width: 18px;
height: 18px;
}
}
}
&__back {
cursor: pointer;
display: flex;
align-items: center;
color: black;
min-width: 180px;
max-width: 180px;
width: 100%;
p {
font-weight: 400;
font-size: 14px;
line-height: 17px;
}
img {
margin-left: 10px;
width: 20px;
}
&:hover {
p {
font-weight: 500;
}
}
@media (max-width: 1150px) {
display: none;
}
}
}
&__container {
padding: 10px;
display: flex;
column-gap: 15px;
margin: 0 auto;
overflow: auto;
max-width: 100%;
transform: scaleY(-1);
align-items: end;
&::-webkit-scrollbar {
height: 8px;
border-radius: 10px;
}
&::-webkit-scrollbar-thumb {
background: #cbd9f9;
border-radius: 20px;
}
&::-webkit-scrollbar-track {
background: #c5c0c6;
border-radius: 20px;
}
@media (max-width: 900px) {
padding: 5px;
flex-direction: column;
row-gap: 15px;
transform: none;
}
}
.board {
&__head {
position: relative;
display: flex;
justify-content: space-between;
min-width: 300px;
padding-left: 18px;
&__more {
display: flex;
align-items: center;
}
span {
color: #6f6f6f;
font-weight: 500;
font-size: 16px;
line-height: 24px;
max-width: 250px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.add {
color: #6f6f6f;
font-size: 19px;
cursor: pointer;
&:hover {
font-weight: 600;
}
}
.more {
margin-left: 22px;
position: relative;
bottom: 4px;
font-size: 20px;
cursor: pointer;
width: 15px;
&:hover {
font-weight: 600;
}
}
.done {
color: #406128;
font-weight: 700;
}
}
}
}
.active__content {
display: flex;
}
&__all-tasks {
max-width: 1160px;
padding: 0 20px;
margin: 0 auto;
display: flex;
flex-direction: column;
.task-list {
&__head {
display: flex;
justify-content: space-between;
width: 100%;
align-items: center;
padding-bottom: 8px;
@media (max-width: 550px) {
flex-direction: column;
row-gap: 10px;
align-items: start;
}
h3 {
font-weight: 700;
font-size: 18px;
line-height: 32px;
margin-bottom: 0;
color: #1458dd;
@media (max-width: 590px) {
font-size: 15px;
}
}
&__search {
// margin-left: auto;
padding: 6px 12px;
display: flex;
align-items: center;
background: #ffffff;
border: 1px solid #dde2e4;
box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
border-radius: 6px;
max-width: 300px;
width: 100%;
&:focus-within {
border: 1px solid #0000004d;
}
@media (max-width: 690px) {
max-width: 350px;
}
@media (max-width: 550px) {
max-width: none;
margin-left: inherit;
}
img {
width: 14px;
}
input {
width: 100%;
padding-left: 10px;
outline: none;
border: none;
font-weight: 400;
font-size: 14px;
line-height: 24px;
}
}
}
&__tasks-period {
display: flex;
align-items: center;
gap: 25px;
.buttons-month {
display: flex;
gap: 34px;
button {
width: 30px;
height: 30px;
background-color: #8dc63f;
border-radius: 15px;
border: none;
img {
width: 14px;
height: 14px;
}
&:first-child {
transform: rotate(-180deg);
}
}
}
.month-period {
display: flex;
flex-direction: row;
align-items: center;
p {
color: #1458dd;
font-size: 33px;
font-style: normal;
font-weight: 700;
line-height: 32px;
margin-right: 50px;
}
h3 {
color: #252c32;
font-size: 18px;
font-weight: 700;
margin-left: 5px;
}
}
}
&__filters {
display: flex;
gap: 10px;
font-size: 12px;
&-filter {
width: 116px;
height: 40px;
img {
margin-right: 14px;
}
}
&-clear {
width: 151px;
height: 40px;
background: #b0babf;
}
}
&__time {
padding: 30px 40px 20px 40px;
border-radius: 12px;
background: #e1fccf;
width: 100%;
margin-top: 20px;
display: flex;
justify-content: space-between;
h3 {
color: #111112;
font-size: 17px;
font-weight: 700;
line-height: 32px;
margin: 0;
}
&-compited {
display: flex;
flex-direction: column;
p {
font-weight: 700;
color: #1458dd;
font-size: 22px;
}
h4 {
color: #5b6871;
font-size: 14px;
margin-bottom: 12px;
}
h3 {
display: flex;
gap: 20px;
}
}
&-all {
display: flex;
gap: 20px;
align-items: flex-end;
p {
font-weight: 700;
color: #1458dd;
font-size: 22px;
}
}
&-status {
display: flex;
gap: 64px;
div {
display: flex;
flex-direction: row;
align-items: flex-end;
gap: 10px;
p {
width: 63px;
font-size: 12px;
color: #5b6871;
font-weight: 400;
}
}
}
}
&__end {
display: flex;
align-items: center;
justify-content: center;
gap: 24px;
margin: 24px 0 40px 0;
.close-day {
padding: 8px 25px;
font-size: 17px;
font-style: normal;
font-weight: 500;
}
p {
color: #5b6871;
font-size: 14px;
font-style: normal;
font-weight: 400;
}
}
&__wrapper {
margin-top: 10px;
display: flex;
flex-direction: column;
row-gap: 15px;
max-height: 400px;
overflow-y: auto;
margin-right: -16px;
padding-right: 10px;
&::-webkit-scrollbar {
width: 4px;
background: 0 0;
box-shadow: 0 0 14px rgba(0, 0, 0, 0.04);
border-radius: 20px;
}
&::-webkit-scrollbar {
width: 4px;
border-radius: 20px;
}
&::-webkit-scrollbar-thumb {
background: #cbd9f9;
border-radius: 20px;
}
&::-webkit-scrollbar-track {
background: #c5c0c6;
border-radius: 20px;
}
.task {
display: flex;
background: #f1f1f1;
border-radius: 12px;
padding: 12px 42px 7px 32px;
justify-content: space-between;
transition: 0.4s;
cursor: pointer;
&:hover {
transform: scale(0.99);
box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.11);
transition: 0.4s;
}
&__info {
display: flex;
flex-direction: column;
max-width: 535px;
@media (max-width: 820px) {
text-align: center;
max-width: none;
}
h5 {
font-weight: 700;
font-size: 20px;
line-height: 24px;
margin-bottom: 0;
@media (max-width: 820px) {
font-size: 19px;
}
}
p {
font-size: 16px;
line-height: 32px;
max-width: 710px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
&__person {
display: flex;
align-items: center;
img {
width: 40px;
}
@media (max-width: 820px) {
justify-content: center;
}
}
&__project {
display: flex;
flex-direction: column;
margin-left: 20px;
p {
font-size: 16px;
font-weight: 500;
}
span {
font-size: 14px;
}
}
@media (max-width: 820px) {
row-gap: 10px;
flex-direction: column;
}
@media (max-width: 650px) {
background-color: white;
}
@media (max-width: 450px) {
padding: 12px 15px;
}
}
}
}
@media (max-width: 650px) {
padding-bottom: 20px;
}
}
.hide-desc {
display: none !important;
transition: 0.4s;
}
&__archive {
max-width: 1160px;
padding: 0 20px;
margin: 0 auto;
display: flex;
flex-direction: column;
.archive {
&__title {
padding-bottom: 8px;
display: flex;
align-items: center;
color: #000;
min-height: 48px;
h3 {
font-weight: 700;
font-size: 18px;
line-height: 32px;
margin-bottom: 0;
@media (max-width: 590px) {
font-size: 15px;
}
}
p {
margin: 0 0 0 10px;
font-weight: 300;
font-size: 18px;
@media (max-width: 590px) {
font-size: 15px;
}
}
@media (max-width: 450px) {
flex-wrap: wrap;
}
}
&__tasks-wrapper {
margin-top: 20px;
display: flex;
flex-direction: column;
row-gap: 15px;
overflow-y: auto;
margin-right: -16px;
padding-right: 10px;
&::-webkit-scrollbar {
width: 4px;
background: 0 0;
box-shadow: 0 0 14px rgba(0, 0, 0, 0.04);
border-radius: 20px;
}
&::-webkit-scrollbar {
width: 4px;
border-radius: 20px;
}
&::-webkit-scrollbar-thumb {
background: #cbd9f9;
border-radius: 20px;
}
&::-webkit-scrollbar-track {
background: #c5c0c6;
border-radius: 20px;
}
}
&__complete-task {
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
background: #f1f1f1;
border-radius: 12px;
padding: 12px 15px 7px 16px;
p {
max-width: 420px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
margin-bottom: 0;
color: #111112;
}
.complete-task__title {
font-weight: 700;
font-size: 18px;
line-height: 32px;
}
&__time {
p {
color: #000;
font-size: 14px;
font-style: normal;
}
}
&__info {
display: flex;
align-items: center;
img {
width: 32px;
height: 32px;
}
&__project {
margin-left: 17px;
span {
color: #807777;
font-weight: 500;
font-size: 10px;
}
p {
color: #1a1919;
font-weight: 500;
font-size: 14px;
line-height: 24px;
text-decoration: line-through;
}
}
}
&-project {
background: #f1f1f1;
width: 328px;
max-width: 328px;
border-radius: 8px;
display: flex;
flex-direction: column;
padding: 23px 23px 23px 33px;
transition: 0.4s;
margin-bottom: 15px;
.project-title-archive {
width: 274px;
max-width: 274px;
color: #111112;
font-size: 16px;
font-style: normal;
font-weight: 700;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
&:hover {
cursor: pointer;
transform: scale(0.99);
box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.11);
transition: 0.4s;
}
}
&__description {
width: 270px;
max-width: 270px;
font-size: 14px;
font-weight: 500;
.date {
font-weight: 500;
font-size: 14px;
line-height: 24px;
color: #6f6f6f;
p {
overflow: hidden;
max-width: 260px;
max-height: 120px;
text-overflow: ellipsis;
}
}
}
&__creator {
display: flex;
align-items: center;
gap: 13px;
img {
width: 31.366px;
height: 29px;
}
h4 {
color: #5b6871;
font-size: 10px;
font-style: normal;
font-weight: 400;
}
p {
color: #2d4a17;
font-size: 13px;
font-style: normal;
font-weight: 500;
}
}
@media (max-width: 740px) {
flex-direction: column;
padding: 10px 20px;
}
@media (max-width: 650px) {
background-color: white;
}
}
&__tasks {
padding-right: 15px;
@media (max-width: 1100px) {
width: 100%;
}
&-period {
display: flex;
align-items: center;
margin-left: 73px;
.buttons-month {
display: flex;
gap: 34px;
button {
width: 30px;
height: 30px;
background-color: #8dc63f;
border-radius: 15px;
border: none;
img {
width: 14px;
height: 14px;
}
&:first-child {
transform: rotate(-180deg);
}
}
}
.month-period {
display: flex;
flex-direction: row;
align-items: center;
margin-left: 62px;
h2 {
color: #1458dd;
}
h3 {
color: #252c32;
font-size: 18px;
font-weight: 700;
margin-left: 5px;
}
}
}
&__search {
margin-left: auto;
padding: 6px 12px;
display: flex;
align-items: center;
background: #ffffff;
border: 1px solid #dde2e4;
box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
border-radius: 6px;
max-width: 300px;
width: 100%;
&:focus-within {
border: 1px solid #0000004d;
}
@media (max-width: 590px) {
max-width: 230px;
}
@media (max-width: 500px) {
max-width: 150px;
}
@media (max-width: 450px) {
margin-left: 0;
max-width: none;
}
input {
width: 100%;
padding-left: 10px;
outline: none;
border: none;
font-weight: 400;
font-size: 14px;
line-height: 24px;
}
img {
width: 14px;
height: 14px;
}
}
}
&__projects {
display: flex;
flex-direction: column;
@media (max-width: 1100px) {
width: 100%;
min-height: auto;
}
&-title {
background: #e1fccf;
display: flex;
align-items: center;
height: 66px;
border-radius: 12px;
margin: 25px 0 0 0;
padding-left: 15px;
color: #000;
font-style: normal;
h3 {
font-size: 16px;
font-weight: 700;
margin: 0 5px 0 0;
}
p {
font-size: 16px;
font-weight: 300;
}
}
}
&__no-item {
padding: 23px 0 19px;
color: #6f6f6f;
p {
font-size: 17px;
font-style: normal;
font-weight: 700;
padding-left: 15px;
}
@media (max-width: 650px) {
background-color: white;
}
&-project {
background: #f1f1f1;
width: 328px;
height: 108px;
border-radius: 8px;
display: flex;
gap: 21px;
padding: 23px;
align-items: center;
p {
width: 105px;
color: #6f6f6f;
font-size: 16px;
font-style: normal;
font-weight: 700;
}
img {
margin-left: 10px;
}
}
}
}
}
}
@media (max-width: 650px) {
&__content {
padding: 28px 0 0;
.project {
background-color: #eeeeee;
max-width: 394px;
}
}
}
}
.table {
&__search {
display: flex;
background: #f0f2f5;
border-radius: 5px;
width: 100%;
padding: 14px 12px;
column-gap: 10px;
align-items: center;
margin-bottom: 20px;
img {
width: 20px;
height: 20px;
}
input {
background: none;
border: none;
outline: none;
font-size: 16px;
color: #9babc5;
width: 100%;
&::placeholder {
color: #9babc5;
}
}
}
&__pagination {
display: flex;
margin: 25px auto 0;
column-gap: 12px;
button {
font-size: 14px;
width: 32px;
border-radius: 5px;
height: 32px;
color: #2e3a59;
}
.switch {
border: none;
background: #f0f2f5;
font-weight: 600;
}
.disable {
opacity: 0.7;
}
}
&__pages {
display: flex;
column-gap: 4px;
color: black;
background: white;
.page {
border: 1px solid #e8ecf8;
background: none;
&--active {
border: none;
background: #9da65d;
color: white;
}
}
}
}
table {
grid-template-columns: minmax(0px, 2fr) minmax(0px, 1fr) minmax(0px, 1fr) minmax(
0px,
1fr
);
th {
border-top: none;
border-bottom: 1px solid #f5f6f8;
color: #2e3a59;
padding: 0 7.5px 15px;
}
td {
padding: 22px 7.5px;
color: #2e3a59;
border-top: none;
p {
max-width: 430px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
}
}