diff --git a/css/main.css b/css/main.css index 6293d8c..ba34a11 100644 --- a/css/main.css +++ b/css/main.css @@ -60,6 +60,10 @@ a:where([class]):focus-visible { box-shadow: 0 0 0 0.1rem rgba(var(--text-color), 1) inset; } +a { + color: var(--accent-color); +} + button, .button { position: relative; @@ -394,6 +398,18 @@ ul { .nav-list__item--active .icon { fill: var(--accent-color); } +.nav-list__item--active .icon--outlined { + display: none; +} +.nav-list__item--active .icon--filled { + display: inline-block; +} +.nav-list__item:not(.nav-list__item--active) .icon--outlined { + display: inline-block; +} +.nav-list__item:not(.nav-list__item--active) .icon--filled { + display: none; +} .nav-list__item .icon { margin-bottom: 0.3rem; } @@ -424,6 +440,7 @@ ul { right: 0; place-content: center; background-color: var(--foreground-color); + gap: 1rem; } #sign_in_form { @@ -540,27 +557,6 @@ ul { grid-template-columns: auto; } -.show { - display: block; -} - -.no-transformations { - -webkit-transform: none !important; - transform: none !important; -} - -.no-bottom-margin { - margin-bottom: 0; -} - -.top-margin { - margin-top: 0.3rem; -} - -.spacer { - flex: 1; -} - .logo { display: flex; align-items: center; @@ -583,19 +579,6 @@ ul { margin: 0; } -.active { - opacity: 1 !important; - color: var(--accent-color); -} - -.active svg { - fill: var(--accent-color); -} - -.svg-margin-right svg { - margin-right: 0.5rem; -} - .project-card { padding: 1rem; font-weight: 500; @@ -657,27 +640,6 @@ ul { margin-right: 0.5rem; } -#intern_updates .container-header { - padding: 0 1rem; - border-bottom: 1px solid rgba(var(--text-color), 0.1); -} -#intern_updates .container-header button { - padding: 1rem 0; - border-bottom: 0.2rem solid transparent; - border-radius: 0; - opacity: 0.7; -} -#intern_updates .container-header button:first-of-type { - margin-right: 1rem; -} -#intern_updates .container-header button:last-of-type { - margin-right: 1rem; -} -#intern_updates .container-header .active { - color: rgba(var(--text-color), 1); - border-bottom: 0.2rem solid var(--accent-color); -} - #updates_page sm-select { --max-height: 50vh; } @@ -834,8 +796,8 @@ ul { .task-description { grid-area: description; margin: 0; - overflow: hidden; - text-overflow: ellipsis; + overflow-wrap: break-word; + word-wrap: break-word; white-space: pre-line; } @@ -881,8 +843,11 @@ ul { padding: 0.8rem 1.5rem; display: flex; align-items: center; + font-size: 0.9rem; } #task_context li .icon { + height: 1.2rem; + width: 1.2rem; margin-right: 0.5rem; } @@ -922,34 +887,6 @@ ul { margin: 2rem 0; } -.header { - position: sticky; - top: 0; - background: var(--foreground-color); - display: flex; - flex-flow: row; - border-bottom: 1px solid rgba(var(--text-color), 0.1); - align-items: center; - z-index: 2; -} - -.header svg { - fill: none; - stroke: rgba(var(--text-color), 0.8); - stroke-width: 6; - overflow: visible; - height: 2rem; - width: 2rem; - cursor: pointer; - padding: 0.4rem; - margin-left: 1rem; -} - -.header h3 { - padding: 0 0.5rem; - display: inline-flexbox; -} - #loading_page { display: grid; position: fixed; @@ -1071,7 +1008,7 @@ ul { display: flex; align-items: center; justify-self: end; - padding: 0.7rem 1rem; + padding: 0.6rem 1rem; border-radius: 2rem; transform: translateY(1.5rem); background-color: var(--foreground-color); @@ -1093,6 +1030,9 @@ ul { fill: var(--accent-color); margin-left: 0.5rem; } +.fab-actions__item-name { + font-size: 0.9rem; +} .fab { position: relative; @@ -1104,7 +1044,7 @@ ul { width: 3.2rem; border-radius: 50%; background-color: var(--accent-color); - box-shadow: 0 0.5rem 0.8remrgba 0, 0, 0, 0.3; + box-shadow: 0 0.5rem 0.8rem rgba(0, 0, 0, 0.3); transition: transform 0.3s; -webkit-tap-highlight-color: transparent; } @@ -1143,12 +1083,14 @@ ul { gap: 1rem; margin-top: 1rem; align-content: flex-start; + grid-template-columns: minmax(0, 1fr); } .task-card { display: grid; padding: 1rem; border-radius: 0.5rem; + grid-template-columns: minmax(0, 1fr); background-color: var(--foreground-color); } @@ -1177,6 +1119,8 @@ ul { } .task__description { + word-wrap: break-word; + overflow-wrap: break-word; white-space: pre-line; color: rgba(var(--text-color), 0.8); } @@ -1199,6 +1143,7 @@ ul { #admin_page__left sm-tab-header { --gap: 0; --justify-content: stretch; + background-color: var(--foreground-color); border-bottom: 1px solid rgba(var(--text-color), 0.2); } #admin_page__left sm-tab { @@ -1228,6 +1173,11 @@ ul { gap: 1.5rem; } +.search__icon { + height: 1.2rem; + width: 1.2rem; +} + @media only screen and (max-width: 640px) { .hide-on-mobile, .hide-page-on-mobile { @@ -1244,7 +1194,7 @@ ul { } .popup__header { - padding: 1.5rem 1.5rem 0 0.5rem; + padding: 1.5rem 1.5rem 0 0.75rem; } #main_nav { @@ -1297,6 +1247,8 @@ ul { } #admin_page { + padding: 1rem; + gap: 1rem; grid-template-columns: 18rem minmax(0, 1fr); grid-template-rows: 1fr; } @@ -1329,13 +1281,13 @@ ul { overflow-y: auto; padding-bottom: 1.5rem; border-right: 1px solid rgba(var(--text-color), 0.06); - background-color: 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: #29B6F6; + color: var(--accent-color); font-size: 0.9rem; } @@ -1351,7 +1303,7 @@ ul { } #post_update_popup { - --width: 32rem; + --width: 28rem; } #updates_page { @@ -1425,36 +1377,17 @@ ul { background: linear-gradient(rgba(var(--text-color), 0.06), rgba(var(--text-color), 0.06)), var(--foreground-color); } - .send-update-button { + .send-update-button, +.task-option, +.apply-button { opacity: 0; transition: opacity 0.3s; } - .task-card:hover .send-update-button { - opacity: 1; - } - - .task-option { - opacity: 0; - } - .task-list-item:hover .task-option, -.task-option:focus-within { - opacity: 1; - } - - .apply-btn { - opacity: 0; - transition: opacity 0.3s; - } - - .task:hover .apply-btn { - opacity: 1; - } -} -@media (any-hover: none) { - .task-option, -.apply-btn { +.task-option:focus-within, +.task:hover .apply-button, +.task-card:hover .send-update-button { opacity: 1; } } \ No newline at end of file diff --git a/css/main.min.css b/css/main.min.css index 0310167..369682b 100644 --- a/css/main.min.css +++ b/css/main.min.css @@ -1 +1 @@ -.hide,.ripple{pointer-events:none}#loading_page,#sign_in_page{top:0;left:0;place-content:center;bottom:0}*{padding:0;margin:0;box-sizing:border-box;font-family:Roboto,sans-serif}:root{font-size:clamp(1rem,1.2vmax,3rem)}body,html{height:100%;scroll-behavior:smooth}body{color:rgba(var(--text-color),1);background:rgba(var(--background-color),1)}body,body *{--accent-color:#5D54A4;--text-color:17,17,17;--background-color:246,246,246;--foreground-color:white;--danger-color:red;scrollbar-width:thin}body[data-theme=dark],body[data-theme=dark] *{--accent-color:#9D65C9;--text-color:240,240,240;--text-color-light:170,170,170;--background-color:10,10,10;--foreground-color:rgb(20, 20, 20);--danger-color:rgb(255, 106, 106)}p{max-width:70ch;line-height:1.7;color:rgba(var(--text-color),.8)}p:not(:last-of-type){margin-bottom:1.5rem}img{object-fit:cover}a:where([class]){color:inherit;text-decoration:none}a:where([class]):focus-visible{box-shadow:0 0 0 .1rem rgba(var(--text-color),1) inset}.button,button{position:relative;display:inline-flex;border:none;background-color:transparent;overflow:hidden;color:inherit;cursor:pointer}.color-0-8,.nav-list__item{color:rgba(var(--text-color),.8)}button:disabled{opacity:.5}a.button{padding:.6rem 1.2rem;border-radius:.3rem;background-color:rgba(var(--text-color),.06)}a:any-link:focus-visible{outline:solid rgba(var(--text-color),1)}sm-button{--border-radius:0.3rem}sm-button[variant=primary] .icon{fill:rgba(var(--background-color),1)}#edit_data_fig,sm-button[disabled] .icon{fill:rgba(var(--text-color),.6)}.hide{opacity:0}.hide-completely{display:none!important}.overflow-ellipsis{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.breakable{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-word;-ms-hyphens:auto;-moz-hyphens:auto;-webkit-hyphens:auto;hyphens:auto}.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,.nav-list__item{font-size:.8rem}.uppercase{text-transform:uppercase}#intern_info h3,#status_map_container #status_map h2,.assigned-interns .assigned-intern,.capitalize,.project-card,.update__topic{text-transform:capitalize}.flex{display:flex}.grid{display:grid}.grid-3{grid-template-columns:1fr auto auto}.flow-column{grid-auto-flow:column}.gap-0-5{gap:.5rem}.gap-1{gap:1rem}#update_filters_wrapper,.gap-1-5{gap:1.5rem}.gap-2{gap:2rem}.gap-3{gap:3rem}.text-align-right{text-align:right}.align-start{align-items:flex-start}.align-center,.popup__header{align-items:center}.text-center{text-align:center}.justify-start{justify-content:start}.justify-center{justify-content:center}.justify-right{margin-left:auto}.align-self-center{align-self:center}.justify-self-center{justify-self:center}.justify-self-start{justify-self:start}.justify-self-end{justify-self:end}.direction-column{flex-direction:column}.space-between{justify-content:space-between}.w-100{width:100%}.weight-400{font-weight:400}.weight-500{font-weight:500}.ripple{position:absolute;border-radius:50%;transform:scale(0);background:rgba(var(--text-color),.16)}#main_nav,.container-card,.interact{position:relative}#main_nav,#sign_in_page{background-color:var(--foreground-color)}.interact{overflow:hidden;cursor:pointer;-webkit-tap-highlight-color:transparent}.observe-empty-state:empty{display:none}.observe-empty-state:not(:empty)~.empty-state{display:none}.icon{width:1.5rem;height:1.5rem;fill:rgba(var(--text-color),.9)}.button__icon{height:1.2rem;width:1.2rem}.button__icon--left{margin-right:.5rem}.button__icon--right{margin-left:.5rem}#confirmation_popup,#prompt_popup{flex-direction:column}#confirmation_popup h4,#prompt_popup h4{font-weight:500;margin-bottom:.5rem}#confirmation_popup sm-button,#prompt_popup sm-button{margin:0}#confirmation_popup .flex,#prompt_popup .flex{padding:0;margin-top:1rem}#confirmation_popup .flex sm-button:first-of-type,#prompt_popup .flex sm-button:first-of-type{margin-right:.6rem;margin-left:auto}.popup__header{display:grid;gap:.5rem;width:100%;padding:0 1.5rem 0 .5rem;grid-template-columns:auto 1fr auto}#main_header,#main_nav{align-items:center;display:flex}.popup__header__close{padding:.5rem;cursor:pointer}#main_page{height:100%;grid-template-rows:auto 1fr auto;grid-template-areas:"main-header" "sub-pages" "main-nav"}#main_header{grid-area:main-header;gap:1rem;position:sticky;padding:.5rem 1rem;background:var(--foreground-color);z-index:1}#main_nav{grid-area:main-nav}.nav-list__item{display:flex;flex-direction:column;align-items:center;width:100%;padding:.5rem 0;-webkit-tap-highlight-color:transparent;font-weight:500}.active,.nav-list__item--active{color:var(--accent-color)}.nav-list__item--active .icon{fill:var(--accent-color)}.nav-list__item .icon{margin-bottom:.3rem}#sub_page_container{grid-area:sub-pages;height:100%;overflow-y:auto}.container-card{background:var(--foreground-color);border-radius:.5rem}.medium-top-bottom-margin{margin:.5rem 0}#sign_in_page{display:grid;position:fixed;z-index:5;right:0}#sign_in_form{width:22rem}.task{display:grid;grid-template-columns:auto 1fr;margin:0 1rem}.task:last-of-type .left .line{transform:scaleY(0)}.task .left{display:flex;position:relative;justify-content:center;padding-top:.5rem}.task .left .circle{display:inline-flex;position:relative;align-self:flex-start;height:1rem;width:1rem;border-radius:50%;background:var(--foreground-color);border:2px solid;z-index:1}.task .left .line{position:absolute;left:50%;height:100%;width:2px;transform:translateX(-50%) scaleY(1);background-color:rgba(var(--text-color),.4)}.task .right{margin-left:1rem;display:flex;flex-direction:column;width:100%}.task .right .apply-cont{width:100%;display:flex;flex-direction:row}.task .right .apply-cont h4{-webkit-box-flex:1;-ms-flex:1;flex:1}.task h4{margin-top:.4rem;margin-bottom:1rem}.task p{white-space:pre-line;padding-bottom:2rem}.task .assigned-interns .assigned-intern{padding:.4rem}.padding,.page{padding:1rem}.completed-task .left .circle{border:2px solid #00C853!important;background:#00C853!important}.completed-task .left .line{background-color:#00C853!important}.page{gap:1rem;display:grid;position:relative;animation:fadein .3s;grid-template-columns:minmax(0,1fr)}@keyframes fadein{0%{opacity:0}100%{opacity:1}}.title{font-weight:500}#dashboard_page{padding-bottom:5rem;grid-template-columns:auto}.intern-card,.task-list-item{grid-template-columns:auto 1fr auto}.show{display:block}.no-transformations{-webkit-transform:none!important;transform:none!important}.no-bottom-margin{margin-bottom:0}.top-margin{margin-top:.3rem}.spacer{flex:1}.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}.reject-app,.svg-margin-right svg{margin-right:.5rem}#intern_info h4,#intern_info h5,.update__topic{margin-top:.5rem}.active{opacity:1!important}.active svg{fill:var(--accent-color)}.project-card{padding:1rem;font-weight:500;line-height:1.5;color:rgba(var(--text-color),.8)}.intern-card{user-select:none;padding:.8rem 1rem;gap:.8rem}.intern-card__initials{display:flex;height:2.6rem;width:2.6rem;justify-content:center;align-items:center;border-radius:40%;color:#fff;font-weight:500;font-size:1rem;text-transform:uppercase;background-color:var(--accent-color)}#loading_page,#task_context,.fab-actions__item,.intern-update,.task-card{background-color:var(--foreground-color)}.intern-card__score-wrapper{font-weight:500;font-size:1.2rem}.intern-card .icon{fill:#FF5722!important;height:1rem!important;width:1rem!important;margin-left:.2rem}.request-card{display:grid;position:relative;padding:1rem}.request-card sm-button{--padding:0.5rem 0.8rem}.request-card__description{width:100%;font-size:1rem;margin-bottom:1rem}.reject-app{margin-left:auto}#intern_updates .container-header{padding:0 1rem;border-bottom:1px solid rgba(var(--text-color),.1)}#intern_updates .container-header button{padding:1rem 0;border-bottom:.2rem solid transparent;border-radius:0;opacity:.7}#intern_updates .container-header button:first-of-type{margin-right:1rem}#intern_updates .container-header button:last-of-type{margin-right:1rem}#intern_updates .container-header .active{color:rgba(var(--text-color),1);border-bottom:.2rem solid var(--accent-color)}#updates_page sm-select{--max-height:50vh}#updates{transition:opacity .3s ease}#updates_page__project_selector strip-option{font-size:.9rem}.intern-update{display:grid;gap:.5rem;padding:1rem;border-radius:.5rem}.update__topic{font-weight:500;font-size:1rem;max-width:65ch}.update__sender{color:var(--accent-color);font-size:.9rem;font-weight:500}#update_of_project,.task__description,.task__project-title,.update__time{color:rgba(var(--text-color),.8)}.update__time{font-size:.85rem}.update__message{white-space:pre-line}.container-header{display:flex;align-items:center;width:100%;padding:1rem}.container-header h4{flex:1;font-weight:500}#intern_info{flex-direction:column}#intern_info div{display:flex;flex-direction:row;align-items:center;width:100%;margin-bottom:1rem}#intern_info div span{flex:1;word-break:break-all;font-size:.9rem}#intern_info .gold-fill{fill:#FF5722}#intern_info #update_intern_score h4{margin:0;font-size:2rem}#project_info{flex-direction:column}.branch-btn{padding:.5rem;border-radius:.2rem;margin:.5rem .5rem .5rem 0;user-select:none;font-size:.85rem;font-weight:500;letter-spacing:.05em}.active-branch{opacity:1;color:var(--accent-color);background:rgba(var(--text-color),.04)}#task_list{padding:1.5rem 0}.task-list-item{display:grid;grid-template-areas:"status title options" "status interns interns" "status description description";align-content:flex-start;padding:1rem;gap:.5rem;border-radius:.5rem;background:rgba(var(--text-color),.02)}.task-list-item sm-checkbox{grid-area:status;align-self:flex-start;padding:.2rem .5rem .5rem 0}.task-list-item h4{font-weight:500;margin:0}.task-list-item .title{grid-area:title;line-height:1.6}.task-list-item .assigned-interns{grid-area:interns}.task-option{grid-area:options;transition:opacity .3s ease;padding:.5rem}.task-option .icon{height:1.2rem;width:1.2rem}.task-description{grid-area:description;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:pre-line}.assigned-interns{display:flex;flex-wrap:wrap}.assigned-interns .assigned-intern{user-select:none;display:flex;font-size:.8rem;margin:.2rem .5rem .2rem 0;padding:.2rem 0 .2rem .4rem;border-radius:.2rem;border:1px solid;align-items:center;white-space:nowrap}.assigned-interns .assigned-intern button{padding:.2rem}.assigned-interns .assigned-intern button .icon{height:1rem;width:1rem}#task_context{position:absolute;top:0;right:0;margin:-1rem 1rem 0;list-style:none;padding:.5rem 0;width:max-content;border-radius:.3rem;transition:.3s opacity ease;box-shadow:0 .5rem 1rem -.3rem rgba(0,0,0,.3)}#task_context li{padding:.8rem 1.5rem;display:flex;align-items:center}#task_context li .icon,.temp-task .cancel-task-button{margin-right:.5rem}#branch_container{display:flex;flex-flow:row wrap;margin:1rem 0}#intern_list_popup{flex-direction:column}#intern_list_popup #interns_list_container{min-height:50vh;max-height:50vh;overflow-y:auto}#best_interns_container,#project_list_container{margin-bottom:1rem}#best_interns_container .container-header .icon,#project_list_container .container-header .icon{margin-right:.5rem}#edit_data_fig{width:60vw;margin:2rem 0}.header{position:sticky;top:0;background:var(--foreground-color);display:flex;flex-flow:row;border-bottom:1px solid rgba(var(--text-color),.1);align-items:center;z-index:2}.header svg{fill:none;stroke:rgba(var(--text-color),.8);stroke-width:6;overflow:visible;height:2rem;width:2rem;cursor:pointer;padding:.4rem;margin-left:1rem}.header h3{padding:0 .5rem;display:inline-flexbox}#loading_page{display:grid;position:fixed;right:0;z-index:5;text-align:center;justify-items:center}.loading-message{font-size:1.3rem;margin:1.5rem 0 .5rem}#loading_page__footer{position:absolute;bottom:0;width:100%;padding:1.5rem}#loading_page__footer .icon{height:4rem;width:4rem}#status_map_container{position:relative;overflow:hidden}#status_map_container #status_map{position:relative;padding:0 1rem 1rem}#status_map_container #status_map h2{margin:.4rem 0}.watching{position:relative;display:flex;padding:1rem;align-items:center}.watching h4{flex:1;font-weight:500}.watching button{padding:.5rem;border-radius:.5rem}#right{align-items:flex-start;align-content:flex-start;padding:1rem}#right div:first-of-type h2{flex:1;margin:.4rem 0}#right div:first-of-type button{border:1px solid}#project_explorer{padding:0}#admin_page{position:relative;display:grid;padding:0;gap:0;height:100%}#project_editing_panel{position:relative;padding:1rem;height:100%;overflow-y:auto}.fab-actions{display:grid;gap:1rem;position:absolute;bottom:0;right:0;margin:1rem;justify-items:end;text-align:end}.fab-actions[open] .fab-actions__item{transform:translateY(0);opacity:1}.fab-actions[open] .fab .icon:nth-of-type(1){transform:scale(0) rotate(180deg)}.fab-actions[open] .fab .icon:nth-of-type(2){transform:scale(1) rotate(0)}.fab-actions__item{display:flex;align-items:center;justify-self:end;padding:.7rem 1rem;border-radius:2rem;transform:translateY(1.5rem);opacity:0;transition:transform .3s cubic-bezier(.175,.885,.32,1.275),opacity .3s;box-shadow:0 .2rem .5rem rgba(0,0,0,.2);user-select:none}.fab-actions__item:active,.fab-actions__item:hover,.fab:active{transform:scale(.9)}.fab-actions__item:nth-of-type(1){transition-delay:.2s}.fab-actions__item:nth-of-type(2){transition-delay:.1s}.fab,.fab .icon{transition:transform .3s}.fab-actions__item .icon{fill:var(--accent-color);margin-left:.5rem}.fab{position:relative;display:flex;justify-content:center;align-items:center;padding:1rem;height:3.2rem;width:3.2rem;border-radius:50%;background-color:var(--accent-color);box-shadow:0 .5rem .8remrgba 0,0,0,.3;-webkit-tap-highlight-color:transparent}.fab .icon{position:absolute;height:100%;fill:#fff}.fab .icon:nth-of-type(1){transform:scale(1) rotate(0)}.fab .icon:nth-of-type(2){transform:scale(0) rotate(-180deg)}#update_of_task{font-size:1.3rem;margin:.4rem 0 1.8rem}ul{padding:0;list-style:none}#assigned_task_list{display:grid;gap:1rem;margin-top:1rem;align-content:flex-start}.task-card{display:grid;padding:1rem;border-radius:.5rem}.task__header{display:grid;gap:0 .5rem;align-items:flex-start;grid-template-columns:1fr auto;grid-template-areas:". send-button" ". send-button"}.task__project-title{font-size:.9rem;font-weight:500;border-radius:.3rem;padding:.3rem .5rem;justify-self:flex-start;margin-bottom:.5rem!important;background-color:rgba(var(--text-color),.06)}.task__title{font-size:1.3rem;margin-bottom:1rem!important}.task__description{white-space:pre-line}.send-update-button{grid-area:send-button;--padding:0.6rem 0.8rem;color:var(--accent-color)}.send-update-button .icon{height:1.2rem;width:1.2rem;fill:var(--accent-color)}#admin_page__left{height:100%;overflow-y:hidden}#admin_page__left sm-tab-header{--gap:0;--justify-content:stretch;border-bottom:1px solid rgba(var(--text-color),.2)}#admin_page__left sm-tab{justify-content:center}#admin_page__left sm-tab-panels,#admin_page__left sm-tab-panels>*{height:100%;flex-direction:column}#admin_page__left sm-tab-panels{overflow-y:hidden}#admin_page__left sm-tab-panels>*{display:flex}#admin_page__left .list-container{height:100%;overflow-y:auto}#admin_page__left .empty-state{padding:1rem;text-align:center}@media only screen and (max-width:640px){.hide-on-mobile,.hide-page-on-mobile{display:none}}@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 .5rem}#main_nav{padding:.5rem;flex-direction:column}#main_nav theme-toggle{margin:1rem;margin-top:auto}.nav-list__item{flex-direction:row;align-items:center;border-radius:.5rem;padding:.8rem;margin-bottom:.25rem;font-size:1rem}.nav-list__item--active{background-color:rgba(var(--text-color),.06)}.nav-list__item .icon{margin-bottom:0}.nav-list__item_title{display:none}.project-card--active{background-color:rgba(var(--text-color),.1)}#settings_page{padding:1rem 2rem}#sign_in{width:24rem;height:auto;border-radius:.4rem}#dashboard_page{grid-template-columns:3fr 18rem}#dashboard_page #status_map_container{align-self:flex-start}#admin_page{grid-template-columns:18rem minmax(0,1fr);grid-template-rows:1fr}#admin_page__left{background-color:var(--foreground-color)}#admin_page__left,#project_editing_panel{border-radius:.5rem;box-shadow:0 .5rem 1rem -.5rem rgba(0,0,0,.3)}#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),.06);background-color:rgba(var(--text-color),.06)}#all_interns_list .intern-card,#update_filters_wrapper{border-radius:.5rem;background-color:var(--foreground-color)}#project_explorer #left h4{margin-top:0;margin-bottom:.5rem;color:#29B6F6;font-size:.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:32rem}#updates_page{height:100%;gap:1rem;grid-template-areas:"updates update-filters";grid-template-columns:minmax(0,1fr) 20rem}#update_filters_wrapper{padding:1rem;align-content:flex-start;grid-area:update-filters}#updates_wrapper{height:100%;overflow-y:auto;grid-area:updates}#all_interns_list{gap:1.5rem;grid-template-columns:repeat(auto-fill,minmax(14rem,1fr))}#all_interns_list .intern-card{gap:1rem .5rem;padding:1.5rem;grid-template-columns:1fr}#all_interns_list .intern-card__initials{grid-column:1/3}}@media only screen and (min-width:1280px){#main_page{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:.5rem}.nav-list__item_title{display:inline-block}}@media (any-hover:hover){::-webkit-scrollbar{width:.5rem;height:.5rem}::-webkit-scrollbar-thumb{background:rgba(var(--text-color),.3);border-radius:1rem}::-webkit-scrollbar-thumb:hover{background:rgba(var(--text-color),.5)}.interact:hover{background:linear-gradient(rgba(var(--text-color),.06),rgba(var(--text-color),.06)),var(--foreground-color)}.send-update-button{opacity:0;transition:opacity .3s}.task-card:hover .send-update-button{opacity:1}.task-option{opacity:0}.task-list-item:hover .task-option,.task-option:focus-within{opacity:1}.apply-btn{opacity:0;transition:opacity .3s}.task:hover .apply-btn{opacity:1}}@media (any-hover:none){.apply-btn,.task-option{opacity:1}} \ No newline at end of file +.hide,.ripple{pointer-events:none}#loading_page,#sign_in_page{top:0;place-content:center;bottom:0;right:0}#assigned_task_list,#right,.task-list-item{align-content:flex-start}*{padding:0;margin:0;box-sizing:border-box;font-family:Roboto,sans-serif}:root{font-size:clamp(1rem,1.2vmax,3rem)}body,html{height:100%;scroll-behavior:smooth}body{color:rgba(var(--text-color),1);background:rgba(var(--background-color),1)}body,body *{--accent-color:#5D54A4;--text-color:17,17,17;--background-color:246,246,246;--foreground-color:white;--danger-color:red;scrollbar-width:thin}body[data-theme=dark],body[data-theme=dark] *{--accent-color:#9D65C9;--text-color:240,240,240;--text-color-light:170,170,170;--background-color:10,10,10;--foreground-color:rgb(20, 20, 20);--danger-color:rgb(255, 106, 106)}p{max-width:70ch;line-height:1.7;color:rgba(var(--text-color),.8)}p:not(:last-of-type){margin-bottom:1.5rem}img{object-fit:cover}a:where([class]){color:inherit;text-decoration:none}a:where([class]):focus-visible{box-shadow:0 0 0 .1rem rgba(var(--text-color),1) inset}a{color:var(--accent-color)}.button,button{position:relative;display:inline-flex;border:none;background-color:transparent;overflow:hidden;color:inherit;cursor:pointer}.color-0-8,.nav-list__item{color:rgba(var(--text-color),.8)}button:disabled{opacity:.5}a.button{padding:.6rem 1.2rem;border-radius:.3rem;background-color:rgba(var(--text-color),.06)}a:any-link:focus-visible{outline:solid rgba(var(--text-color),1)}sm-button{--border-radius:0.3rem}sm-button[variant=primary] .icon{fill:rgba(var(--background-color),1)}sm-button[disabled] .icon{fill:rgba(var(--text-color),.6)}.hide{opacity:0}.hide-completely{display:none!important}.no-transformations{transform:none!important}.overflow-ellipsis{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.breakable,.task-description,.task__description{word-wrap:break-word;overflow-wrap:break-word}.breakable{-ms-word-break:break-all;word-break:break-word;-ms-hyphens:auto;-moz-hyphens:auto;-webkit-hyphens:auto;hyphens:auto}.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,.nav-list__item{font-size:.8rem}.uppercase{text-transform:uppercase}.capitalize,.project-card{text-transform:capitalize}.flex{display:flex}.grid{display:grid}.grid-3{grid-template-columns:1fr auto auto}.flow-column{grid-auto-flow:column}.gap-0-5{gap:.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}.align-start{align-items:flex-start}.align-center{align-items:center}.text-center{text-align:center}.justify-start{justify-content:start}.justify-center{justify-content:center}.justify-right{margin-left:auto}.align-self-center{align-self:center}.justify-self-center{justify-self:center}.justify-self-start{justify-self:start}.justify-self-end{justify-self:end}.direction-column{flex-direction:column}.space-between{justify-content:space-between}.w-100{width:100%}.weight-400{font-weight:400}.weight-500{font-weight:500}.ripple{position:absolute;border-radius:50%;transform:scale(0);background:rgba(var(--text-color),.16)}#main_nav,.container-card,.interact{position:relative}#main_header,.container-card,.task .left .circle{background:var(--foreground-color)}#main_nav,#sign_in_page{background-color:var(--foreground-color)}.interact{overflow:hidden;cursor:pointer;-webkit-tap-highlight-color:transparent}.observe-empty-state:empty{display:none}.observe-empty-state:not(:empty)~.empty-state{display:none}.icon{width:1.5rem;height:1.5rem;fill:rgba(var(--text-color),.9)}.button__icon{height:1.2rem;width:1.2rem}.button__icon--left{margin-right:.5rem}.button__icon--right{margin-left:.5rem}#confirmation_popup,#prompt_popup{flex-direction:column}#confirmation_popup h4,#prompt_popup h4{font-weight:500;margin-bottom:.5rem}#confirmation_popup sm-button,#prompt_popup sm-button{margin:0}#confirmation_popup .flex,#prompt_popup .flex{padding:0;margin-top:1rem}#confirmation_popup .flex sm-button:first-of-type,#prompt_popup .flex sm-button:first-of-type{margin-right:.6rem;margin-left:auto}.popup__header{display:grid;gap:.5rem;width:100%;padding:0 1.5rem 0 .5rem;align-items:center;grid-template-columns:auto 1fr auto}.popup__header__close{padding:.5rem;cursor:pointer}#main_page{height:100%;grid-template-rows:auto 1fr auto;grid-template-areas:"main-header" "sub-pages" "main-nav"}#main_header{grid-area:main-header;display:flex;gap:1rem;align-items:center;position:sticky;padding:.5rem 1rem;z-index:1}#main_nav{grid-area:main-nav;display:flex;align-items:center}.nav-list__item{display:flex;flex-direction:column;align-items:center;width:100%;padding:.5rem 0;-webkit-tap-highlight-color:transparent;font-weight:500}.nav-list__item--active,.update__sender{color:var(--accent-color)}.nav-list__item--active .icon{fill:var(--accent-color)}.nav-list__item--active .icon--outlined{display:none}.nav-list__item--active .icon--filled{display:inline-block}.nav-list__item:not(.nav-list__item--active) .icon--outlined{display:inline-block}.nav-list__item:not(.nav-list__item--active) .icon--filled{display:none}.nav-list__item .icon{margin-bottom:.3rem}#sub_page_container{grid-area:sub-pages;height:100%;overflow-y:auto}.container-card{border-radius:.5rem}.medium-top-bottom-margin{margin:.5rem 0}#sign_in_page{display:grid;position:fixed;z-index:5;left:0;gap:1rem}#sign_in_form{width:22rem}.task{display:grid;grid-template-columns:auto 1fr;margin:0 1rem}.task:last-of-type .left .line{transform:scaleY(0)}.task .left{display:flex;position:relative;justify-content:center;padding-top:.5rem}.task .left .circle{display:inline-flex;position:relative;align-self:flex-start;height:1rem;width:1rem;border-radius:50%;border:2px solid;z-index:1}.task .left .line{position:absolute;left:50%;height:100%;width:2px;transform:translateX(-50%) scaleY(1);background-color:rgba(var(--text-color),.4)}.task .right{margin-left:1rem;display:flex;flex-direction:column;width:100%}.task .right .apply-cont{width:100%;display:flex;flex-direction:row}.task .right .apply-cont h4{-webkit-box-flex:1;-ms-flex:1;flex:1}.task h4{margin-top:.4rem;margin-bottom:1rem}.task p{white-space:pre-line;padding-bottom:2rem}.task .assigned-interns .assigned-intern{padding:.4rem}.padding,.page{padding:1rem}.completed-task .left .circle{border:2px solid #00C853!important;background:#00C853!important}.completed-task .left .line{background-color:#00C853!important}.page{gap:1rem;display:grid;position:relative;animation:fadein .3s;grid-template-columns:minmax(0,1fr)}@keyframes fadein{0%{opacity:0}100%{opacity:1}}.title{font-weight:500}#dashboard_page{padding-bottom:5rem;grid-template-columns:auto}.intern-card,.task-list-item{grid-template-columns:auto 1fr 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;font-weight:500;line-height:1.5;color:rgba(var(--text-color),.8)}.intern-card{user-select:none;padding:.8rem 1rem;gap:.8rem}.intern-card__initials{display:flex;height:2.6rem;width:2.6rem;justify-content:center;align-items:center;border-radius:40%;color:#fff;font-weight:500;font-size:1rem;text-transform:uppercase;background-color:var(--accent-color)}.intern-card__score-wrapper{font-weight:500;font-size:1.2rem}.intern-card .icon{fill:#FF5722!important;height:1rem!important;width:1rem!important;margin-left:.2rem}.request-card{display:grid;position:relative;padding:1rem}.request-card sm-button{--padding:0.5rem 0.8rem}.request-card__description{width:100%;font-size:1rem;margin-bottom:1rem}.reject-app{margin-left:auto;margin-right:.5rem}#updates_page sm-select{--max-height:50vh}#updates{transition:opacity .3s ease}#updates_page__project_selector strip-option{font-size:.9rem}.intern-update{display:grid;gap:.5rem;padding:1rem;border-radius:.5rem;background-color:var(--foreground-color)}.update__topic{font-weight:500;font-size:1rem;margin-top:.5rem;text-transform:capitalize;max-width:65ch}.update__sender{font-size:.9rem;font-weight:500}.update__time{font-size:.85rem;color:rgba(var(--text-color),.8)}.update__message{white-space:pre-line}.container-header{display:flex;align-items:center;width:100%;padding:1rem}.container-header h4{flex:1;font-weight:500}#intern_info{flex-direction:column}#intern_info div{display:flex;flex-direction:row;align-items:center;width:100%;margin-bottom:1rem}#intern_info div span{flex:1;word-break:break-all;font-size:.9rem}#intern_info .gold-fill{fill:#FF5722}#intern_info #update_intern_score h4{margin:0;font-size:2rem}#intern_info h3{text-transform:capitalize}#intern_info h4,#intern_info h5{margin-top:.5rem}#project_info{flex-direction:column}.branch-btn{padding:.5rem;border-radius:.2rem;margin:.5rem .5rem .5rem 0;user-select:none;font-size:.85rem;font-weight:500;letter-spacing:.05em}.active-branch{opacity:1;color:var(--accent-color);background:rgba(var(--text-color),.04)}#update_of_project,.task__description,.task__project-title{color:rgba(var(--text-color),.8)}#task_list{padding:1.5rem 0}.task-list-item{display:grid;grid-template-areas:"status title options" "status interns interns" "status description description";padding:1rem;gap:.5rem;border-radius:.5rem;background:rgba(var(--text-color),.02)}#assigned_task_list,.task-card{grid-template-columns:minmax(0,1fr)}#loading_page,#task_context,.fab-actions__item{background-color:var(--foreground-color)}.task-list-item sm-checkbox{grid-area:status;align-self:flex-start;padding:.2rem .5rem .5rem 0}.task-list-item h4{font-weight:500;margin:0}.task-list-item .title{grid-area:title;line-height:1.6}.task-list-item .assigned-interns{grid-area:interns}.task-option{grid-area:options;transition:opacity .3s ease;padding:.5rem}.task-option .icon{height:1.2rem;width:1.2rem}.task-description{grid-area:description;margin:0;white-space:pre-line}.assigned-interns{display:flex;flex-wrap:wrap}.assigned-interns .assigned-intern{user-select:none;display:flex;font-size:.8rem;margin:.2rem .5rem .2rem 0;padding:.2rem 0 .2rem .4rem;border-radius:.2rem;border:1px solid;align-items:center;white-space:nowrap;text-transform:capitalize}.assigned-interns .assigned-intern button{padding:.2rem}.assigned-interns .assigned-intern button .icon{height:1rem;width:1rem}#task_context{position:absolute;top:0;right:0;margin:-1rem 1rem 0;list-style:none;padding:.5rem 0;width:max-content;border-radius:.3rem;transition:.3s opacity ease;box-shadow:0 .5rem 1rem -.3rem rgba(0,0,0,.3)}#task_context li{padding:.8rem 1.5rem;display:flex;align-items:center;font-size:.9rem}#task_context li .icon{height:1.2rem;width:1.2rem;margin-right:.5rem}.temp-task .cancel-task-button{margin-right:.5rem}#branch_container{display:flex;flex-flow:row wrap;margin:1rem 0}#intern_list_popup{flex-direction:column}#intern_list_popup #interns_list_container{min-height:50vh;max-height:50vh;overflow-y:auto}#best_interns_container,#project_list_container{margin-bottom:1rem}#best_interns_container .container-header .icon,#project_list_container .container-header .icon{margin-right:.5rem}#edit_data_fig{fill:rgba(var(--text-color),.6);width:60vw;margin:2rem 0}#loading_page{display:grid;position:fixed;left:0;z-index:5;text-align:center;justify-items:center}.loading-message{font-size:1.3rem;margin:1.5rem 0 .5rem}#loading_page__footer{position:absolute;bottom:0;width:100%;padding:1.5rem}#loading_page__footer .icon{height:4rem;width:4rem}#status_map_container{position:relative;overflow:hidden}#status_map_container #status_map{position:relative;padding:0 1rem 1rem}#status_map_container #status_map h2{margin:.4rem 0;text-transform:capitalize}.watching{position:relative;display:flex;padding:1rem;align-items:center}.watching h4{flex:1;font-weight:500}.watching button{padding:.5rem;border-radius:.5rem}#right{align-items:flex-start;padding:1rem}#right div:first-of-type h2{flex:1;margin:.4rem 0}#right div:first-of-type button{border:1px solid}#project_explorer{padding:0}#admin_page{position:relative;display:grid;padding:0;gap:0;height:100%}#project_editing_panel{position:relative;padding:1rem;height:100%;overflow-y:auto}.fab-actions{display:grid;gap:1rem;position:absolute;bottom:0;right:0;margin:1rem;justify-items:end;text-align:end}#admin_page__left sm-tab-panels>*,.fab,.fab-actions__item{display:flex}.fab-actions[open] .fab-actions__item{transform:translateY(0);opacity:1}.fab-actions[open] .fab .icon:nth-of-type(1){transform:scale(0) rotate(180deg)}.fab-actions[open] .fab .icon:nth-of-type(2){transform:scale(1) rotate(0)}.fab-actions__item{align-items:center;justify-self:end;padding:.6rem 1rem;border-radius:2rem;transform:translateY(1.5rem);opacity:0;transition:transform .3s cubic-bezier(.175,.885,.32,1.275),opacity .3s;box-shadow:0 .2rem .5rem rgba(0,0,0,.2);user-select:none}.fab-actions__item:active,.fab-actions__item:hover,.fab:active{transform:scale(.9)}.fab-actions__item:nth-of-type(1){transition-delay:.2s}.fab-actions__item:nth-of-type(2){transition-delay:.1s}.fab,.fab .icon{transition:transform .3s}.fab-actions__item .icon{fill:var(--accent-color);margin-left:.5rem}.fab-actions__item-name{font-size:.9rem}.fab{position:relative;justify-content:center;align-items:center;padding:1rem;height:3.2rem;width:3.2rem;border-radius:50%;background-color:var(--accent-color);box-shadow:0 .5rem .8rem rgba(0,0,0,.3);-webkit-tap-highlight-color:transparent}.fab .icon{position:absolute;height:100%;fill:#fff}.fab .icon:nth-of-type(1){transform:scale(1) rotate(0)}.fab .icon:nth-of-type(2){transform:scale(0) rotate(-180deg)}#update_of_task{font-size:1.3rem;margin:.4rem 0 1.8rem}ul{padding:0;list-style:none}#assigned_task_list{display:grid;gap:1rem;margin-top:1rem}.task-card{display:grid;padding:1rem;border-radius:.5rem;background-color:var(--foreground-color)}.task__header{display:grid;gap:0 .5rem;align-items:flex-start;grid-template-columns:1fr auto;grid-template-areas:". send-button" ". send-button"}.task__project-title{font-size:.9rem;font-weight:500;border-radius:.3rem;padding:.3rem .5rem;justify-self:flex-start;margin-bottom:.5rem!important;background-color:rgba(var(--text-color),.06)}.task__title{font-size:1.3rem;margin-bottom:1rem!important}.task__description{white-space:pre-line}.send-update-button{grid-area:send-button;--padding:0.6rem 0.8rem;color:var(--accent-color)}.send-update-button .icon{height:1.2rem;width:1.2rem;fill:var(--accent-color)}#admin_page__left{height:100%;overflow-y:hidden}#admin_page__left sm-tab-header{--gap:0;--justify-content:stretch;background-color:var(--foreground-color);border-bottom:1px solid rgba(var(--text-color),.2)}#admin_page__left sm-tab{justify-content:center}#admin_page__left sm-tab-panels,#admin_page__left sm-tab-panels>*{height:100%;flex-direction:column}#admin_page__left sm-tab-panels{overflow-y:hidden}#admin_page__left .list-container{height:100%;overflow-y:auto}#admin_page__left .empty-state{padding:1rem;text-align:center}#update_filters_wrapper{gap:1.5rem}.search__icon{height:1.2rem;width:1.2rem}@media only screen and (max-width:640px){.hide-on-mobile,.hide-page-on-mobile{display:none}}@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 .75rem}#main_nav{padding:.5rem;flex-direction:column}#main_nav theme-toggle{margin:1rem;margin-top:auto}.nav-list__item{flex-direction:row;align-items:center;border-radius:.5rem;padding:.8rem;margin-bottom:.25rem;font-size:1rem}.nav-list__item--active{background-color:rgba(var(--text-color),.06)}.nav-list__item .icon{margin-bottom:0}.nav-list__item_title{display:none}.project-card--active{background-color:rgba(var(--text-color),.1)}#settings_page{padding:1rem 2rem}#sign_in{width:24rem;height:auto;border-radius:.4rem}#dashboard_page{grid-template-columns:3fr 18rem}#dashboard_page #status_map_container{align-self:flex-start}#admin_page{padding:1rem;gap:1rem;grid-template-columns:18rem minmax(0,1fr);grid-template-rows:1fr}#admin_page__left{background-color:var(--foreground-color)}#admin_page__left,#project_editing_panel{border-radius:.5rem;box-shadow:0 .5rem 1rem -.5rem rgba(0,0,0,.3)}#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),.06);background-color:rgba(var(--background-color),1)}#all_interns_list .intern-card,#update_filters_wrapper{border-radius:.5rem;background-color:var(--foreground-color)}#project_explorer #left h4{margin-top:0;margin-bottom:.5rem;color:var(--accent-color);font-size:.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;align-content:flex-start;grid-area:update-filters}#updates_wrapper{height:100%;overflow-y:auto;grid-area:updates}#all_interns_list{gap:1.5rem;grid-template-columns:repeat(auto-fill,minmax(14rem,1fr))}#all_interns_list .intern-card{gap:1rem .5rem;padding:1.5rem;grid-template-columns:1fr}#all_interns_list .intern-card__initials{grid-column:1/3}}@media only screen and (min-width:1280px){#main_page{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:.5rem}.nav-list__item_title{display:inline-block}}@media (any-hover:hover){::-webkit-scrollbar{width:.5rem;height:.5rem}::-webkit-scrollbar-thumb{background:rgba(var(--text-color),.3);border-radius:1rem}::-webkit-scrollbar-thumb:hover{background:rgba(var(--text-color),.5)}.interact:hover{background:linear-gradient(rgba(var(--text-color),.06),rgba(var(--text-color),.06)),var(--foreground-color)}.apply-button,.send-update-button,.task-option{opacity:0;transition:opacity .3s}.task-card:hover .send-update-button,.task-list-item:hover .task-option,.task-option:focus-within,.task:hover .apply-button{opacity:1}} \ No newline at end of file diff --git a/css/main.scss b/css/main.scss index 42c1569..a8af798 100644 --- a/css/main.scss +++ b/css/main.scss @@ -66,6 +66,9 @@ a:where([class]) { box-shadow: 0 0 0 0.1rem rgba(var(--text-color), 1) inset; } } +a{ + color: var(--accent-color); +} button, .button { @@ -410,6 +413,20 @@ ul { .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 { @@ -443,6 +460,7 @@ ul { right: 0; place-content: center; background-color: var(--foreground-color); + gap: 1rem; } #sign_in_form { @@ -560,28 +578,6 @@ ul { padding-bottom: 5rem; grid-template-columns: auto; } - -.show { - display: block; -} - -.no-transformations { - -webkit-transform: none !important; - transform: none !important; -} - -.no-bottom-margin { - margin-bottom: 0; -} - -.top-margin { - margin-top: 0.3rem; -} - -.spacer { - flex: 1; -} - .logo { display: flex; align-items: center; @@ -604,19 +600,6 @@ ul { margin: 0; } -.active { - opacity: 1 !important; - color: var(--accent-color); -} - -.active svg { - fill: var(--accent-color); -} - -.svg-margin-right svg { - margin-right: 0.5rem; -} - .project-card { padding: 1rem; font-weight: 500; @@ -677,30 +660,6 @@ ul { margin-right: 0.5rem; } - -#intern_updates{ - .container-header { - padding: 0 1rem; - border-bottom: 1px solid rgba(var(--text-color), 0.1); - } - .container-header button { - padding: 1rem 0; - border-bottom: 0.2rem solid transparent; - border-radius: 0; - opacity: 0.7; - } - .container-header button:first-of-type { - margin-right: 1rem; - } - .container-header button:last-of-type { - margin-right: 1rem; - } - .container-header .active { - color: rgba(var(--text-color), 1); - border-bottom: 0.2rem solid var(--accent-color); - } -} - #updates_page{ sm-select{ --max-height: 50vh; @@ -862,8 +821,8 @@ ul { .task-description{ grid-area: description; margin: 0; - overflow: hidden; - text-overflow: ellipsis; + overflow-wrap: break-word; + word-wrap: break-word; white-space: pre-line; } @@ -909,8 +868,10 @@ ul { padding: 0.8rem 1.5rem; display: flex; align-items: center; - + font-size: 0.9rem; .icon { + height: 1.2rem; + width: 1.2rem; margin-right: 0.5rem; } } @@ -953,35 +914,6 @@ ul { width: 60vw; margin: 2rem 0; } - -.header { - position: sticky; - top: 0; - background: var(--foreground-color); - display: flex; - flex-flow: row; - border-bottom: 1px solid rgba(var(--text-color), 0.1); - align-items: center; - z-index: 2; -} - -.header svg { - fill: none; - stroke: rgba(var(--text-color), 0.8); - stroke-width: 6; - overflow: visible; - height: 2rem; - width: 2rem; - cursor: pointer; - padding: 0.4rem; - margin-left: 1rem; -} - -.header h3 { - padding: 0 0.5rem; - display: inline-flexbox; -} - #loading_page { display: grid; position: fixed; @@ -1108,7 +1040,7 @@ ul { display: flex; align-items: center; justify-self: end; - padding: 0.7rem 1rem; + padding: 0.6rem 1rem; border-radius: 2rem; transform: translateY(1.5rem); background-color: var(--foreground-color); @@ -1130,6 +1062,9 @@ ul { fill: var(--accent-color); margin-left: 0.5rem; } + &-name{ + font-size: 0.9rem; + } } .fab{ position: relative; @@ -1141,7 +1076,7 @@ ul { width: 3.2rem; border-radius: 50%; background-color: var(--accent-color); - box-shadow: 0 0.5rem 0.8remrgba(0, 0, 0, 0.3); + box-shadow: 0 0.5rem 0.8rem rgba(0, 0, 0, 0.3); transition: transform 0.3s; -webkit-tap-highlight-color: transparent; &:active{ @@ -1182,12 +1117,14 @@ ul { gap: 1rem; margin-top: 1rem; align-content: flex-start; + grid-template-columns: minmax(0, 1fr); } .task-card { display: grid; padding: 1rem; border-radius: 0.5rem; + grid-template-columns: minmax(0, 1fr); background-color: var(--foreground-color); } @@ -1216,6 +1153,8 @@ ul { } .task__description { + word-wrap: break-word; + overflow-wrap: break-word; white-space: pre-line; color: rgba(var(--text-color), 0.8); } @@ -1238,6 +1177,7 @@ ul { sm-tab-header{ --gap: 0; --justify-content: stretch; + background-color: var(--foreground-color); border-bottom: 1px solid rgba(var(--text-color), 0.2); } sm-tab{ @@ -1266,7 +1206,10 @@ ul { #update_filters_wrapper{ gap: 1.5rem; } -// +.search__icon{ + height: 1.2rem; + width: 1.2rem; +} @media only screen and (max-width: 640px) { .hide-on-mobile, @@ -1284,7 +1227,7 @@ ul { } .popup__header { - padding: 1.5rem 1.5rem 0 0.5rem; + padding: 1.5rem 1.5rem 0 0.75rem; } #main_nav { @@ -1342,6 +1285,8 @@ ul { } #admin_page { + padding: 1rem; + gap: 1rem; grid-template-columns: 18rem minmax(0, 1fr); grid-template-rows: 1fr; } @@ -1371,13 +1316,13 @@ ul { overflow-y: auto; padding-bottom: 1.5rem; border-right: 1px solid rgba(var(--text-color), 0.06); - background-color: 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: #29B6F6; + color: var(--accent-color); font-size: 0.9rem; } @@ -1386,18 +1331,13 @@ ul { height: 100%; overflow-y: auto; } - - - // Newer styles - #main_page { - // gap: 0 1.5rem; grid-template-columns: 4rem minmax(0, 1fr); grid-template-areas: 'main-header main-header''main-nav sub-pages'; } #post_update_popup{ - --width: 32rem; + --width: 28rem; } #updates_page{ height: 100%; @@ -1472,37 +1412,21 @@ ul { background: linear-gradient(rgba(var(--text-color), 0.06), rgba(var(--text-color), 0.06)), var(--foreground-color); } - .send-update-button { + .send-update-button, + .task-option, + .apply-button { opacity: 0; transition: opacity 0.3s; } - .task-card:hover { - .send-update-button { - opacity: 1; - } - } - .task-option { - opacity: 0; - } - + .task-list-item:hover .task-option, - .task-option:focus-within { - opacity: 1; - } - .apply-btn { - opacity: 0; - transition: opacity 0.3s; - } - .task:hover .apply-btn { + .task-option:focus-within, + .task:hover .apply-button, + .task-card:hover .send-update-button { opacity: 1; } } @media (any-hover: none) { - - .task-option, - .apply-btn { - opacity: 1; - } } \ No newline at end of file diff --git a/new.html b/new.html index 15daea0..8549a7f 100644 --- a/new.html +++ b/new.html @@ -61,25 +61,24 @@

Sign In

Welcome to RIBC.

- Sign in

Don't have a private key? get it here -
or you can sign as guest. +
or

- as guest + Sign in as guest
-
- - + + Dashboard - - - - + + Updates - + + Manage - + + Settings @@ -192,9 +191,9 @@

- - + @@ -212,10 +211,12 @@
-
+
+

No project added

-
+
    +

    No interns added

      @@ -229,7 +230,7 @@

      Tasks

        - @@ -295,9 +296,6 @@
        -

        Filter

        @@ -316,8 +314,14 @@
        -

        Interns

        -
          +
          +

          Interns

          + + + +
          +
            +

            No intern found

            @@ -380,25 +384,8 @@ d="M18.031 16.617l4.283 4.282-1.415 1.415-4.282-4.283A8.96 8.96 0 0 1 11 20c-4.968 0-9-4.032-9-9s4.032-9 9-9 9 4.032 9 9a8.96 8.96 0 0 1-1.969 5.617zm-2.006-.742A6.977 6.977 0 0 0 18 11c0-3.868-3.133-7-7-7-3.868 0-7 3.132-7 7 0 3.867 3.132 7 7 7a6.977 6.977 0 0 0 4.875-1.975l.15-.15z" /> -
              - - - -
              -
              -

              Information

              -
              - Project name - Points - Description -
              -
              -
              -

              Tasks

              -
              -
              -
              -
              +
                +

                No intern found

                @@ -485,7 +472,7 @@

                - + @@ -618,7 +605,7 @@
              • -

                +

                @@ -632,7 +619,7 @@
                -
                +

                @@ -10276,7 +10263,7 @@ } break; case 'all_interns_page': - // renderAllInterns() + renderAllInterns() break; case 'project_explorer': if(params){ @@ -10299,6 +10286,9 @@ } break; } + if(pageId !== 'all_interns_page'){ + getRef('all_interns_list').innerHTML = '' + } getRef(pageId).classList.remove('hide-completely') lastPage = pageId } @@ -10357,7 +10347,7 @@ card.querySelector('.timeline-task__description').textContent = taskDescription; return card; }, - internCard(internName, internFLOID, internPoints, container) { + internCard(internName, internFLOID, internPoints) { // creates cards containing intern information const card = getRef('intern_card_template').content.cloneNode(true) setAttributes(card.firstElementChild, { 'data-intern-id': internFLOID, 'title': 'Intern Information' }) @@ -10533,7 +10523,7 @@ let internName = getRef('intern_name_field').value.trim(), internFLOID = getRef('intern_flo_id_field').value.trim(); if (RIBC.manage.addIntern(internFLOID, internName)) { - getRef('interns').append(render.internCard(internName, internFLOID, '1', 'interns')) + getRef('admin_page__intern_list').append(render.internCard(internName, internFLOID, '1')) hidePopup(); notify(`${internName} added as an intern.`, 'success') } @@ -10553,7 +10543,7 @@ const projectCode = `${new Date().getFullYear()}_project_${RIBC.getProjectList() ? ( RIBC.getProjectList().length + 1) : '1'}`; RIBC.manage.createProject(projectCode) RIBC.manage.addProjectDetails(projectCode, { projectName, projectDescription }) - getRef('projects').prepend(render.projectCard(projectName, projectCode, true)) + getRef('admin_page__project_list').prepend(render.projectCard(projectName, projectCode, true)) hidePopup(); } @@ -10595,7 +10585,7 @@ currentTask = '', lastProject; function editProjectInfo(projectId) { - const allProjects = getRef('projects').querySelectorAll('.project-card'); + const allProjects = getRef('admin_page__project_list').querySelectorAll('.project-card'); const branchList = document.querySelectorAll('.branch-btn'); const frag = document.createDocumentFragment(); Array.from(allProjects).find(project => project.classList.contains('project-card--active'))?.classList.remove('project-card--active') @@ -10790,13 +10780,9 @@ RIBC.manage.unassignInternFromTask(currentProject, currentBranch, currentTask) } - function populateIntens() { - allInternsList = RIBC.getInternList(); - for (intern in allInternsList) { - frag.append(render.internCard(allInternsList[intern], intern, RIBC.getInternRating(intern))) - } + function renderAllInterns() { getRef('all_interns_list').innerHTML = '' - getRef('all_interns_list').append(frag) + getRef('all_interns_list').append(filterInterns('')) } function changeScore(scoreUpdate) { @@ -11105,7 +11091,7 @@ if (event.target.closest('.intern-card')) showInternInfo(event.target.closest('.intern-card')) }) - document.getElementById('interns').addEventListener('click', (event) => { + document.getElementById('admin_page__intern_list').addEventListener('click', (event) => { if (event.target.closest('.intern-card')) showInternInfo(event.target.closest('.intern-card')) }) @@ -11146,15 +11132,18 @@ } newInternList.sort((a, b) => a[2] - b[2]); + getRef('watch_project_btn').classList.remove('hide-completely') + // Intern's view let assignedProjectsList = [], x; - if (Object.keys(allInternsList).includes(myFloID) && !floGlobals.subAdmins.includes(myFloID)) { + if (allInternsList[myFloID] && !floGlobals.subAdmins.includes(myFloID)) { typeOfUser = 'intern'; document.querySelectorAll('.intern-option').forEach((option) => { option.classList.remove('hide-completely') }) document.getElementById('status_map_container').classList.add('hide-completely') + getRef('watch_project_btn').classList.add('hide-completely') // store all the projects assinged to interns in array for (let i = 0; i < allProjectsList.length; i++) { @@ -11278,20 +11267,17 @@ }) //show interns - document.getElementById('interns').innerHTML = ``; - for (intern in allInternsList) { - frag.appendChild(render.internCard(allInternsList[intern], intern, RIBC.getInternRating(intern), 'interns')) - } - document.getElementById('interns').appendChild(frag) + getRef('admin_page__intern_list').innerHTML = ``; + getRef('admin_page__intern_list').append(filterInterns('')) //show project - document.getElementById('projects').innerHTML = ``; + getRef('admin_page__project_list').innerHTML = ``; for (let project in allProjectsList) { const projectCode = allProjectsList[project] const projectName = RIBC.getProjectDetails(projectCode).projectName - frag.append(render.projectCard(projectName, projectCode, true)) + frag.prepend(render.projectCard(projectName, projectCode, true)) } - document.getElementById('projects').appendChild(frag) + getRef('admin_page__project_list').append(frag) } else { document.querySelectorAll('.admin-options').forEach((option) => { @@ -11324,26 +11310,12 @@ if (localStorage.getItem('watchList') === null) localStorage.setItem('watchList', JSON.stringify(watchList)) - - populateIntens() document.getElementById('branch_container').addEventListener('click', (event) => { if (event.target.closest('.branch-btn')) { showTasksOfBranch(event.target.closest('.branch-btn'), 'project_editing_panel', 'task_list') } }) - - const searchInterns = debounce((e) => { - const searchKey = e.target.value.trim() - const allInterns = RIBC.getInternList() - for (const intern in allInterns) { - if(allInternsList[intern].toLowerCase().includes(searchKey.toLowerCase())) - frag.append(render.internCard(allInternsList[intern], intern, RIBC.getInternRating(intern))) - } - getRef('interns_list_container').innerHTML = '' - getRef('interns_list_container').append(frag) - }, 150) - getRef('intern_search_field').addEventListener('input', searchInterns) - + getRef('post_update_btn').addEventListener('click', () => { const { projectId, projectName, projectBranch, task } = internAssignedTasks[currentTaskId] const topic = `${projectName} / ${RIBC.getTaskDetails(projectId, projectBranch, task).taskTitle}`; @@ -11398,6 +11370,42 @@ console.log(typeOfUser) } + function filterInterns(searchKey){ + const allInterns = RIBC.getInternList() + const arrayOfInterns = [] + for (const intern in allInterns) { + arrayOfInterns.push({ + floId: intern, + internName: allInternsList[intern] + }) + } + arrayOfInterns.sort((a,b) => a.internName.toLowerCase().localeCompare(b.internName.toLowerCase())) + if(searchKey === ''){ + arrayOfInterns.forEach(({internName, floId}) => { + frag.append(render.internCard(internName, floId, RIBC.getInternRating(floId))) + }) + }else{ + const options = { + keys: ['internName'], + threshold: 0.2 + } + const fuse = new Fuse(arrayOfInterns, options) + fuse.search(searchKey).map(v => v.item).forEach(({internName, floId}) => { + frag.append(render.internCard(internName, floId, RIBC.getInternRating(floId))) + }) + } + return frag + } + const searchInternPopup = debounce((e) => { + getRef('interns_list_container').innerHTML = '' + getRef('interns_list_container').append(filterInterns(e.target.value.trim())) + }, 150) + const searchInternPage = debounce((e) => { + getRef('all_interns_list').innerHTML = '' + getRef('all_interns_list').append(filterInterns(e.target.value.trim())) + }, 150) + getRef('intern_search_field').addEventListener('input', searchInternPopup) + getRef('interns_page__search').addEventListener('input', searchInternPage)