Advertisement
Guest User

sss

a guest
Jul 30th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.29 KB | None | 0 0
  1. // @light-gray: #dedede;
  2. @black-text: #212121;
  3. @trans-white: rgba(255, 255, 255, 0.5);
  4. @time: 0.5s;
  5. @time-quick: 0.25s;
  6.  
  7. .noselect
  8. {
  9. -webkit-user-select: none; /* Chrome/Safari */
  10. -moz-user-select: none; /* Firefox */
  11. -ms-user-select: none; /* IE10+ */
  12. }
  13.  
  14. .vertical-padding(@size: 5px)
  15. {
  16. padding-top: @size;
  17. padding-bottom: @size;
  18. }
  19.  
  20. #mini-clndr
  21. {
  22. font-family: Asap, Helvetica, Arial;
  23. margin: 0 auto;
  24. width: 294px;
  25. -moz-box-shadow: 4px 4px 0 darken(@dark-gray, 5%);
  26. -webkit-box-shadow: 4px 4px 0 darken(@dark-gray, 5%);
  27. box-shadow: 4px 4px 0 darken(@dark-gray, 5%);
  28. }
  29.  
  30. #mini-clndr .clndr
  31. {
  32. overflow: hidden;
  33. border-bottom: 7px solid @dark-green;
  34.  
  35. .controls
  36. {
  37. background-color: @dark-green;
  38. color: white;
  39.  
  40. .clndr-previous-button, .clndr-next-button
  41. {
  42. width: 15%;
  43. .vertical-padding;
  44. display: inline-block;
  45. text-align: center;
  46. cursor: pointer;
  47. .noselect;
  48. .transition(background-color @time);
  49. &:hover
  50. {
  51. background-color: darken(@dark-green, 10%);
  52. }
  53. }
  54. .month
  55. {
  56. width: 70%;
  57. .vertical-padding;
  58. display: inline-block;
  59. text-align: center;
  60. text-transform: uppercase;
  61. font-weight: 700;
  62. letter-spacing: 1px;
  63. }
  64. }
  65.  
  66. .days-container
  67. {
  68. position: relative;
  69. width: 294px;
  70. height: 213px;
  71. .clearfix;
  72.  
  73. .days
  74. {
  75. position: absolute;
  76. left: 0;
  77. width: 294px;
  78. height: 217px;
  79. .transition(left @time);
  80. background-color: @light-gray;
  81.  
  82. .day, .empty
  83. {
  84. width: 42px;
  85. display: inline-block;
  86. .vertical-padding(8px);
  87.  
  88. font-size: 12px;
  89. // font-weight: 700;
  90. text-align: center;
  91. color: @black-text;
  92.  
  93. border-right: 1px solid @trans-white;
  94. border-bottom: 1px solid @trans-white;
  95.  
  96. &.event
  97. {
  98. background-color: darken(@light-gray, 10%);
  99. .transition(background-color @time);
  100. cursor: pointer;
  101. &:hover
  102. {
  103. background-color: darken(@light-gray, 20%);
  104. }
  105. }
  106.  
  107. &.adjacent-month
  108. {
  109. color: rgba(0, 0, 0, 0.3);
  110. }
  111. }
  112.  
  113. .empty
  114. {
  115. height: 31px;
  116. vertical-align: bottom;
  117. }
  118.  
  119. .headers
  120. {
  121. background-color: @light-green;
  122. .vertical-padding;
  123.  
  124. .day-header
  125. {
  126. width: 42px;
  127. display: inline-block;
  128. text-align: center;
  129. color: white;
  130. }
  131. }
  132. }
  133.  
  134. .events
  135. {
  136. position: absolute;
  137. left: 294px;
  138. width: 294px;
  139. height: 217px;
  140. .transition(left @time);
  141. background-color: @light-gray;
  142.  
  143. .headers
  144. {
  145. position: relative;
  146. }
  147.  
  148. .event-header
  149. {
  150. width: 100%;
  151. background-color: @light-green;
  152. .vertical-padding;
  153. text-align: center;
  154. color: white;
  155. }
  156.  
  157. .x-button
  158. {
  159. position: absolute;
  160. font-size: 80%;
  161. top: 7px;
  162. left: 20px;
  163. cursor: pointer;
  164. .transition(color @time-quick);
  165. &:hover
  166. {
  167. color: white;
  168. }
  169. }
  170.  
  171. .events-list
  172. {
  173. overflow: scroll;
  174. height: 185px;
  175.  
  176. .event
  177. {
  178. .vertical-padding(8px);
  179. padding-left: 10px;
  180. border-bottom: 1px solid @trans-white;
  181. .transition(background-color @time-quick);
  182.  
  183. &:hover
  184. {
  185. background-color: lighten(@light-gray, 4%);
  186. }
  187.  
  188. a
  189. {
  190. position: relative;
  191. font-size: 12px;
  192. // font-weight: 700;
  193. letter-spacing: 1px;
  194. background-color: transparent;
  195. color: @black-text;
  196. text-decoration: none;
  197. .transition(color @time-quick);
  198. &:hover
  199. {
  200. background-color: transparent;
  201. color: @dark-green;
  202. }
  203. }
  204. }
  205. }
  206. }
  207.  
  208. &.show-events
  209. {
  210. .days
  211. {
  212. left: -294px;
  213. }
  214. .events
  215. {
  216. left: 0;
  217. }
  218. }
  219. }
  220. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement