diff --git a/src/css/modules/_header.scss b/src/css/modules/_header.scss index 9fd592f..3c24ed4 100644 --- a/src/css/modules/_header.scss +++ b/src/css/modules/_header.scss @@ -1,45 +1,75 @@ .fd-header { - align-items: center; - background: $color-headerBG; - box-sizing: border-box; - display: flex; - padding: 15px 0 15px 100px; - position: relative; - justify-content: flex-start; - @mixin size 100vw, 55px; + align-items: center; + background: $color-headerBG; + box-sizing: border-box; + display: flex; + padding: 15px 0 15px 100px; + position: relative; + justify-content: flex-start; + height: fit-content !important; + @mixin size 100vw, 55px; - img, h1 { - align-items: center; - display: flex; - flex-direction: row; - } + img, + h1 { + align-items: center; + display: flex; + flex-direction: row; + } - img { max-height: 100%; } + img { + max-height: 100%; + height: 30px; + } - h1 { - color: $color-off-white; - display: inline-block; - margin: 0 0 0 15px; - left: 10%; - @mixin font-sansN3; - @mixin font-size 18; - } + h1 { + color: #ffffff; + display: inline-block; + margin: 5px 0 0 0; + left: 10%; + @mixin font-sansN3; + @mixin font-size 13; + } - &--updated { - color: #9e9e9e; - position: absolute; - right: 20px; - top: 50%; - transform: translateY(-50%); - @mixin font-sansN3; - @mixin font-size 14; + &--updated { + color: #9e9e9e; + position: absolute; + right: 20px; + top: 50%; + transform: translateY(-50%); + @mixin font-sansN3; + @mixin font-size 14; - span { @mixin font-sansN7; } - } - @media screen and (--wide) { - padding-left: 20px; - } - @media screen and (--mobile) { - h1 { display: none; } - } -} \ No newline at end of file + span { + @mixin font-sansN7; + } + } + @media screen and (--wide) { + padding-left: 20px; + } + @media screen and (--mobile) { + h1 { + display: none; + } + } +} + +.logo-text { + color: #f8f8f8; + display: inline-block; + margin: 5px 0 0 0; + left: 10%; + font-size: 14px !important; + font-family: "Roboto", sans-serif; + font-weight: 300; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + font-size: 1.125rem; + letter-spacing: 0em; +} + +.regular-checkbox { + height: 18px !important; + width: 18px !important; + margin-left: 5px; + cursor: pointer; +} diff --git a/src/css/modules/_projectList.scss b/src/css/modules/_projectList.scss index 0068c8a..cad4984 100644 --- a/src/css/modules/_projectList.scss +++ b/src/css/modules/_projectList.scss @@ -1,46 +1,57 @@ .fd-projectList { - padding-left: 50px; - text-align: center; + padding-left: 25px; + text-align: center; - &-container { - @mixin list-reset; - display: flex; - justify-content: flex-start; - text-align: left; + &-container { + @mixin list-reset; + display: flex; + justify-content: flex-start; + text-align: left; - li { - align-items: center; - display: flex; - flex-direction: row; - margin-left: 10px; - justify-content: flex-start; + li { + align-items: center; + display: inline; + flex-direction: row; + margin-left: 0px; + justify-content: flex-start; - &:first-child, &:first-child .fd-projectList--color { margin-left: 0; } - } + &:first-child, + &:first-child .fd-projectList--color { + margin-left: 0; + } + } - .fd-projectList--color { - background: #d0d2d5; - border: 1px solid #d0d2d5; - box-sizing: border-box; - border-radius: 50%; - display: inline-block; - margin: 0 10px; - @mixin size 20px, 20px; - } + .fd-projectList--color { + background: #d0d2d5; + border: 1px solid #d0d2d5; + box-sizing: border-box; + border-radius: 50%; + display: inline-block; + margin: 0; + @mixin size 20px, 20px; + } - .fd-projectList--name { - color: $color-projectListText; - @mixin font-sansN4; - } - } + .fd-projectList--name { + color: $color-projectListText; + display: inline; + margin-left: 5px; + margin-right: 10px; + vertical-align: top; + @mixin font-sansN4; + } + } - @media screen and (--desktop) { - padding-left: 20px; - @mixin font-size 14, 0, 0; + @media screen and (--desktop) { + padding-left: 20px; + @mixin font-size 14, 0, 0; - &-container { - .fd-projectList--color { @mixin size 14px, 14px; } - } - } - @media screen and (--mid) { display: none; } -} \ No newline at end of file + &-container { + .fd-projectList--color { + @mixin size 14px, 14px; + } + } + } + @media screen and (--mid) { + display: none; + } +} diff --git a/src/css/modules/_resourceTable.scss b/src/css/modules/_resourceTable.scss index ffb5103..49ee250 100644 --- a/src/css/modules/_resourceTable.scss +++ b/src/css/modules/_resourceTable.scss @@ -1,333 +1,497 @@ // Resource Table Styles .fd-resourceTable { - width: 100%; - - &-head { - align-items: center; - background: $color-tableHeadBG; - display: flex; - flex: 1; - flex-direction: row; - padding-left: $table-row-offset--1-6; - justify-content: flex-start; - } - - &-date { - align-items: flex-start; - border-left: 1px solid #272727; - box-sizing: border-box; - color: #acacac; - display: flex; - flex-direction: column; - flex: 1; - height: $table-date-height--large; - padding: 0 15px; - position: relative; - justify-content: flex-end; - width: $table-col-width--1-6; - @mixin font-size 22, -16, -100; - line-height: 29px; - @mixin font-sansN4; - - [data-showdayofweeklabels="false"] & { - justify-content: center; - } - - &--current { - border-left-color: transparent; - - span.date { - color: $color-white; - position: relative; - top: -5px; - @mixin font-size 32, -16, -100; - } - .fd-resourceTable-daysOfWeek span { color: #7d7d7d; } - } - span { - box-sizing: border-box; - display: block; - padding-left: 5%; - width: 100%; - @mixin font-sansN5; - } - } - - &-daysOfWeek { - display: flex; - margin-top: 3px; - @mixin size 100%, auto; - - [data-showdayofweeklabels="false"] & { - display: none; - } - - span { - box-sizing: border-box; - color: #9e9e9e; - display: block; - padding: 10px 0; - position: relative; - text-align: center; - flex: 1; - flex-basis: 20%; - width: 20%; - @mixin font-size 12, 0; - - &:before { - @extend %pseudoElementAbsolute; - background: #4e4e4e; - top: 5px; bottom: 5px; - width: 1px; - } - &:first-child:before { display: none; } - } - } - - &-rowsWrap { height: $table-rowWrap-height--large; } - &-row { - background: #eeedec; - border-bottom: 1px solid $color-tableBorder; - display: flex; - flex-direction: row; - flex: 1; - align-items: center; - justify-content: flex-start; - position: relative; - @mixin size 100%, $table-row-height; - - &:nth-child(even) { background: #f5f5f5; } - } - - &-employee { - border-right: 1px solid transparent; // meant to try and keep things aligned - flex-basis: auto; - min-width: $table-row-offset--1-6; - max-width: $table-row-offset--1-6; - position: relative; - width: $table-row-offset--1-6; - - i, span { - display: block; - margin: 0 auto; - } - - i { - background-size: cover !important; - border-radius: 50%; - @mixin size 50px, 50px; - } - - span { - color: $color-grey-60; - margin-top: 5px; - text-align: center; - @mixin font-sansN4; - @mixin font-size 16, 18, 25; - line-height: 15px; - } - - &--container { - position: absolute; - top: 50%; left: 50%; - transform: translate(-50%, -50%); - width: 100%; - } - } - - &-week { - align-content: center; - border-right: 1px solid #dcdcdc; - box-sizing: border-box; - display: flex; - flex: 1; - flex-direction: row; - flex-wrap: wrap; - padding: 0 15px; - position: relative; - @mixin size $table-col-width--1-6, 100%; - - &:nth-child(2) { - margin-left: 0; - - &:before { - @extend %pseudoElementAbsolute; - background: $color-white; - border-left: 1px solid #dfdedd; - border-right: 1px solid #dfdedd; - box-sizing: border-box; - margin-left: -1px; - position: absolute; - top: 0; left: 0; - @mixin size calc(20% - 4px), 100%; - } - - [data-highlightdayofweek="false"] & { - &:before { - display: none; - } - } - } - - div { - background: #ff0000; - border-radius: 10px; - box-shadow: color($color-black a(10%)) 0 1px 2px; - color: $color-white; - height: 35%; - margin: 2px; - float: left; - text-align: left; - position: relative; - overflow: hidden; - @mixin font-sansN6; - @mixin font-size 14, 38, 25; - - span { - margin-left: 10px; - position: absolute; - top: 50%; - transform: translateY(-50%); - } - } - - [data-delivery="true"] { box-shadow: inset 0 0 0 2px #ff0000; } - - // Override White color for cells with white backgrounds - .span-1 { - width: calc(20% - 4px); - - span { - margin-left: 0; - left: 50%; - transform: translate(-50%, -50%); - } - } - .span-2 { width: calc(40% - 4px); } - .span-3 { width: calc(60% - 4px); } - .span-4 { width: calc(80% - 4px); } - .span-5 { width: calc(100% - 4px); } - } - - &[data-day="Mon"] { @mixin activeDay .Mon; } - &[data-day="Tue"] { @mixin activeDay .Tue; } - &[data-day="Wed"] { @mixin activeDay .Wed; } - &[data-day="Thu"] { @mixin activeDay .Thu; } - &[data-day="Fri"] { @mixin activeDay .Fri; } - - &-day { - display: flex; - flex-direction: column; - margin: 0 1% 0 0; - height: 6vh; - width: calc(100vw / 34); - - &:last-child { margin-right: 0; } - - div { - background: #ff0000; - border-radius: 3px; - display: flex; - align-items: center; - justify-content: center; - clear: both; - text-align: center; - @mixin size 100%, 100%; - } - - &--split { - display: block; - height: auto; - margin-bottom: 2%; - - &:last-child { - margin-top: 2%; - margin-bottom: 0; - } - } - } - - // Vertical Breakpoints - @media screen and (--tallest) { - &-date {} - &-employee { - span { - font-size: 16px; - margin-left: 10px; - padding: 0; - } - } - } - - @media screen and (--tall) { - &-employee { - i { display: none; } - } - } - - @media screen and (--medium) { - &-date { - @mixin font-size 18, -16, -100; - - &--current span.date { @mixin font-size 20, -16, -100; } - .fd-resourceTable-daysOfWeek span { font-size: 12px; } - } - } - - @media screen and (--small) { - &-rowsWrap { height: $table-rowWrap-height--small; } - &-date { height: $table-date-height--small; } - &-employee { - span { - font-size: 12px; - line-height: 1; - // margin-left: auto; - margin-top: 0; - padding: 0; - } - } - &-week div { @mixin font-size 12, 38, 25; } - } - - // Hiding cols - @media screen and (--maxWidth) { - &-date, &-week { @mixin hideEndWeeks 1; } - } - @media screen and (--widest) { - &-date, &-week { @mixin hideEndWeeks 2; } - } - @media screen and (--wide) { - &-head { padding-left: $table-row-offset--1-3; } - &-employee { - height: 100%; - min-width: $table-row-offset--1-3; - max-width: $table-row-offset--1-3; - transform: rotate(180deg); - writing-mode: vertical-lr; - width: $table-row-offset--1-3; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - - &--container { - height: 100%; - top: 0; - transform: translate(-50%, 0); - } - i { display: none; } - span { - box-sizing: border-box; - line-height: 5px; - padding: 0 10px; - } - } - - &-date, &-week { @mixin hideEndWeeks 3; } - } - @media screen and (--mid) { - &-date, &-week { @mixin hideEndWeeks 4; } - } - @media screen and (--mobile) { - &-date, &-week { @mixin hideEndWeeks 5; } - } -} \ No newline at end of file + width: 100%; + scrollbar-width: thin; + scrollbar-color: gray; + + &-head { + align-items: center; + background: $color-tableHeadBG; + display: flex; + flex: 1; + flex-direction: row; + padding-left: $table-row-offset--1-2; + justify-content: flex-start; + } + + &-open_percent { + font-size: 10px; + color: #c2c2c2; + min-width: 100px !important; + text-align: center; + } + + &-date { + align-items: flex-start; + border-left: 1px solid #272727; + box-sizing: border-box; + color: #acacac; + display: flex; + flex-direction: column; + flex: 1; + height: $table-date-height--large; + padding: 0 15px; + position: relative; + justify-content: flex-end; + // width: $table-col-width--1-6; + min-width: 300px !important; + @mixin font-size 22, -16, -100; + line-height: 29px; + @mixin font-sansN4; + + [data-showdayofweeklabels="false"] & { + justify-content: center; + } + + &--current { + border-left-color: transparent; + + span.date { + color: $color-white; + position: relative; + top: -5px; + @mixin font-size 32, -16, -100; + } + .fd-resourceTable-daysOfWeek span { + color: #7d7d7d; + } + } + span { + box-sizing: border-box; + display: block; + padding-left: 5%; + width: 100%; + @mixin font-sansN5; + } + } + + &-daysOfWeek { + display: flex; + margin-top: 3px; + @mixin size 100%, auto; + + [data-showdayofweeklabels="false"] & { + display: none; + } + + span { + box-sizing: border-box; + color: #9e9e9e; + display: block; + padding: 10px 0; + position: relative; + text-align: center; + flex: 1; + flex-basis: 20%; + width: 20%; + @mixin font-size 12, 0; + + &:before { + @extend %pseudoElementAbsolute; + background: #4e4e4e; + top: 5px; + bottom: 5px; + width: 1px; + } + &:first-child:before { + display: none; + } + } + } + + &-rowsWrap { + height: $table-rowWrap-height--large; + } + &-row { + background: #eeedec; + border-bottom: 1px solid $color-tableBorder; + display: flex; + flex-direction: row; + flex: 1; + align-items: center; + justify-content: flex-start; + position: relative; + height: 60px !important; + @mixin size 100%, $table-row-height; + + &:nth-child(even) { + background: #f5f5f5; + } + } + + &-employee { + border-right: 1px solid transparent; // meant to try and keep things aligned + flex-basis: auto; + min-width: $table-row-offset--1-6; + max-width: $table-row-offset--1-6; + position: relative; + width: $table-row-offset--1-6; + + i, + span { + display: block; + margin: 0 auto; + } + + i { + background-size: cover !important; + border-radius: 50%; + margin-top: -3px; + @mixin size 35px, 35px; + } + + span { + color: $color-grey-60; + margin-top: 5px; + text-align: center; + @mixin font-sansN4; + @mixin font-size 16, 18, 25; + line-height: 15px; + } + + &--container { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + width: 100%; + } + } + + &-week { + align-content: center; + border-right: 1px solid #dcdcdc; + box-sizing: border-box; + display: flex; + flex: 1; + flex-direction: row; + flex-wrap: wrap; + padding: 0 15px; + position: relative; + width: 300px !important; + @mixin size $table-col-width--1-6, 100%; + + &:nth-child(2) { + margin-left: 0; + + &:before { + @extend %pseudoElementAbsolute; + background: $color-white; + border-left: 1px solid #dfdedd; + border-right: 1px solid #dfdedd; + box-sizing: border-box; + margin-left: -1px; + position: absolute; + top: 0; + left: 0; + @mixin size calc(20% - 4px), 100%; + } + + [data-highlightdayofweek="false"] & { + &:before { + display: none; + } + } + } + + div { + background: #ff0000; + border-radius: 10px; + box-shadow: color($color-black a(10%)) 0 1px 2px; + color: $color-white; + height: 35%; + margin: 2px; + float: left; + text-align: left; + position: relative; + overflow: hidden; + @mixin font-sansN6; + @mixin font-size 14, 38, 25; + + span { + margin-left: 12px; + position: absolute; + top: 50%; + transform: translateY(-50%); + } + } + + [data-delivery="true"] { + box-shadow: inset 0 0 0 2px #ff0000; + } + + // Override White color for cells with white backgrounds + .span-1 { + width: calc(20% - 4px); + + span { + margin-left: 0; + left: 50%; + transform: translate(-50%, -50%); + } + } + .span-2 { + width: calc(40% - 4px); + } + .span-3 { + width: calc(60% - 4px); + } + .span-4 { + width: calc(80% - 4px); + } + .span-5 { + width: calc(100% - 4px); + } + } + + &[data-day="Mon"] { + @mixin activeDay .Mon; + } + &[data-day="Tue"] { + @mixin activeDay .Tue; + } + &[data-day="Wed"] { + @mixin activeDay .Wed; + } + &[data-day="Thu"] { + @mixin activeDay .Thu; + } + &[data-day="Fri"] { + @mixin activeDay .Fri; + } + + &-day { + display: flex; + flex-direction: column; + margin: 0 1% 0 0; + height: 6vh; + width: calc(100vw / 34); + + &:last-child { + margin-right: 0; + } + + div { + background: #ff0000; + border-radius: 3px; + display: flex; + align-items: center; + justify-content: center; + clear: both; + text-align: center; + @mixin size 100%, 100%; + } + + &--split { + display: block; + height: auto; + margin-bottom: 2%; + + &:last-child { + margin-top: 2%; + margin-bottom: 0; + } + } + } + + // Vertical Breakpoints + @media screen and (--tallest) { + &-date { + } + &-employee { + span { + font-size: 12px; + margin-left: 10px; + padding: 0; + } + } + } + + @media screen and (--tall) { + &-employee { + i { + display: block; + } + } + } + + @media screen and (--medium) { + &-date { + @mixin font-size 18, -16, -100; + + &--current span.date { + @mixin font-size 20, -16, -100; + } + .fd-resourceTable-daysOfWeek span { + font-size: 12px; + } + } + } + + @media screen and (--small) { + &-rowsWrap { + // height: $table-rowWrap-height--small; + } + &-date { + height: $table-date-height--small; + } + &-employee { + span { + font-size: 10px; + line-height: 1; + margin-top: 0; + padding: 0; + } + } + &-week div { + @mixin font-size 12, 38, 25; + } + } + + // Hiding cols + // @media screen and (--maxWidth) { + // &-date, + // &-week { + // @mixin hideEndWeeks 1; + // } + // } + // @media screen and (--widest) { + // &-date, + // &-week { + // @mixin hideEndWeeks 2; + // } + // } + // @media screen and (--wide) { + // &-head { + // padding-left: $table-row-offset--1-3; + // } + // &-open_percent { + // display: none; + // } + // &-employee { + // height: 100%; + // min-width: $table-row-offset--1-3; + // max-width: $table-row-offset--1-3; + // transform: rotate(180deg); + // writing-mode: vertical-lr; + // width: $table-row-offset--1-3; + // white-space: nowrap; + // overflow: hidden; + // text-overflow: ellipsis; + + // &--container { + // height: 100%; + // top: 0; + // transform: translate(-50%, 0); + // } + // i { + // display: none; + // } + // span { + // box-sizing: border-box; + // line-height: 5px; + // padding: 0 10px; + // } + // } + + // &-date, + // &-week { + // @mixin hideEndWeeks 3; + // } + // } + // @media screen and (--mid) { + // &-date, + // &-week { + // @mixin hideEndWeeks 4; + // } + // } + // @media screen and (--mobile) { + // &-date, + // &-week { + // @mixin hideEndWeeks 5; + // } + // } +} + +.fd-resourceTable-rowsWrap::-webkit-scrollbar { + width: 5px; + height: 20px; +} + +.fd-resourceTable-rowsWrap::-webkit-scrollbar-track { + background: #f1f1f1; +} + +.fd-resourceTable-rowsWrap::-webkit-scrollbar-thumb { + background: #000000; + border-radius: 50px; + height: 30px; +} + +.emp-name { + font-weight: 8px !important; + width: 85px !important; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.pie { + background-color: #f09628; + color: #d02b2b; // text color inside circle + border-radius: 50%; + width: 45px; + height: 45px; + overflow: hidden; + position: relative; + float: left; + margin-left: 25px; + margin-top: 3px; + margin-bottom: 2px; +} +.pie > div { + float: left; + width: 50%; + height: 100%; + position: relative; + overflow: hidden; +} +.pie span { + background-color: #d02b2b; + display: block; + width: 100%; + height: 100%; +} +.pie .left span { + border-top-right-radius: 0; + border-bottom-right-radius: 0; + -webkit-transform-origin: 100% 50%; +} +.pie .right span { + border-top-left-radius: 0; + border-bottom-left-radius: 0; + -webkit-transform-origin: 0% 50%; +} +.pie:before, +.pie:after { + border-radius: 50%; + display: block; + position: absolute; + top: 50%; + left: 50%; + -webkit-transform: translateX(-50%) translateY(-50%); +} +.pie:before { + background-color: #fff; + content: ""; + width: 75%; + height: 75%; + z-index: 100; +} +.pie:after { + content: attr(data-percent) "%"; + font-size: 14px; + font-weight: bold; + z-index: 200; + text-align: center; +} diff --git a/src/index.html b/src/index.html index 9f765f6..5e15b96 100644 --- a/src/index.html +++ b/src/index.html @@ -1,26 +1,30 @@ - + -
- - -