| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303 |
- @import '../bootstrap-extended/include'; // Bootstrap includes
- @import '../components/include'; // Components includes
- // Todo Application css starts
- .todo-application {
- // Content area wrapper border
- .content-area-wrapper {
- border: 1px solid $border-color;
- border-radius: $card-border-radius;
- // Sidebar area starts
- .sidebar {
- .todo-sidebar {
- width: $menu-expanded-width;
- height: inherit;
- display: flex;
- background-color: $white;
- border-top-left-radius: $card-border-radius;
- border-bottom-left-radius: $card-border-radius;
- transition: all 0.3s ease, background 0s;
- // Sidebar Menu
- .todo-app-menu {
- width: 100%;
- z-index: 3;
- .add-task {
- padding: 1.5rem;
- }
- // Sidebar menu list items
- .sidebar-menu-list {
- position: relative;
- height: calc(100% - 80px);
- }
- .list-group .list-group-item {
- padding: 0.58rem 1.5rem;
- border: 0;
- font-weight: $font-weight-bold;
- letter-spacing: 0.4px;
- border-left: 2px solid transparent;
- border-radius: 0;
- + .list-group-item.active {
- margin-top: 0;
- }
- &:hover,
- &:focus,
- &.active {
- background: transparent;
- color: $primary;
- }
- &.active {
- border-color: #0085DD;
- }
- }
- }
- }
- }
- // Sidebar area ends
- // Modal editor height
- .ql-editor {
- padding-bottom: 0;
- }
- // Right content area common css starts
- .content-right {
- width: calc(100% - #{$menu-expanded-width});
- border-left: 1px solid $border-color;
- .todo-app-list {
- height: inherit;
- }
- // Todo Fixed search
- .app-fixed-search {
- padding: 0.35rem 0.5rem;
- border-bottom: 1px solid $border-color;
- background-color: $white;
- border-top-right-radius: $border-radius;
- .input-group:focus-within {
- box-shadow: none;
- }
- input,
- .input-group-text {
- border: 0;
- background-color: transparent;
- }
- }
- .todo-title {
- margin-left: 0.5rem;
- margin-right: 0.5rem;
- }
- .completed {
- .todo-title {
- color: $text-muted;
- }
- }
- // ToDo task list area
- .todo-task-list-wrapper {
- position: relative;
- height: calc(100% - 3.56rem); // ? search box height (3.49rem) + 1px bottom border till 2 decimals
- background-color: $white;
- border-radius: 0;
- .todo-task-list {
- padding: 0;
- margin: 0;
- list-style: none;
- li {
- cursor: pointer;
- transition: all 0.2s, border-color 0s;
- position: relative;
- padding: 0.893rem 2rem;
- &:not(:first-child) {
- border-top: 1px solid $border-color;
- }
- &:hover {
- transform: translateY(-4px);
- box-shadow: 0 3px 10px 0 $border-color;
- transition: all 0.2s;
- }
- .todo-title-wrapper {
- display: flex;
- justify-content: space-between;
- }
- .todo-title-area,
- .title-wrapper {
- display: flex;
- align-items: center;
- }
- // Todo Item Action
- .todo-item-action {
- display: flex;
- align-items: center;
- > small {
- margin-left: auto;
- }
- a {
- cursor: pointer;
- font-size: 1.2rem;
- line-height: 1.5;
- }
- }
- .badge-wrapper {
- display: flex;
- .badge:not(:last-child) {
- margin-right: 0.5rem;
- }
- }
- }
- }
- // When we search, no-results
- .no-results {
- display: none;
- padding: 1.5rem;
- text-align: center;
- &.show {
- display: block;
- }
- }
- }
- }
- }
- // Slide In close btn
- .todo-item-action {
- .close {
- background: transparent !important;
- box-shadow: none !important;
- position: unset !important;
- transform: none !important;
- transition: none !important;
- }
- }
- // Drag & Drop Icon
- .todo-item {
- .drag-icon {
- visibility: hidden;
- cursor: move;
- position: absolute;
- left: 0.2rem;
- width: 1.75rem;
- height: 4rem;
- padding: 0 5px;
- }
- &:hover {
- .drag-icon {
- visibility: visible;
- }
- }
- }
- // validation text style
- form .error:not(li):not(input) {
- color: $danger;
- font-size: 85%;
- margin-top: 0.25rem;
- }
- }
- // while dragging task
- .gu-mirror {
- list-style-type: none;
- list-style: none;
- padding: 0.893rem 2rem;
- background-color: $white;
- border-top: 1px solid $border-color;
- border-bottom: 1px solid $border-color;
- box-shadow: 0 0 10px 0 rgba($black, 0.25);
- .todo-title-wrapper {
- display: flex;
- justify-content: space-between;
- }
- .todo-title-area,
- .title-wrapper {
- display: flex;
- align-items: center;
- }
- // Todo Item Action
- .todo-item-action {
- display: flex;
- align-items: center;
- justify-content: space-between;
- }
- .todo-title {
- padding-left: 1rem;
- }
- &.completed {
- .todo-title {
- color: $text-muted;
- }
- }
- }
- // Keyframe animation
- @-webkit-keyframes fadeIn {
- 0% {
- opacity: 0;
- top: 100px;
- }
- 75% {
- opacity: 0.5;
- top: 0px;
- }
- 100% {
- opacity: 1;
- }
- }
- @include media-breakpoint-down(md) {
- .todo-application {
- .content-area-wrapper {
- .sidebar-left {
- .todo-sidebar {
- transform: translateX(-110%);
- transition: all 0.3s ease-in-out;
- left: 0;
- position: absolute;
- z-index: 5;
- border-top-left-radius: $border-radius-sm;
- border-bottom-left-radius: $border-radius-sm;
- }
- &.show {
- .todo-sidebar {
- transform: translateX(0%);
- transition: all 0.3s ease;
- }
- }
- }
- .content-right {
- width: 100%;
- border-left: 0;
- .app-fixed-search {
- border-top-left-radius: $border-radius;
- }
- }
- // ? Responsive Todo list in columns
- .todo-title-wrapper {
- flex-direction: column;
- .title-wrapper {
- margin-bottom: 0.5rem;
- }
- .todo-title {
- display: -webkit-box;
- -webkit-line-clamp: 1;
- -webkit-box-orient: vertical;
- overflow: hidden;
- }
- .badge-wrapper {
- margin-right: auto !important;
- }
- }
- }
- }
- }
- @media (max-width: 349.98px) {
- .todo-application .content-area-wrapper .sidebar .todo-sidebar {
- width: 230px;
- }
- }
- .horizontal-menu .todo-application .content-area-wrapper .content-right .todo-task-list-wrapper {
- height: calc(100% - 3.6rem); // ? search box height (48.79px + 1px border = 3.56), horizontal needs 1 decimal point
- }
|