You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
293 lines
6.9 KiB
293 lines
6.9 KiB
@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: #7367f0; |
|
} |
|
} |
|
} |
|
} |
|
} |
|
// 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.4215rem 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; |
|
// justify-content: space-between; |
|
> 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; |
|
} |
|
} |
|
} |
|
} |
|
} |
|
|
|
// 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(lg) { |
|
.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 |
|
}
|
|
|