ribc/css/main.scss
2022-10-04 18:30:14 +05:30

1945 lines
32 KiB
SCSS

* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: "Roboto", sans-serif;
}
:root {
font-size: clamp(1rem, 1.2vmax, 1.2rem);
}
html,
body {
height: 100%;
}
body {
--accent-color: #3d5afe;
--secondary-color: #ffac2e;
--text-color: 20, 20, 20;
--foreground-color: 252, 253, 255;
--background-color: 241, 243, 248;
--danger-color: rgb(255, 75, 75);
--green: #1cad59;
--yellow: rgb(220, 165, 0);
// Accent colors
--dark-red: #d40e1e;
--red: #f50000;
--kinda-pink: #e40273;
--purple: #462191;
--shady-blue: #324de6;
--nice-blue: #3d5afe;
--maybe-cyan: #00b0ff;
--teal: #00bcd4;
--mint-green: #16c79a;
--yellowish-green: #66bb6a;
--greenish-yellow: #8bc34a;
--dark-teal: #11698e;
--tangerine: #ff6f00;
--orange: #ff9100;
--redish-orange: #ff3d00;
color: rgba(var(--text-color), 1);
background-color: rgba(var(--background-color), 1);
overflow-y: hidden;
}
body[data-theme="dark"] {
--accent-color: #6d83ff;
--secondary-color: #d60739;
--text-color: 200, 200, 200;
--foreground-color: 27, 28, 29;
--background-color: 21, 22, 22;
--danger-color: rgb(255, 106, 106);
--green: #00e676;
--yellow: rgb(255, 213, 5);
// Accent colors
--dark-red: #ff5e7e;
--red: #ff6098;
--kinda-pink: #c44ae6;
--purple: #9565f7;
--shady-blue: #8295fb;
--nice-blue: #6d83ff;
--maybe-cyan: #66cfff;
--teal: #6aeeff;
--mint-green: #4dffd2;
--yellowish-green: #9effa2;
--greenish-yellow: #c7fc8b;
--dark-teal: #51cbff;
--tangerine: #ffac6d;
--orange: #ffbe68;
--redish-orange: #ff8560;
::-webkit-calendar-picker-indicator {
filter: invert(1);
}
}
.calistoga {
font-weight: 400;
font-family: "Calistoga", cursive;
}
p,
strong {
font-size: 0.9rem;
color: rgba(var(--text-color), 0.9);
}
img {
object-fit: cover;
}
a:where([class]) {
color: inherit;
text-decoration: none;
&:focus-visible {
box-shadow: 0 0 0 0.1rem rgba(var(--text-color), 1) inset;
}
}
a {
color: var(--accent-color);
}
a:any-link:focus-visible {
outline: rgba(var(--text-color), 1) 0.1rem solid;
}
a.button {
padding: 0.4rem 0.6rem;
border-radius: 0.3rem;
font-size: 0.9rem;
font-weight: 500;
color: inherit;
}
button,
.button {
user-select: none;
position: relative;
display: inline-flex;
border: none;
background-color: transparent;
overflow: hidden;
color: inherit;
-webkit-tap-highlight-color: transparent;
align-items: center;
font-size: 0.9rem;
font-weight: 500;
white-space: nowrap;
padding: 0.8rem;
border-radius: 0.3rem;
justify-content: center;
&:focus-visible {
outline: var(--accent-color) solid medium;
}
&:not(:disabled) {
cursor: pointer;
}
}
.button {
background-color: rgba(var(--text-color), 0.02);
border: solid thin rgba(var(--text-color), 0.06);
&--primary {
color: rgba(var(--background-color), 1) !important;
.icon {
fill: rgba(var(--background-color), 1);
}
}
&--danger {
color: var(--danger-color);
.icon {
fill: var(--danger-color);
}
}
&--primary {
background-color: var(--accent-color);
}
&--colored {
color: var(--accent-color);
.icon {
fill: var(--accent-color);
}
}
&--small {
padding: 0.4rem 0.6rem;
}
&--outlined {
border: solid rgba(var(--text-color), 0.5) 0.1rem;
background-color: rgba(var(--foreground-color), 1);
}
&--transparent {
background-color: transparent;
}
}
.cta {
text-transform: uppercase;
font-size: 0.8rem;
font-weight: 700;
letter-spacing: 0.05em;
padding: 0.8rem 1rem;
}
.icon {
width: 1.2rem;
height: 1.2rem;
fill: rgba(var(--text-color), 0.8);
flex-shrink: 0;
}
.icon-only {
padding: 0.5rem;
border-radius: 0.3rem;
aspect-ratio: 1/1;
}
button:disabled {
opacity: 0.5;
}
a:any-link:focus-visible {
outline: rgba(var(--text-color), 1) 0.1rem solid;
}
details summary {
display: flex;
user-select: none;
cursor: pointer;
align-items: center;
justify-content: space-between;
color: var(--accent-color);
}
details[open] {
& summary {
margin-bottom: 1rem;
}
& > summary .down-arrow {
transform: rotate(180deg);
}
}
fieldset {
border: none;
}
input {
accent-color: var(--accent-color);
&[type="range"] {
&:active {
cursor: grab;
}
}
}
sm-copy {
font-size: 0.9rem;
}
sm-input,
sm-textarea {
font-size: 0.9rem;
--border-radius: 0.5rem;
--background-color: rgba(var(--foreground-color), 1);
button {
.icon {
fill: var(--accent-color);
}
}
}
sm-textarea {
--max-height: 32ch;
}
sm-button {
--padding: 0.8rem;
&[variant="primary"] {
.icon {
fill: rgba(var(--background-color), 1);
}
}
&[disabled] {
.icon {
fill: rgba(var(--text-color), 0.6);
}
}
&.danger {
--background: var(--danger-color);
color: rgba(var(--background-color), 1);
}
}
sm-spinner {
--size: 1.5rem;
--stroke-width: 0.1rem;
}
cube-loader {
--size: 1.2rem;
}
sm-form {
--gap: 1rem;
}
sm-select {
--padding: 0.8rem;
font-size: 0.9rem;
--min-width: fit-content;
}
sm-option {
font-size: 0.9rem;
}
strip-select {
--gap: 0;
background-color: rgba(var(--text-color), 0.06);
border-radius: 0.3rem;
padding: 0.3rem;
}
strip-option {
position: relative;
font-size: 0.8rem;
--border-radius: 0.2rem;
user-select: none;
}
sm-button {
--border-radius: 0.3rem;
&[variant="primary"] {
.icon {
fill: rgba(var(--background-color), 1);
}
}
&[disabled] {
.icon {
fill: rgba(var(--text-color), 0.6);
}
}
}
sm-select {
&[open] {
z-index: 10;
}
}
ul {
list-style: none;
}
.overflow-ellipsis {
width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.wrap-around {
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-word;
hyphens: auto;
}
.full-bleed {
grid-column: 1/-1;
}
.uppercase {
text-transform: uppercase;
}
.capitalize {
text-transform: capitalize;
}
.sticky {
position: sticky;
}
.top-0 {
top: 0;
}
.flex {
display: flex;
}
.flex-wrap {
flex-wrap: wrap;
}
.flex-1 {
flex: 1;
}
.grid {
display: grid;
}
.flow-column {
grid-auto-flow: column;
}
.gap-0-3 {
gap: 0.3rem;
}
.gap-0-5 {
gap: 0.5rem;
}
.gap-1 {
gap: 1rem;
}
.gap-1-5 {
gap: 1.5rem;
}
.gap-2 {
gap: 2rem;
}
.gap-3 {
gap: 3rem;
}
.text-align-right {
text-align: right;
}
.text-align-left {
text-align: left;
}
.align-items-start {
align-items: flex-start;
}
.align-content-start {
align-content: flex-start;
}
.align-start {
align-content: flex-start;
}
.align-center {
align-items: center;
}
.align-end {
align-items: flex-end;
}
.text-center {
text-align: center;
}
.justify-start {
justify-items: start;
}
.justify-content-start {
justify-content: start;
}
.justify-center {
justify-content: center;
}
.justify-right {
margin-left: auto;
}
.align-self-center {
align-self: center;
}
.align-self-end {
align-self: end;
}
.justify-self-center {
justify-self: center;
}
.justify-self-start {
justify-self: start;
}
.justify-self-end {
justify-self: end;
}
.flex-direction-column {
flex-direction: column;
}
.space-between {
justify-content: space-between;
}
.w-100 {
width: 100%;
}
.h-100 {
height: 100%;
}
.padding-block-1 {
padding-block: 1rem;
}
.margin-right-0-3 {
margin-right: 0.3rem;
}
.margin-right-0-5 {
margin-right: 0.5rem;
}
.margin-left-0-5 {
margin-left: 0.5rem;
}
.margin-left-auto {
margin-left: auto;
}
.margin-right-auto {
margin-right: auto;
}
.margin-top-1 {
margin-top: 1rem;
}
.margin-bottom-0-5 {
margin-bottom: 0.5rem;
}
.margin-bottom-1 {
margin-bottom: 1rem;
}
.margin-bottom-2 {
margin-bottom: 2rem;
}
.margin-block-0-5 {
margin-block: 0.5rem;
}
.margin-block-1 {
margin-block: 1rem;
}
.margin-block-1-5 {
margin-block: 1.5rem;
}
.margin-inline-1 {
margin-inline: 1rem;
}
.margin-inline-1-5 {
margin-inline: 1.5rem;
}
.hidden {
display: none !important;
}
.no-transformations {
transform: none !important;
}
.full-bleed {
grid-column: 1/4;
}
.h1 {
font-size: 2.5rem;
}
.h2 {
font-size: 2rem;
}
.h3 {
font-size: 1.4rem;
}
.h4 {
font-size: 1rem;
}
.h5 {
font-size: 0.8rem;
}
.grid-3 {
grid-template-columns: 1fr auto auto;
}
.flow-column {
grid-auto-flow: column;
}
.w-100 {
width: 100%;
}
.color-0-8 {
color: rgba(var(--text-color), 0.8);
}
.weight-400 {
font-weight: 400;
}
.weight-500 {
font-weight: 500;
}
.card {
background-color: rgba(var(--foreground-color), 1);
border-radius: 0.5rem;
padding: max(1rem, 3vw);
}
.ripple {
height: 8rem;
width: 8rem;
position: absolute;
border-radius: 50%;
transform: scale(0);
background: radial-gradient(
circle,
rgba(var(--text-color), 0.3) 0%,
rgba(0, 0, 0, 0) 50%
);
pointer-events: none;
}
.interact {
position: relative;
overflow: hidden;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
}
.observe-empty-state:empty {
display: none;
}
.observe-empty-state:not(:empty) ~ .empty-state {
display: none;
}
.button__icon {
height: 1.2rem;
width: 1.2rem;
&--left {
margin-right: 0.5rem;
}
&--right {
margin-left: 0.5rem;
}
}
[data-editable] {
transition: padding 0.2s;
&:focus-within {
padding: 0.5em;
border-radius: 0.3rem;
outline: none;
background-color: rgba(var(--text-color), 0.06);
box-shadow: 0 0 0 0.1rem var(--accent-color) inset;
}
}
.multi-state-button {
display: grid;
text-align: center;
align-items: center;
& > * {
grid-area: 1/1/2/2;
}
button {
z-index: 1;
}
}
.password-field {
label {
display: flex;
justify-content: center;
input:checked ~ .visible {
display: none;
}
input:not(:checked) ~ .invisible {
display: none;
}
}
}
#confirmation_popup,
#prompt_popup {
flex-direction: column;
h4 {
font-weight: 500;
margin-bottom: 0.5rem;
}
sm-button {
margin: 0;
}
.flex {
padding: 0;
margin-top: 1rem;
sm-button:first-of-type {
margin-right: 0.6rem;
margin-left: auto;
}
}
}
.popup__header {
display: grid;
gap: 0.5rem;
width: 100%;
padding: 0 1.5rem 0 0.5rem;
align-items: center;
grid-template-columns: auto 1fr auto;
}
.popup__header__close {
padding: 0.5rem;
cursor: pointer;
}
.page {
height: 100%;
&__header {
display: flex;
justify-content: space-between;
margin-bottom: 1.5rem;
min-height: 8rem;
.grid {
margin-top: auto;
}
h1 {
margin-top: auto;
font-size: 2rem;
}
}
}
.page-layout {
display: grid;
gap: 1.5rem 0;
grid-template-columns: 1.5rem minmax(0, 1fr) 1.5rem;
align-content: flex-start;
& > * {
grid-column: 2/3;
}
}
#secondary_pages {
display: flex;
flex-direction: column;
width: 100%;
header {
padding: 1.5rem;
background-color: rgba(var(--foreground-color), 0.3);
}
.inner-page {
width: 100%;
height: 100%;
}
}
.inner-page {
gap: 1rem;
display: grid;
position: relative;
padding: 1rem;
grid-template-columns: minmax(0, 1fr);
height: 100%;
background-color: rgba(var(--foreground-color), 0.3);
}
#landing {
padding: 0 1rem;
overflow-y: auto;
padding-bottom: 3rem;
}
.landing__card {
position: relative;
width: min(100%, 64rem);
margin: 0 auto;
align-self: flex-start;
padding: 3rem max(1rem, 6vw);
border-radius: 1rem;
align-items: center;
h1 {
font-size: max(2rem, 3vw);
}
img {
width: min(100%, 24rem);
}
&:first-of-type {
background-color: #2a2c35;
color: white;
h1 {
mix-blend-mode: soft-light;
}
}
&:nth-of-type(2) {
background: url(../assets/globe.svg) no-repeat bottom right,
rgba(var(--foreground-color), 1);
background-size: max(60vw, 90vh);
color: white;
min-height: 24rem;
img {
align-self: flex-start;
width: 20vmax;
}
.grid {
margin-top: auto;
margin-left: auto;
}
h1 {
color: #262d4c;
mix-blend-mode: multiply;
}
p {
margin-top: auto;
color: rgba(255, 255, 255, 0.9);
}
}
}
#sign_in,
#sign_up {
justify-items: center;
align-content: center;
section {
margin-top: -8rem;
width: min(26rem, 100%);
}
sm-form {
margin: 2rem 0;
}
}
#sign_up {
.h2 {
margin-bottom: 0.5rem;
}
}
.generated-keys-wrapper {
padding: 1rem;
background-color: rgba(var(--foreground-color), 1);
border-radius: 0.5rem;
}
#flo_id_warning {
padding-bottom: 1.5rem;
.icon {
height: 3rem;
width: 3rem;
padding: 0.8rem;
overflow: visible;
background-color: #ffc107;
border-radius: 3rem;
fill: rgba(0, 0, 0, 0.8);
}
}
#main_page {
height: 100%;
grid-template-rows: auto 1fr auto;
grid-template-areas: "main-header" "sub-pages" "main-nav";
}
#sub_page_container {
grid-area: sub-pages;
height: 100%;
overflow-y: auto;
}
#main_header {
grid-area: main-header;
display: flex;
gap: 1rem;
align-items: center;
position: sticky;
padding: 0.5rem 1rem;
background: rgba(var(--foreground-color), 1);
z-index: 1;
}
#main_nav {
grid-area: main-nav;
position: relative;
display: flex;
align-items: center;
background-color: rgba(var(--foreground-color), 1);
}
.nav-list__item {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
padding: 0.5rem 0;
-webkit-tap-highlight-color: transparent;
font-size: 0.8rem;
font-weight: 500;
color: rgba(var(--text-color), 0.8);
&--active {
color: var(--accent-color);
.icon {
fill: var(--accent-color);
}
.icon--outlined {
display: none;
}
.icon--filled {
display: inline-block;
}
}
&:not(.nav-list__item--active) {
.icon--outlined {
display: inline-block;
}
.icon--filled {
display: none;
}
}
.icon {
margin-bottom: 0.3rem;
}
}
.container-card {
position: relative;
background: rgba(var(--foreground-color), 1);
border-radius: 0.5rem;
}
#sign_in_page {
display: grid;
position: fixed;
z-index: 5;
top: 0;
bottom: 0;
left: 0;
right: 0;
place-content: center;
background-color: rgba(var(--foreground-color), 1);
gap: 1rem;
}
#application_card {
position: relative;
overflow: hidden;
background-color: rgba(var(--foreground-color), 1);
border: solid thin rgba(var(--text-color), 0.1);
padding: 0;
& > div {
&:first-of-type {
padding: max(1rem, 3vw);
z-index: 2;
width: calc(100% - 4rem);
background: linear-gradient(
90deg,
rgba(var(--foreground-color), 1) 0%,
rgba(var(--foreground-color), 0) 100%
);
}
}
.illustration {
position: absolute;
height: 100%;
right: 0;
width: auto;
margin: 0 -1.5rem -1.5rem 0;
}
}
.task {
display: grid;
grid-template-columns: auto 1fr;
margin-right: 1rem;
.task__branch_container {
padding-bottom: 2rem;
}
&:last-of-type .left .line {
transform: scaleY(0);
}
.left {
display: flex;
position: relative;
justify-content: center;
padding-top: 0.5rem;
.circle {
display: inline-flex;
position: relative;
align-self: flex-start;
height: 1rem;
width: 1rem;
border-radius: 50%;
background: rgba(var(--foreground-color), 1);
border: solid 2px rgba(var(--text-color), 0.4);
z-index: 1;
}
.line {
position: absolute;
left: 50%;
height: 100%;
width: 2px;
transform: translateX(-50%) scaleY(1);
background-color: rgba(var(--text-color), 0.4);
}
}
.right {
margin-left: 1rem;
display: flex;
flex-direction: column;
width: 100%;
.apply-cont {
width: 100%;
display: flex;
flex-direction: row;
h4 {
flex: 1;
}
}
}
h4 {
margin-top: 0.4rem;
margin-bottom: 1rem;
}
.assigned-interns .assigned-intern {
padding: 0.4rem;
}
}
.timeline-task__description,
.admin-reply__description {
white-space: pre-line;
max-width: 100%;
}
.completed .left .circle {
border: solid 2px #00c853 !important;
background: #00c853 !important;
}
.completed .left .line {
background-color: #00c853 !important;
}
.task-title {
font-weight: 500;
}
.padding {
padding: 1rem;
}
#dashboard_page {
padding-bottom: 5rem;
grid-template-columns: auto;
}
.logo {
display: flex;
align-items: center;
font-size: 1.2rem;
width: 100%;
}
.logo .cls-2,
.logo .cls-3 {
fill: rgba(var(--text-color), 1);
font-size: 146.9px;
font-family: ArialMT, Arial;
}
.logo svg {
height: 2.5rem;
}
.logo h4 {
margin: 0;
}
.project-card {
padding: 1rem;
margin: 0.2rem;
border-radius: 0.5rem;
font-weight: 500;
line-height: 1.5;
text-transform: capitalize;
color: rgba(var(--text-color), 0.8);
}
.intern-card {
padding: 1rem;
margin: 0.2rem;
border-radius: 0.5rem;
user-select: none;
padding: 0.8rem 1rem;
gap: 0.8rem;
grid-template-columns: auto 1fr auto;
.icon {
fill: #ff5722 !important;
height: 1rem !important;
width: 1rem !important;
margin-left: 0.2rem;
}
}
.intern-card__initials {
display: flex;
height: 2.6rem;
width: 2.6rem;
justify-content: center;
align-items: center;
border-radius: 50%;
color: var(--color);
font-weight: 700;
font-size: 1rem;
text-transform: uppercase;
background-color: rgba(var(--text-color), 0.06);
}
.intern-card__score-wrapper {
font-weight: 500;
font-size: 1.2rem;
}
.request-card {
display: grid;
position: relative;
padding: 1rem;
margin: 0.2rem;
gap: 0.3rem;
background-color: rgba(var(--text-color), 0.06);
border-radius: 0.5rem;
sm-button {
--padding: 0.5rem 0.8rem;
}
}
.request-card__description {
width: 100%;
font-size: 1rem;
}
.reject-app {
margin-left: auto;
margin-right: 0.5rem;
}
#updates_page {
align-content: flex-start;
sm-select {
--max-height: 50vh;
}
}
#updates {
transition: opacity 0.3s ease;
}
#updates_page__project_selector {
strip-option {
font-size: 0.9rem;
}
}
.intern-update {
display: grid;
gap: 0.5rem;
padding: 1rem;
border-radius: 0.5rem;
background-color: rgba(var(--foreground-color), 1);
}
.update__topic {
font-weight: 500;
font-size: 1rem;
margin-top: 0.5rem;
text-transform: capitalize;
max-width: 65ch;
}
.update__sender,
.admin-reply__title {
font-size: 0.85rem;
font-weight: 500;
background-color: rgba(var(--text-color), 0.06);
padding: 0.3rem 0.5rem;
margin: 0 -0.5rem;
border-radius: 1rem;
}
.update__time {
font-size: 0.85rem;
color: rgba(var(--text-color), 0.8);
}
.update__message {
white-space: pre-line;
}
.admin-reply {
position: relative;
padding: 1rem;
padding-left: 1.5rem;
margin-left: 0.5rem;
gap: 0.3rem;
&::before {
content: "";
position: absolute;
width: 0.1rem;
height: calc(100% - 1rem);
left: 0;
background-color: rgba(var(--text-color), 0.5);
}
&__title {
justify-self: flex-start;
}
}
.container-header {
display: flex;
align-items: center;
width: 100%;
padding: 1rem;
}
.container-header h4 {
flex: 1;
font-weight: 500;
}
#intern_info_popup {
.grid {
& > * {
justify-self: center;
}
}
#update_intern_score {
width: 100%;
margin-top: 1rem;
}
}
#intern_info__initials {
position: relative;
height: 3rem;
width: 3rem;
font-size: 1.3rem;
color: var(--color);
}
#intern_info__name {
font-size: 1.5rem;
margin-bottom: 0.5rem;
}
.gold-fill {
fill: #ff5722;
}
#intern_info__score {
font-size: 1.5rem;
}
#project_info {
flex-direction: column;
}
.branch-button {
display: flex;
padding: 0.5rem;
border-radius: 0.2rem;
text-transform: capitalize;
justify-self: start;
align-items: center;
user-select: none;
font-size: 0.85rem;
font-weight: 500;
}
.active-branch {
opacity: 1;
color: white;
background: var(--accent-color);
}
#task_list {
gap: 0.5rem;
padding: 1rem 0 1.5rem 0;
}
.task-list-item {
display: grid;
align-content: flex-start;
padding: 1rem;
gap: 0.5rem;
border-radius: 0.5rem;
background: rgba(var(--foreground-color), 1);
h4 {
font-weight: 500;
margin: 0;
}
.task-title {
line-height: 1.6;
}
}
.task__branch_container {
&:not(:empty) {
display: grid;
gap: 0.5rem;
padding: 0.5rem 0;
}
.branch-button {
position: relative;
background-color: transparent;
padding: 0;
padding-left: 2rem;
margin: 0.5rem 0;
&::before {
position: absolute;
content: "";
top: -50%;
left: 0;
display: inline-flex;
width: 1rem;
height: 100%;
align-self: flex-start;
margin-right: 0.8rem;
border-left: solid;
border-bottom: solid;
border-width: 0.15rem;
border-color: rgba(var(--text-color), 0.6);
border-radius: 0 0 0 0.2rem;
}
}
.branch-button + .branch-button {
&::before {
top: calc(-50% - 1.5rem);
height: calc(100% + 1.5rem);
}
}
}
.task-option {
margin-right: -0.5rem;
}
.task-description {
margin: 0;
overflow-wrap: break-word;
word-wrap: break-word;
white-space: pre-line;
}
.assigned-interns {
display: flex;
flex-wrap: wrap;
margin-bottom: 1rem;
gap: 0.5rem;
.assigned-intern {
user-select: none;
display: flex;
font-size: 0.8rem;
padding: 0.2rem 0 0.2rem 0.4rem;
border-radius: 0.2rem;
border: 1px solid rgba(var(--text-color), 0.24);
align-items: center;
white-space: nowrap;
text-transform: capitalize;
button {
padding: 0.2rem;
.icon {
height: 1rem;
width: 1rem;
}
}
}
}
#task_context {
position: absolute;
top: 0;
right: 0;
margin: -1rem 1rem 0 1rem;
list-style: none;
width: fit-content;
border-radius: 0.5rem;
transition: 0.3s opacity;
background-color: rgba(var(--foreground-color), 1);
box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.16);
transform-origin: top right;
border: solid thin rgba(var(--text-color), 0.16);
li {
display: flex;
align-items: center;
font-size: 0.9rem;
margin: 0.2rem;
padding: 0.6rem 0.8rem;
border-radius: 0.3rem;
.icon {
margin-right: 0.5rem;
}
}
}
.temp-task {
.cancel-task-button {
margin-right: 0.5rem;
}
}
#branch_container {
display: flex;
flex-flow: row wrap;
margin: 0.5rem 0 1rem 0;
}
#intern_list_popup {
flex-direction: column;
}
#intern_search_field {
margin-bottom: 1rem;
}
#intern_list_container {
height: 100%;
overflow-y: auto;
.intern-card {
padding: 0.8rem 0;
margin: 0;
}
}
#best_interns_container,
#project_list_container {
margin-bottom: 1rem;
}
#best_interns_container .container-header .icon,
#project_list_container .container-header .icon {
margin-right: 0.5rem;
}
#edit_data_fig {
fill: rgba(var(--text-color), 0.6);
width: 60vw;
margin: 2rem 0;
}
#loading {
display: grid;
text-align: center;
place-content: center;
justify-items: center;
background-color: rgba(var(--foreground-color), 1);
}
#pinned_project_section {
position: relative;
overflow: hidden;
}
#project_explorer {
padding: 0;
}
#project_explorer__right {
gap: 1rem;
align-items: flex-start;
align-content: flex-start;
padding: 1rem;
}
#pin_project_button {
margin-left: 1rem;
}
#admin_page {
position: relative;
display: grid;
gap: 0;
padding: 0;
height: 100%;
}
#admin_views {
display: grid;
gap: 1rem;
height: 100%;
& > * {
grid-area: 1/1;
}
}
#project_editing_panel {
position: relative;
padding: max(4vw, 1rem);
height: 100%;
overflow-y: auto;
padding-bottom: 3rem;
}
.fab {
position: absolute;
display: flex;
justify-content: center;
align-items: center;
padding: 1rem;
right: 0;
bottom: 0;
background-color: var(--accent-color);
box-shadow: 0 0.5rem 0.8rem rgba(0, 0, 0, 0.3);
transition: transform 0.3s;
-webkit-tap-highlight-color: transparent;
color: rgba(var(--background-color), 1);
margin: 1rem;
.icon {
fill: rgba(var(--background-color), 1);
}
}
#update_of_project {
color: rgba(var(--text-color), 0.8);
}
#update_of_task {
font-size: 1.3rem;
margin: 0.4rem 0 1.8rem 0;
}
ul {
padding: 0;
list-style: none;
}
#assigned_task_list {
display: grid;
gap: 1rem;
margin-top: 1rem;
align-content: flex-start;
grid-template-columns: minmax(0, 1fr);
}
.task-card {
display: grid;
gap: 0.5rem;
padding: 1rem;
border-radius: 0.5rem;
background-color: rgba(var(--foreground-color), 1);
}
.task__project-title {
font-size: 0.8rem;
margin: 0 -0.5em;
margin-bottom: 0.5rem;
border-radius: 1rem;
padding: 0.3rem 0.5rem;
justify-self: flex-start;
color: rgba(var(--text-color), 0.8);
background-color: rgba(var(--text-color), 0.06);
}
.task__title {
font-size: 1.1rem;
}
.task__description {
word-wrap: break-word;
overflow-wrap: break-word;
white-space: pre-line;
color: rgba(var(--text-color), 0.8);
font-size: 0.9rem;
margin-top: 0.2rem;
}
.send-update-button,
.init-update-replay {
color: var(--accent-color);
background-color: rgba(var(--text-color), 0.04);
.icon {
fill: var(--accent-color);
}
}
#internship_requests_list {
padding-bottom: 2rem;
}
.status-card {
display: grid;
gap: 1rem;
padding: 1rem;
border-radius: 0.5rem;
background-color: rgba(var(--foreground-color), 1);
&__time {
font-size: 0.8rem;
color: rgba(var(--text-color), 0.8);
}
&__status {
justify-content: flex-end;
.icon {
height: 1em;
width: 1em;
}
}
&.accepted {
.icon {
fill: var(--green);
}
}
&.rejected {
.icon {
fill: var(--danger-color);
}
}
&.pending {
.icon {
fill: var(--yellow);
}
}
}
#admin_page__left {
height: 100%;
overflow-y: hidden;
.list-container {
height: 100%;
overflow-y: auto;
padding-bottom: 2rem;
}
.empty-state {
padding: 1rem;
text-align: center;
}
}
#update_filters_wrapper {
gap: 1.5rem;
}
input[type="date"] {
display: flex;
width: 100%;
padding: 0.5rem;
border: rgba(var(--text-color), 0.2) solid thin;
border-radius: 0.3rem;
font-family: inherit;
font-size: inherit;
color: inherit;
background-color: rgba(var(--text-color), 0.06);
&:focus {
outline: none;
box-shadow: 0 0 0 0.1rem var(--accent-color);
}
}
.search__icon {
height: 1.2rem;
width: 1.2rem;
}
#user_role {
justify-self: start;
font-size: 0.7rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.05em;
padding: 0.4rem 0.8rem;
border-radius: 0.3rem;
border: solid var(--accent-color) thin;
}
#pinned_project_section {
display: grid;
gap: 1rem;
}
#pinned_projects {
display: grid;
gap: 0.3rem;
grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
}
.pinned-card {
color: inherit;
display: grid;
border-radius: 0.5rem;
padding: 1rem;
background-color: rgba(var(--foreground-color), 1);
grid-template-columns: auto 1fr;
.project-icon {
display: flex;
background-color: rgba(var(--text-color), 0.06);
justify-self: start;
align-self: flex-start;
padding: 0.8rem;
border-radius: 2rem;
margin-right: 0.8rem;
grid-row: span 3;
.icon {
fill: var(--accent-color);
}
}
.project__title {
margin-bottom: 0.8rem;
font-weight: 500;
color: inherit;
}
.project__complete-percent {
font-size: 0.8rem;
opacity: 0.8;
margin-top: 0.5rem;
}
}
.progress-bar {
display: flex;
height: 0.2rem;
background-color: rgba(var(--text-color), 0.2);
border-radius: 1rem;
overflow: hidden;
align-self: flex-end;
.progress-value {
background-color: var(--accent-color);
transition: width 0.3s;
}
}
#settings_page {
align-content: flex-start;
}
@media only screen and (max-width: 640px) {
.hide-on-mobile,
.hide-page-on-mobile {
display: none;
}
.list-container {
padding-bottom: 5rem;
}
.status-card {
&__status {
grid-area: 1/2/2/3;
}
&__details {
grid-area: 2/1/3/3;
}
}
}
@media only screen and (min-width: 640px) {
.hide-on-desktop {
display: none !important;
}
sm-popup {
--width: 26rem;
}
.popup__header {
padding: 1.5rem 1.5rem 0 0.75rem;
}
#main_nav {
padding: 0.5rem;
background-color: rgba(var(--background-color), 1);
flex-direction: column;
theme-toggle {
margin: 1rem;
margin-top: auto;
}
}
.nav-list__item {
flex-direction: row;
align-items: center;
border-radius: 0.5rem;
padding: 0.8rem;
margin-bottom: 0.25rem;
font-size: 1rem;
&--active {
background-color: rgba(var(--text-color), 0.06);
}
.icon {
margin-bottom: 0;
}
&_title {
display: none;
}
}
.project-card {
&--active {
background-color: rgba(var(--text-color), 0.1);
&::before {
content: "";
position: absolute;
top: 0;
left: 0;
bottom: 0;
margin: auto 0;
width: 0.2rem;
height: 1.5em;
background-color: var(--accent-color);
border-radius: 0 0.2rem 0.2rem 0;
}
}
}
#sign_in {
width: 24rem;
height: auto;
border-radius: 0.4rem;
}
#dashboard_page {
grid-template-columns: 3fr 18rem;
}
#dashboard_page #pinned_project_section {
align-self: flex-start;
}
#all_interns_page__header {
grid-template-columns: 1fr auto;
}
#admin_page {
padding: 0;
grid-template-columns: 18rem minmax(0, 1fr);
}
#admin_page__left {
background-color: rgba(var(--foreground-color), 0.5);
}
#edit_data_fig {
width: 16rem;
justify-self: center;
}
#project_explorer {
display: grid;
height: 100%;
grid-template-columns: 16rem 3fr;
grid-template-areas: "left right";
}
#project_explorer__left {
grid-area: left;
height: 100%;
overflow-y: auto;
padding-bottom: 1.5rem;
border-right: 1px solid rgba(var(--text-color), 0.06);
background-color: rgba(var(--background-color), 1);
}
#project_explorer__left h4 {
margin-top: 0;
margin-bottom: 0.5rem;
color: var(--accent-color);
font-size: 0.9rem;
}
#project_explorer__right {
grid-area: right;
height: 100%;
overflow-y: auto;
}
#main_page {
grid-template-columns: 4rem minmax(0, 1fr);
grid-template-areas: "main-header main-header" "main-nav sub-pages";
}
#post_update_popup {
--width: 28rem;
}
#updates_page {
height: 100%;
gap: 1rem;
grid-template-areas: "updates update-filters";
grid-template-columns: minmax(0, 1fr) 20rem;
}
#update_filters_wrapper {
padding: 1rem;
border-radius: 0.5rem;
align-content: flex-start;
grid-area: update-filters;
background-color: rgba(var(--foreground-color), 1);
}
#updates_wrapper {
height: 100%;
overflow-y: auto;
grid-area: updates;
}
#all_interns_list {
gap: 0.5rem;
grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
.intern-card {
margin: 0;
gap: 1rem;
border-radius: 0.5rem;
background-color: rgba(var(--foreground-color), 1);
}
}
#intern_list_popup {
--height: 80vh;
}
.status-card {
align-items: center;
font-size: 0.9rem;
grid-template-columns: 6rem 1fr 8rem;
}
}
@media only screen and (min-width: 1280px) {
#main_page {
// gap: 0 1.5rem;
grid-template-columns: 12rem minmax(0, 1fr);
grid-template-areas: "main-header main-header" "main-nav sub-pages";
}
#main_nav {
align-items: flex-start;
}
.nav-list__item {
.icon {
margin-right: 0.5rem;
}
&_title {
display: inline-block;
}
}
}
@media (any-hover: hover) {
::-webkit-scrollbar {
width: 0.5rem;
height: 0.5rem;
}
::-webkit-scrollbar-thumb {
background: rgba(var(--text-color), 0.3);
border-radius: 1rem;
&:hover {
background: rgba(var(--text-color), 0.5);
}
}
.interact {
transition: background-color 0.2s;
&:hover {
background-color: rgba(var(--text-color), 0.04);
}
}
}