123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327 |
- // Core variables and mixins
- @import "../bootstrap/functions";
- @import "../bootstrap/mixins";
- @import "../bootstrap-extended/mixins";
- // Load variable overrides
- @import "../core/variables/variables";
- @import "../bootstrap/variables";
- // Overrides user variable
- @import "../core/variables/components-variables";
- // Todo Application css starts
- .todo-application{
- // Content area wrapper border
- .content-area-wrapper{
- border: 1px solid $gray-300;
- border-radius: $border-radius-sm;
- // Sidebar area starts
- .sidebar{
- .todo-sidebar{
- width: $menu-expanded-width;
- height: calc(100vh - 13rem);
- height: calc(var(--vh, 1vh) * 100 - 13rem);
- background-color: $white;
- border-top-left-radius: $border-radius-sm;
- border-bottom-left-radius: $border-radius-sm;
- transition: all .3s ease;
- // Close Icon
- .sidebar-close-icon{
- position: absolute;
- right: .25rem;
- top: .25rem;
- cursor: pointer;
- font-size: 1.25rem;
- z-index: 5;
- visibility: hidden;
- }
- .todo-app-menu{
- width: 100%;
- box-shadow: 0 0 15px 0 rgba($pure_black,.05);
- padding: .5rem 0;
- z-index: 3;
- .add-task{
- padding: 1px 1.5rem;
- margin-bottom: 0.25rem;
- }
- .sidebar-menu-list{
- padding: 0 1.5rem;
- position: relative;
- overflow: scroll;
- height: calc(100% - 5.4rem);
- }
- .list-group .list-group-item {
- padding-left: 0;
- padding-right: 0;
- &:focus {
- background-color: transparent;
- }
- &:hover{
- background-color: transparent;
- color: $body_color;
- }
- &.active {
- background-color: transparent;
- color: $primary;
- }
- i{
- top: 3px;
- }
- }
- hr{
- margin-left: -1.5rem;
- margin-right: -1.5rem;
- }
- }
- }
- }
- // Sidebar area ends
- //
- // Todo Item Action
- .modal{
- .todo-item-action {
- display: flex;
- align-items: center;
- justify-content: space-between;
- width: 6rem;
- margin-bottom: 1.25rem;
- .todo-item-info, .todo-item-favorite, .dropdown{
- cursor: pointer;
- font-size: 1.2rem;
- line-height: 1.5;
- }
- .dropdown .dropdown-menu .dropdown-item {
- padding: .14rem 1.428rem;
- }
- .dropdown-toggle::after{
- display: none;
- }
- }
- }
- // Todo list wrapper
- .app-content{
- .content-area-wrapper{
- position: relative;
- }
- }
- .completed {
- .todo-title, .todo-desc{
- text-decoration: line-through;
- }
- }
- // Right content area common css starts
- .content-right {
- width: calc(100% - #{$menu-expanded-width});
- .content-wrapper{
- padding: 0;
- }
- .todo-app-list-wrapper{
- border-left: 1px solid $gray-300;
- }
- // Todo Fixed search
- .app-fixed-search{
- padding: .35rem .1rem;
- border-bottom: 1px solid $gray-300;
- background-color: $white;
- border-top-right-radius: $border-radius;
- .form-control-position{
- font-size: calc(#{$spacer} * 1.1);
- }
- input{
- border:0;
- background-color: transparent;
- &:focus {
- border-color: transparent;
- box-shadow: none;
- }
- }
- }
- // Sidebar toggle icon
- .sidebar-toggle{
- cursor: pointer;
- margin: 0.5rem 0.99rem;
- float: left;
- line-height: 1;
- i{
- font-size: 1.75rem;
- }
- }
- // Content area overlay
- .app-content-overlay{
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- position: absolute;
- display: block;
- z-index: 2;
- visibility: hidden;
- opacity: 0;
- transition: all .3s ease;
- &.show{
- visibility: visible;
- transition: all .3s ease;
- opacity: 1;
- background-color: rgba(0, 0, 0, 0.2);
- border-radius: .25rem;
- }
- }
- // ToDo task list area
- .todo-task-list{
- position: relative;
- height: calc(100vh - 16.35rem);
- height: calc(var(--vh, 1vh) * 100 - 16.35rem);
- .todo-task-list-wrapper{
- padding: 0;
- margin: 0;
- li{
- cursor: pointer;
- transition: all .2s;
- animation: fadeIn 0.5s linear;
- animation-fill-mode: both;
- position: relative;
- padding: 1.1rem 3rem 1.2rem 2rem;
- border-top: 1px solid $gray-300;
- &:hover {
- transform: translateY(-4px);
- box-shadow: 0 3px 10px 0 #ccc;
- transition: all .2s;
- }
- .chip-wrapper{
- display: flex;
- .chip{
- margin-right: 0.25rem;
- }
- }
- }
- // Set delay per List Item
- @for $i from 1 through 5000 {
- li:nth-child(#{$i}) {
- animation-delay: .1s * $i;
- }
- }
- // Todo Item Action
- .todo-item-action {
- display: flex;
- align-items: center;
- justify-content: space-between;
- width: 5.75rem;
- a{
- cursor: pointer;
- font-size: 1.2rem;
- line-height: 1.5;
- }
- }
- }
- // When we search, no-results
- .no-results{
- display: none;
- padding: 1.5rem;
- text-align: center;
- &.show{
- display: block;
- }
- }
- }
- }
- // Right content area common css End
- }
- }
- // Keyframe animation
- @-webkit-keyframes fadeIn {
- 0% {
- opacity: 0;
- top: 100px;
- }
- 75% {
- opacity: 0.5;
- top: 0px;
- }
- 100% {
- opacity: 1;
- }
- }
- @include media-breakpoint-down(xs) {
- .todo-application .app-content .sidebar-left .todo-sidebar{
- left: -1.12rem !important;
- }
- }
- @include media-breakpoint-down(sm) {
- .todo-application{
- .sidebar-content{
- .sidebar-close-icon{
- visibility: visible !important;
- }
- }
- }
- }
- @include media-breakpoint-down(md) {
- .todo-application{
- .app-content{
- .sidebar-left{
- // position: relative;
- .todo-sidebar{
- transform: translateX(-110%);
- transition: all .3s ease-in-out;
- // transition: transform .25s;
- left: 0;
- position: fixed;
- z-index: 5;
- left: -2px;
- }
- &.show{
- .todo-sidebar{
- transform: translateX(13%);
- transition: all .3s ease;
- // transition: transform .25s;
- display: block;
- }
- }
- }
- .content-right{
- width: 100%;
- .todo-app-list-wrapper{
- border-left: 0;
- }
- .app-fixed-search{
- border-top-left-radius: $border-radius;
- }
- }
- }
- }
- }
- @include media-breakpoint-down(xs) {
- .content-right .todo-task-list .todo-title-wrapper, .todo-title-area{
- display: block !important;
- }
- .content-right .todo-task-list .todo-title-wrapper .todo-item-action{
- float: none !important;
- width: 100% !important;
- display: block !important;
- margin-top: .5rem;
- a{
- margin-right: 1rem;
- }
- }
- }
- @media (max-width: 349.98px){
- .todo-application .content-area-wrapper .sidebar .todo-sidebar{
- width: 230px;
- }
- }
- // IE Specific
- @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
- .todo-application .content-area-wrapper .content-right .todo-task-list .todo-task-list-wrapper li{
- padding-top: 0;
- }
- }
|