app-todo.scss 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. @import '../bootstrap-extended/include'; // Bootstrap includes
  2. @import '../components/include'; // Components includes
  3. // Todo Application css starts
  4. .todo-application {
  5. // Content area wrapper border
  6. .content-area-wrapper {
  7. border: 1px solid $border-color;
  8. border-radius: $card-border-radius;
  9. // Sidebar area starts
  10. .sidebar {
  11. .todo-sidebar {
  12. width: $menu-expanded-width;
  13. height: inherit;
  14. display: flex;
  15. background-color: $white;
  16. border-top-left-radius: $card-border-radius;
  17. border-bottom-left-radius: $card-border-radius;
  18. transition: all 0.3s ease, background 0s;
  19. // Sidebar Menu
  20. .todo-app-menu {
  21. width: 100%;
  22. z-index: 3;
  23. .add-task {
  24. padding: 1.5rem;
  25. }
  26. // Sidebar menu list items
  27. .sidebar-menu-list {
  28. position: relative;
  29. height: calc(100% - 80px);
  30. }
  31. .list-group .list-group-item {
  32. padding: 0.58rem 1.5rem;
  33. border: 0;
  34. font-weight: $font-weight-bold;
  35. letter-spacing: 0.4px;
  36. border-left: 2px solid transparent;
  37. border-radius: 0;
  38. + .list-group-item.active {
  39. margin-top: 0;
  40. }
  41. &:hover,
  42. &:focus,
  43. &.active {
  44. background: transparent;
  45. color: $primary;
  46. }
  47. &.active {
  48. border-color: #0085DD;
  49. }
  50. }
  51. }
  52. }
  53. }
  54. // Sidebar area ends
  55. // Modal editor height
  56. .ql-editor {
  57. padding-bottom: 0;
  58. }
  59. // Right content area common css starts
  60. .content-right {
  61. width: calc(100% - #{$menu-expanded-width});
  62. border-left: 1px solid $border-color;
  63. .todo-app-list {
  64. height: inherit;
  65. }
  66. // Todo Fixed search
  67. .app-fixed-search {
  68. padding: 0.35rem 0.5rem;
  69. border-bottom: 1px solid $border-color;
  70. background-color: $white;
  71. border-top-right-radius: $border-radius;
  72. .input-group:focus-within {
  73. box-shadow: none;
  74. }
  75. input,
  76. .input-group-text {
  77. border: 0;
  78. background-color: transparent;
  79. }
  80. }
  81. .todo-title {
  82. margin-left: 0.5rem;
  83. margin-right: 0.5rem;
  84. }
  85. .completed {
  86. .todo-title {
  87. color: $text-muted;
  88. }
  89. }
  90. // ToDo task list area
  91. .todo-task-list-wrapper {
  92. position: relative;
  93. height: calc(100% - 3.56rem); // ? search box height (3.49rem) + 1px bottom border till 2 decimals
  94. background-color: $white;
  95. border-radius: 0;
  96. .todo-task-list {
  97. padding: 0;
  98. margin: 0;
  99. list-style: none;
  100. li {
  101. cursor: pointer;
  102. transition: all 0.2s, border-color 0s;
  103. position: relative;
  104. padding: 0.893rem 2rem;
  105. &:not(:first-child) {
  106. border-top: 1px solid $border-color;
  107. }
  108. &:hover {
  109. transform: translateY(-4px);
  110. box-shadow: 0 3px 10px 0 $border-color;
  111. transition: all 0.2s;
  112. }
  113. .todo-title-wrapper {
  114. display: flex;
  115. justify-content: space-between;
  116. }
  117. .todo-title-area,
  118. .title-wrapper {
  119. display: flex;
  120. align-items: center;
  121. }
  122. // Todo Item Action
  123. .todo-item-action {
  124. display: flex;
  125. align-items: center;
  126. > small {
  127. margin-left: auto;
  128. }
  129. a {
  130. cursor: pointer;
  131. font-size: 1.2rem;
  132. line-height: 1.5;
  133. }
  134. }
  135. .badge-wrapper {
  136. display: flex;
  137. .badge:not(:last-child) {
  138. margin-right: 0.5rem;
  139. }
  140. }
  141. }
  142. }
  143. // When we search, no-results
  144. .no-results {
  145. display: none;
  146. padding: 1.5rem;
  147. text-align: center;
  148. &.show {
  149. display: block;
  150. }
  151. }
  152. }
  153. }
  154. }
  155. // Slide In close btn
  156. .todo-item-action {
  157. .close {
  158. background: transparent !important;
  159. box-shadow: none !important;
  160. position: unset !important;
  161. transform: none !important;
  162. transition: none !important;
  163. }
  164. }
  165. // Drag & Drop Icon
  166. .todo-item {
  167. .drag-icon {
  168. visibility: hidden;
  169. cursor: move;
  170. position: absolute;
  171. left: 0.2rem;
  172. width: 1.75rem;
  173. height: 4rem;
  174. padding: 0 5px;
  175. }
  176. &:hover {
  177. .drag-icon {
  178. visibility: visible;
  179. }
  180. }
  181. }
  182. // validation text style
  183. form .error:not(li):not(input) {
  184. color: $danger;
  185. font-size: 85%;
  186. margin-top: 0.25rem;
  187. }
  188. }
  189. // while dragging task
  190. .gu-mirror {
  191. list-style-type: none;
  192. list-style: none;
  193. padding: 0.893rem 2rem;
  194. background-color: $white;
  195. border-top: 1px solid $border-color;
  196. border-bottom: 1px solid $border-color;
  197. box-shadow: 0 0 10px 0 rgba($black, 0.25);
  198. .todo-title-wrapper {
  199. display: flex;
  200. justify-content: space-between;
  201. }
  202. .todo-title-area,
  203. .title-wrapper {
  204. display: flex;
  205. align-items: center;
  206. }
  207. // Todo Item Action
  208. .todo-item-action {
  209. display: flex;
  210. align-items: center;
  211. justify-content: space-between;
  212. }
  213. .todo-title {
  214. padding-left: 1rem;
  215. }
  216. &.completed {
  217. .todo-title {
  218. color: $text-muted;
  219. }
  220. }
  221. }
  222. // Keyframe animation
  223. @-webkit-keyframes fadeIn {
  224. 0% {
  225. opacity: 0;
  226. top: 100px;
  227. }
  228. 75% {
  229. opacity: 0.5;
  230. top: 0px;
  231. }
  232. 100% {
  233. opacity: 1;
  234. }
  235. }
  236. @include media-breakpoint-down(md) {
  237. .todo-application {
  238. .content-area-wrapper {
  239. .sidebar-left {
  240. .todo-sidebar {
  241. transform: translateX(-110%);
  242. transition: all 0.3s ease-in-out;
  243. left: 0;
  244. position: absolute;
  245. z-index: 5;
  246. border-top-left-radius: $border-radius-sm;
  247. border-bottom-left-radius: $border-radius-sm;
  248. }
  249. &.show {
  250. .todo-sidebar {
  251. transform: translateX(0%);
  252. transition: all 0.3s ease;
  253. }
  254. }
  255. }
  256. .content-right {
  257. width: 100%;
  258. border-left: 0;
  259. .app-fixed-search {
  260. border-top-left-radius: $border-radius;
  261. }
  262. }
  263. // ? Responsive Todo list in columns
  264. .todo-title-wrapper {
  265. flex-direction: column;
  266. .title-wrapper {
  267. margin-bottom: 0.5rem;
  268. }
  269. .todo-title {
  270. display: -webkit-box;
  271. -webkit-line-clamp: 1;
  272. -webkit-box-orient: vertical;
  273. overflow: hidden;
  274. }
  275. .badge-wrapper {
  276. margin-right: auto !important;
  277. }
  278. }
  279. }
  280. }
  281. }
  282. @media (max-width: 349.98px) {
  283. .todo-application .content-area-wrapper .sidebar .todo-sidebar {
  284. width: 230px;
  285. }
  286. }
  287. .horizontal-menu .todo-application .content-area-wrapper .content-right .todo-task-list-wrapper {
  288. height: calc(100% - 3.6rem); // ? search box height (48.79px + 1px border = 3.56), horizontal needs 1 decimal point
  289. }