_sidebar_widgets.scss 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. .sidebar-right .sidebar-widget {
  2. margin: 0;
  3. }
  4. .sidebar-widget {
  5. margin: 0 30px 0 25px;
  6. .widget-header {
  7. position: relative;
  8. margin: 0;
  9. h6 {
  10. @include font-size(13);
  11. color: #465162;
  12. font-weight: 600;
  13. margin: 0;
  14. padding: 0;
  15. text-transform: uppercase;
  16. }
  17. .btn-widget-act {
  18. position: relative;
  19. top: -2px;
  20. border-color: darken($color-dark, 5%);
  21. background-color: darken($color-dark, 5%);
  22. border-color: darken($color-dark, 5%) darken($color-dark, 15%) darken($color-dark, 15%);
  23. &:hover {
  24. border-color: darken($color-dark, 2%);
  25. background-color: darken($color-dark, 2%);
  26. }
  27. &:active,
  28. &:focus {
  29. border-color: darken($color-dark, 10%);
  30. background-color: darken($color-dark, 10%);
  31. }
  32. &.dropdown-toggle {
  33. border-left-color: darken($color-dark, 10%);
  34. }
  35. }
  36. .widget-toggle {
  37. @include font-size(17);
  38. @include line-height(13);
  39. color: #465162;
  40. position: absolute;
  41. right: 0;
  42. top: 0;
  43. cursor: pointer;
  44. text-align: center;
  45. @include transform(rotate(45deg));
  46. @include transition-property (transform);
  47. @include transition-duration(.2s);
  48. @include transition-timing-function(linear);
  49. }
  50. }
  51. .widget-content {
  52. padding: 15px 0 0;
  53. }
  54. &.widget-collapsed {
  55. .widget-header {
  56. .widget-toggle {
  57. @include transform(none);
  58. }
  59. }
  60. .widget-content {
  61. display: none;
  62. }
  63. }
  64. // WIDGET: TASKS
  65. // -----------------------------------------------------------------------------
  66. &.widget-tasks {
  67. ul {
  68. li {
  69. position: relative;
  70. a {
  71. color: $menu-item-text-color;
  72. display: block;
  73. margin: 0 -25px 0 -30px;
  74. padding: 10px 0 10px 55px;
  75. &:hover {
  76. background: #21262d;
  77. text-decoration: none;
  78. }
  79. }
  80. &:before {
  81. border: 5px solid $color-primary;
  82. border-radius: 100px;
  83. content: '';
  84. display: inline-block;
  85. left: 0;
  86. margin: -5px 0 0;
  87. position: absolute;
  88. top: 50%;
  89. z-index: 999;
  90. }
  91. $colors: $widget-tasks-colors;
  92. @for $i from 1 through length($colors) {
  93. &:nth-child(#{length($colors)}n+#{$i}) {
  94. &:before {
  95. border-color: nth($colors, $i);
  96. }
  97. }
  98. }
  99. }
  100. }
  101. }
  102. // WIDGET: STATS
  103. // -----------------------------------------------------------------------------
  104. &.widget-stats {
  105. ul {
  106. list-style: none;
  107. margin: 0;
  108. padding: 0;
  109. }
  110. .stats-title {
  111. color: #a6a6a6;
  112. }
  113. .stats-complete {
  114. float: right;
  115. @include font-size(10);
  116. color: #666;
  117. }
  118. .progress {
  119. height: 7px;
  120. background: #474453;
  121. box-shadow: 0 1px 0 #585564 inset;
  122. margin-bottom: 25px;
  123. }
  124. }
  125. // WIDGET: CALENDAR
  126. // -----------------------------------------------------------------------------
  127. &.widget-calendar {
  128. margin: 0 0 25px;
  129. .datepicker {
  130. background: transparent;
  131. }
  132. ul {
  133. list-style: none;
  134. margin: 0;
  135. padding: 20px 0;
  136. border-top: 1px solid #000;
  137. time {
  138. display: block;
  139. @include font-size(12);
  140. line-height: 1.3em;
  141. font-weight: 600;
  142. color: $color-default-inverse;
  143. margin-bottom: 0.1em;
  144. }
  145. span {
  146. @include font-size(14);
  147. line-height: 1.3em;
  148. color: $color-primary-inverse;
  149. }
  150. }
  151. }
  152. // WIDGET: FRIENDS
  153. // -----------------------------------------------------------------------------
  154. &.widget-friends {
  155. ul {
  156. list-style: none;
  157. margin: 0;
  158. padding: 10px 2px;
  159. li {
  160. padding: 10px 0;
  161. .profile-info,
  162. .profile-picture {
  163. display: inline-block;
  164. vertical-align: middle;
  165. }
  166. .profile-picture {
  167. position: relative;
  168. width: 35px;
  169. img {
  170. width: 100%;
  171. height: auto;
  172. }
  173. }
  174. .profile-info {
  175. margin: 0 35px 0 10px;
  176. }
  177. span.name {
  178. display: block;
  179. color: $color-primary-inverse;
  180. font-weight: 600;
  181. vertical-align: top;
  182. line-height: 1.3em;
  183. white-space: nowrap;
  184. text-overflow: ellipsis;
  185. overflow: hidden;
  186. margin-bottom: 0.2em;
  187. }
  188. span.title {
  189. display: block;
  190. @include font-size(12);
  191. line-height: 1.3em;
  192. white-space: nowrap;
  193. text-overflow: ellipsis;
  194. overflow: hidden;
  195. }
  196. &.status-online, &.status-offline {
  197. .profile-picture {
  198. &:after {
  199. display: none;
  200. position: absolute;
  201. top: -4px;
  202. right: -4px;
  203. content: '';
  204. width: 15px;
  205. height: 15px;
  206. border: 2px solid #000;
  207. border-radius: 50%;
  208. }
  209. }
  210. }
  211. &.status-online {
  212. .profile-picture {
  213. &:after {
  214. display: block;
  215. background-color: #1AAE88;
  216. }
  217. }
  218. }
  219. &.status-offline {
  220. .profile-picture {
  221. &:after {
  222. display: block;
  223. background-color: #D2312D;
  224. }
  225. }
  226. }
  227. }
  228. }
  229. }
  230. }