tasko-frontend/style.css

437 lines
6.3 KiB
CSS

:root {
--navbar-text-color: #B5BDFB;
--sidebar-border: 1px solid #E6EBF1;
}
* {
font-family: 'Oswald', sans-serif;
letter-spacing: .05em;
}
html {
height: 100%;
}
body {
margin: 0;
height: 100%;
}
#__next,
.root-container {
height: 100%;
}
/* navbar */
header {
width: 100%;
/* position: fixed; */
position: sticky;
top: 0;
}
nav ul {
background-color: #465DEF;
margin: 0;
padding: 0;
display: flex;
flex-wrap: wrap;
}
nav div {
display: flex;
flex-wrap: wrap;
}
.navbar-options {
width: 65%;
}
.navbar-auth {
justify-content: flex-end;
width: 35%;
}
nav li {
display: flex;
}
nav a {
padding: 1em;
text-decoration: none;
color: var(--navbar-text-color);
font-size: 80%;
}
@media (min-width: 400px) {
nav a {
font-size: 90%;
}
}
nav img {
width: 1.1rem;
}
.navbar-auth li:first-of-type a {
border: solid 1px rgba(255, 255, 255, .1);
}
.navbar-auth li:last-of-type a:last-of-type {
background-color: #5D6CED;
color: #FFF;
}
/* footer */
footer {
position: fixed;
left: 0;
bottom: 0;
margin: .5em;
width: 100%;
color: #8F9DBE;
text-align: center;
font-size: 90%;
}
/* index page */
.page-content-center {
height: 100%;
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
h1 {
font-size: 1.4rem;
text-align: center;
}
.login-areas {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin: 1em;
}
.login-area {
display: flex;
flex-direction: column;
justify-content: space-between;
margin: 1em;
height: 10rem;
width: 18rem;
max-width: 300px;
color: #FFF;
border-radius: 2%;
}
.developer-account {
background-color: #4457F3;
}
.company-account {
background-color: #FF733F;
}
.login-area span {
display: inline-block;
margin: 1em;
}
.account-icon {
align-self: flex-end;
font-size: 2rem;
}
/* register page */
form {
display: flex;
flex-direction: column;
margin-top: 2%;
width: 90%;
max-width: 550px;
border-radius: 4px;
color: #838EAB;
}
form ul {
display: flex;
flex-direction: column;
margin: 0;
padding: 0;
box-shadow: 0px 7px 14px #32325D1A;
}
form li {
display: flex;
border-bottom: 1px solid #E6EBF1;
}
form span,
form input {
display: flex;
justify-content: center;
height: 3.5rem;
width: 3.5rem;
}
form span {
align-items: center;
border-right: 1px solid #E6EBF1;
}
form input {
width: 100%;
border: none;
padding-left: 1.75rem;
color: rgba(131, 142, 171, 1);
font-size: 110%;
}
form button {
border: none;
}
form button:first-of-type {
height: 3.5rem;
border-radius: 4px;
font-size: 110%;
color: #FFF;
margin-top: 10%;
transition: .4s;
}
.register-button {
background-color: #EB9771;
}
.register-button:hover {
background-color: #FF7325;
}
.login-button {
background-color: #39C3797E;
}
.login-button:hover {
background-color: #39C379;
}
form button:last-of-type {
margin-top: 5%;
background-color: #FFF;
color: #8F9DBE;
text-align: end;
}
/* tasks */
main {
display: flex;
margin: 0;
padding: 0;
height: 100%;
background: #E6EBF1;
}
div.task-description {
/* position: absolute;
left: 350px; */
display: flex;
flex-direction: column;
width: 100%;
max-width: 900px;
margin: 10%;
line-height: 1.2em;
}
.task-general-info {
display: flex;
justify-content: space-between;
width: 100%;
max-width: 900px;
}
.task-general-info > div:first-of-type {
display: flex;
flex-direction: column;
}
.task-general-info h2:first-of-type {
font-size: 120%;
}
.task-general-info h2:last-of-type {
margin-top: 0;
color: #838EAB;
}
.task-general-info img {
width: 4rem;
}
.task-border {
background: #FFF;
border-radius: 4px;
}
.task-description-heading {
display: flex;
height: 2.5rem;
align-items: center;
border-bottom: var(--sidebar-border);
}
.task-description-heading svg {
padding: 15px;
font-size: 120%;
color: #838DAC;
}
.programming-languages {
display: flex;
align-items: center;
justify-content: flex-end;
height: 3.5rem;
padding-right: 15px;
font-size: 90%;
border-bottom: var(--sidebar-border);
}
.programming-languages span {
padding: 1%;
border-radius: 10px;
background: #D7D0F0;
color: #5D47AA;
}
.task-description-summary,
.task-description-details {
padding: 15px;
}
.task-description-summary {
background: #F6F9FD;
}
.actions {
align-self: center;
justify-self: center;
display: flex;
height: 3.5rem;
width: 30%;
padding: 2rem;
border-radius: 4px;
}
.actions span {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
box-shadow: 0px 7px 14px #32325D1A;
border-radius: 4px;
}
.actions span:first-of-type {
background: #465DEF;
color: #FFF;
}
.actions svg {
padding: 15px;
color: #838DAC;
}
.task-description h2 {
font-size: 100%;
}
/* sidebar */
.sidebar {
/* position: absolute; */
width: 500px;
height: 100%;
border: var(--sidebar-border);
background: #F6F9FC;
}
.sidebar > div {
background: #FFF;
}
.search-area {
display: flex;
align-items: center;
height: 3.5rem;
border-bottom: var(--sidebar-border);
}
.search-area svg {
padding-right: 15px;
}
.search-area input {
border: none;
}
.recent-task-list > div {
/* position: relative; */
display: flex;
align-items: center;
width: 100%;
height: 2.5rem;
border-bottom: var(--sidebar-border);
}
.recent-task-list > ul {
/* position: absolute; */
display: flex;
flex-direction: column;
padding: 0;
margin: 0;
}
.recent-task-list > ul li {
display: block;
padding: 10px 10px 10px 15px;
border-bottom: var(--sidebar-border);
}
.search-area,
.recent-task-list > div {
padding-left: 15px;
}
/* recent task */
.recent-task {
display: flex;
font-size: 90%;
}
.recent-task span {
padding: 3px;
}
.recent-task-description {
display: flex;
flex-direction: column;
}
.recent-task > span:last-of-type {
align-self: center;
color: #838EAB;
}