taskcafe/web/src/shared/components/TaskDetails/Styles.ts

284 lines
5.5 KiB
TypeScript
Raw Normal View History

2020-04-10 21:45:49 +02:00
import styled from 'styled-components';
import TextareaAutosize from 'react-autosize-textarea/lib';
2020-04-13 00:45:51 +02:00
import { mixin } from 'shared/utils/styles';
2020-04-10 21:45:49 +02:00
export const TaskHeader = styled.div`
2020-04-13 00:45:51 +02:00
padding: 21px 30px 0px;
margin-right: 70px;
2020-04-10 21:45:49 +02:00
display: flex;
2020-04-13 00:45:51 +02:00
flex-direction: column;
2020-04-10 21:45:49 +02:00
`;
export const TaskMeta = styled.div`
position: relative;
cursor: pointer;
font-size: 14px;
2020-04-13 00:45:51 +02:00
display: flex;
align-items: center;
2020-04-10 21:45:49 +02:00
border-radius: 4px;
`;
2020-04-13 00:45:51 +02:00
export const TaskGroupLabel = styled.span`
color: #c2c6dc;
font-size: 14px;
`;
export const TaskGroupLabelName = styled.span`
color: #c2c6dc;
text-decoration: underline;
font-size: 14px;
`;
2020-04-10 21:45:49 +02:00
export const TaskActions = styled.div`
2020-04-13 00:45:51 +02:00
position: absolute;
top: 0;
right: 0;
padding: 21px 18px 0px;
2020-04-10 21:45:49 +02:00
display: flex;
align-items: center;
`;
export const TaskAction = styled.button`
display: inline-flex;
align-items: center;
justify-content: center;
height: 32px;
cursor: pointer;
padding: 0px 9px;
`;
export const TaskDetailsWrapper = styled.div`
display: flex;
padding: 0px 30px 60px;
`;
export const TaskDetailsContent = styled.div`
width: 65%;
padding-right: 50px;
`;
export const TaskDetailsSidebar = styled.div`
width: 35%;
`;
export const TaskDetailsTitleWrapper = styled.div`
height: 44px;
width: 100%;
2020-04-13 00:45:51 +02:00
margin: 0 0 0 -8px;
2020-04-10 21:45:49 +02:00
display: inline-block;
`;
export const TaskDetailsTitle = styled(TextareaAutosize)`
line-height: 1.28;
resize: none;
box-shadow: transparent 0px 0px 0px 1px;
font-size: 24px;
font-family: 'Droid Sans';
font-weight: 700;
2020-04-13 00:45:51 +02:00
padding: 4px;
background: #262c49;
2020-04-10 21:45:49 +02:00
border-width: 1px;
border-style: solid;
border-color: transparent;
border-image: initial;
transition: background 0.1s ease 0s;
overflow-y: hidden;
width: 100%;
2020-04-13 00:45:51 +02:00
color: #c2c6dc;
2020-04-10 21:45:49 +02:00
&:focus {
2020-04-13 00:45:51 +02:00
box-shadow: rgb(115, 103, 240) 0px 0px 0px 1px;
background: ${mixin.darken('#262c49', 0.15)};
2020-04-10 21:45:49 +02:00
}
`;
export const TaskDetailsLabel = styled.div`
2020-04-13 00:45:51 +02:00
padding: 24px 0px 12px;
2020-04-10 21:45:49 +02:00
font-size: 15px;
font-weight: 600;
2020-04-13 00:45:51 +02:00
color: #c2c6dc;
2020-04-10 21:45:49 +02:00
`;
export const TaskDetailsAddDetailsButton = styled.div`
2020-04-13 00:45:51 +02:00
background: ${mixin.darken('#262c49', 0.15)};
2020-04-10 21:45:49 +02:00
box-shadow: none;
border: none;
border-radius: 3px;
display: block;
min-height: 56px;
padding: 8px 12px;
text-decoration: none;
font-size: 14px;
cursor: pointer;
2020-04-13 00:45:51 +02:00
color: #c2c6dc;
2020-04-10 21:45:49 +02:00
&:hover {
2020-04-13 00:45:51 +02:00
background: ${mixin.darken('#262c49', 0.25)};
2020-04-10 21:45:49 +02:00
box-shadow: none;
border: none;
}
`;
export const TaskDetailsEditorWrapper = styled.div`
display: block;
float: left;
padding-bottom: 9px;
z-index: 50;
width: 100%;
`;
export const TaskDetailsEditor = styled(TextareaAutosize)`
width: 100%;
min-height: 108px;
2020-04-13 00:45:51 +02:00
color: #c2c6dc;
background: #262c49;
box-shadow: rgb(115, 103, 240) 0px 0px 0px 1px;
2020-04-10 21:45:49 +02:00
border-radius: 3px;
line-height: 20px;
padding: 8px 12px;
outline: none;
border: none;
&:focus {
2020-04-13 00:45:51 +02:00
box-shadow: rgb(115, 103, 240) 0px 0px 0px 1px;
background: ${mixin.darken('#262c49', 0.05)};
2020-04-10 21:45:49 +02:00
}
`;
export const TaskDetailsMarkdown = styled.div`
width: 100%;
cursor: pointer;
2020-04-13 00:45:51 +02:00
color: #c2c6dc;
2020-04-10 21:45:49 +02:00
`;
export const TaskDetailsControls = styled.div`
clear: both;
margin-top: 8px;
`;
export const ConfirmSave = styled.div`
background-color: #5aac44;
box-shadow: none;
border: none;
color: #fff;
float: left;
margin: 0 4px 0 0;
cursor: pointer;
display: inline-block;
font-weight: 400;
line-height: 20px;
padding: 6px 12px;
text-align: center;
border-radius: 3px;
font-size: 14px;
`;
export const CancelEdit = styled.div`
display: flex;
align-items: center;
justify-content: center;
height: 32px;
width: 32px;
cursor: pointer;
`;
2020-04-13 00:45:51 +02:00
export const TaskDetailSectionTitle = styled.div`
text-transform: uppercase;
color: #c2c6dc;
font-size: 12.5px;
font-weight: 600;
margin: 24px 0px 5px;
`;
export const TaskDetailAssignees = styled.div`
display: flex;
flex-wrap: wrap;
align-items: center;
`;
export const TaskDetailAssignee = styled.div`
&:hover {
opacity: 0.8;
}
margin-right: 4px;
`;
export const ProfileIcon = styled.div`
width: 32px;
height: 32px;
border-radius: 9999px;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-weight: 700;
background: rgb(115, 103, 240);
cursor: pointer;
`;
export const TaskDetailsAddMember = styled.div`
border-radius: 100%;
background: ${mixin.darken('#262c49', 0.15)};
cursor: pointer;
&:hover {
opacity: 0.8;
}
`;
export const TaskDetailsAddMemberIcon = styled.div`
height: 32px;
width: 32px;
display: flex;
align-items: center;
justify-content: center;
`;
export const TaskDetailLabels = styled.div`
display: flex;
align-items: center;
flex-wrap: wrap;
`;
export const TaskDetailLabel = styled.div`
&:hover {
opacity: 0.8;
}
background-color: #00c2e0;
color: #fff;
cursor: pointer;
display: flex;
align-items: center;
border-radius: 3px;
box-sizing: border-box;
display: block;
float: left;
font-weight: 600;
height: 32px;
line-height: 32px;
margin: 0 4px 4px 0;
min-width: 40px;
padding: 0 12px;
width: auto;
`;
export const TaskDetailsAddLabel = styled.div`
border-radius: 3px;
background: ${mixin.darken('#262c49', 0.15)};
cursor: pointer;
&:hover {
opacity: 0.8;
}
`;
export const TaskDetailsAddLabelIcon = styled.div`
height: 32px;
width: 32px;
display: flex;
align-items: center;
justify-content: center;
`;
export const NoDueDateLabel = styled.span`
color: rgb(137, 147, 164);
font-size: 14px;
cursor: pointer;
`;