slidebars.css 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  1. /* -----------------------------------
  2. * Slidebars
  3. * Version 0..10
  4. * http://plugins.adchsm.me/slidebars/
  5. *
  6. * Written by Adam Smith
  7. * http://www.adchsm.me/
  8. *
  9. * Released under MIT License
  10. * http://plugins.adchsm.me/slidebars/license.txt
  11. *
  12. * -------------------
  13. * Slidebars CSS Index
  14. *
  15. * 001 - Box Model, Html & Body
  16. * 002 - Site
  17. * 003 - Slidebars
  18. * 004 - Animation
  19. * 005 - Helper Classes
  20. *
  21. * ----------------------------
  22. * 001 - Box Model, Html & Body
  23. */
  24. html,
  25. body,
  26. #sb-site,
  27. .sb-site-container,
  28. .sb-slidebar {
  29. -webkit-box-sizing: border-box;
  30. -moz-box-sizing: border-box;
  31. box-sizing: border-box;
  32. /* Set box model to prevent any user added margins or paddings from altering the widths or heights. */
  33. margin: 0;
  34. padding: 0;
  35. }
  36. html.sb-scroll-lock.sb-active:not(.sb-static) {
  37. overflow: hidden;
  38. /* Prevent site from scrolling when a Slidebar is open, except when static Slidebars are only available. */
  39. }
  40. #sb-site .sb-overlay {
  41. display: none;
  42. }
  43. .sb-active #sb-site .sb-overlay {
  44. display: block;
  45. }
  46. /* ----------
  47. * 002 - Site
  48. */
  49. #sb-site,
  50. .sb-site-container {
  51. position: relative;
  52. /* You may now use class .sb-site-container instead of #sb-site and use your own id. However please make sure you don't set any of the following styles any differently on your id. */
  53. width: 100%;
  54. }
  55. /* ---------------
  56. * 003 - Slidebars
  57. */
  58. .sb-slidebar {
  59. position: fixed;
  60. z-index: 0;
  61. /* Slidebars sit behind sb-site. */
  62. top: 0;
  63. display: none;
  64. /* Initially hide the Slidebars. Changed from visibility to display to allow -webkit-overflow-scrolling. */
  65. overflow-y: auto;
  66. /* Enable vertical scrolling on Slidebars when needed. */
  67. height: 100%;
  68. overflow-x: hidden;
  69. -webkit-transform: translate(0px);
  70. /* Fixes issues with translated and z-indexed elements on iOS 7. */
  71. }
  72. .sb-slidebar.sb-right.sb-active {
  73. right: -3px;
  74. }
  75. .sb-left {
  76. left: 0;
  77. /* Set Slidebar to the left. */
  78. }
  79. .sb-right {
  80. right: 0;
  81. /* Set Slidebar to the right. */
  82. }
  83. .sb-slidebar .scrollable-content {
  84. height: 100%;
  85. }
  86. html.sb-static .sb-slidebar,
  87. .sb-slidebar.sb-static {
  88. position: absolute;
  89. /* Makes Slidebars scroll naturally with the site, and unfixes them for Android Browser < 3 and iOS < 5. */
  90. }
  91. .sb-slidebar.sb-active {
  92. display: block;
  93. /* Makes Slidebars visibile when open. Changed from visibility to display to allow -webkit-overflow-scrolling. */
  94. }
  95. .sb-style-overlay {
  96. z-index: 9999;
  97. /* Set z-index high to ensure it overlays any other site elements. */
  98. }
  99. .sb-momentum-scrolling {
  100. -webkit-overflow-scrolling: touch;
  101. /* Adds native momentum scrolling for iOS & Android devices. */
  102. }
  103. /* Slidebar widths for browsers/devices that don't support media queries. */
  104. .sb-slidebar {
  105. width: 30%;
  106. }
  107. .sb-width-thin {
  108. width: 15%;
  109. }
  110. .sb-width-wide {
  111. width: 45%;
  112. }
  113. @media (max-width: 480px) {
  114. /* Slidebar widths on extra small screens. */
  115. .sb-slidebar {
  116. width: 70%;
  117. }
  118. .sb-width-thin {
  119. width: 55%;
  120. }
  121. .sb-width-wide {
  122. width: 85%;
  123. }
  124. }
  125. @media (min-width: 481px) {
  126. /* Slidebar widths on small screens. */
  127. .sb-slidebar {
  128. width: 55%;
  129. }
  130. .sb-width-thin {
  131. width: 40%;
  132. }
  133. .sb-width-wide {
  134. width: 70%;
  135. }
  136. }
  137. @media (min-width: 768px) {
  138. /* Slidebar widths on medium screens. */
  139. .sb-slidebar {
  140. width: 40%;
  141. }
  142. .sb-width-thin {
  143. width: 25%;
  144. }
  145. .sb-width-wide {
  146. width: 55%;
  147. }
  148. }
  149. @media (min-width: 992px) {
  150. /* Slidebar widths on large screens. */
  151. .sb-slidebar {
  152. width: 30%;
  153. }
  154. .sb-width-thin {
  155. width: 15%;
  156. }
  157. .sb-width-wide {
  158. width: 45%;
  159. }
  160. }
  161. @media (min-width: 1200px) {
  162. /* Slidebar widths on extra large screens. */
  163. .sb-slidebar {
  164. width: 350px;
  165. }
  166. .sb-width-thin {
  167. width: 5%;
  168. }
  169. .sb-width-wide {
  170. width: 35%;
  171. }
  172. }
  173. /* ---------------
  174. * 004 - Animation
  175. */
  176. .sb-slide,
  177. #sb-site,
  178. .sb-site-container,
  179. .sb-slidebar {
  180. -webkit-transition: -webkit-transform 400ms ease;
  181. -moz-transition: -moz-transform 400ms ease;
  182. -o-transition: -o-transform 400ms ease;
  183. transition: transform 400ms ease;
  184. -webkit-transition-property: -webkit-transform, left, right;
  185. /* Add left/right for Android < 4.4. */
  186. -webkit-backface-visibility: hidden;
  187. /* Prevents flickering. This is non essential, and you may remove it if your having problems with fixed background images in Chrome. */
  188. }
  189. /* --------------------
  190. * 005 - Helper Classes
  191. */
  192. .sb-hide {
  193. display: none;
  194. /* Optionally applied to control classes when Slidebars is disabled over a certain width. */
  195. }
  196. /* Right menu */
  197. .sb-slidebar .popover-title
  198. {
  199. font-size: 13px;
  200. font-size: 11px;
  201. line-height: 36px;
  202. display: block;
  203. height: 36px;
  204. margin: 2px 0;
  205. padding: 0 15px;
  206. border-width: 0;
  207. }
  208. .sb-slidebar .divider
  209. {
  210. background: rgba(255,255,255,.1);
  211. }
  212. .sb-slidebar.sb-left .divider-header
  213. {
  214. font-size: 14px;
  215. opacity: .4;
  216. }
  217. .sb-slidebar .popover-title .caret
  218. {
  219. float: right;
  220. margin-top: 17px;
  221. }
  222. .sb-slidebar .progress-box li a
  223. {
  224. display: block;
  225. padding: 0;
  226. }
  227. .sb-slidebar .files-box
  228. {
  229. padding: 10px 0;
  230. }
  231. .sb-slidebar .files-box li.divider
  232. {
  233. margin: 5px 0;
  234. padding: 0;
  235. }
  236. .sb-slidebar .notifications-box li,
  237. .sb-slidebar .progress-box li
  238. {
  239. padding: 15px;
  240. border-color: rgba(255,255,255,.1);
  241. }
  242. .sb-slidebar .notifications-box li:last-child,
  243. .sb-slidebar .progress-box li:last-child
  244. {
  245. padding-bottom: 20px;
  246. }
  247. .sb-slidebar .notifications-box-alt li:first-child {
  248. padding-top: 15px;
  249. }
  250. /* Chat box */
  251. .sb-slidebar ul.chat-box {
  252. margin: 0;
  253. padding: 0;
  254. list-style: none;
  255. }
  256. .sb-slidebar .chat-box li {
  257. position: relative;
  258. margin: 15px;
  259. padding: 0;
  260. }
  261. .sb-slidebar .chat-box li a.chat-wrapper {
  262. display: block;
  263. padding: 10px;
  264. }
  265. .sb-slidebar .chat-box li a.btn-md {
  266. position: absolute;
  267. top: 50%;
  268. right: 0;
  269. margin-top: -17px;
  270. padding: 0 10px;
  271. }
  272. .sb-slidebar .chat-box li a.btn-md .glyph-icon {
  273. opacity: .5;
  274. }
  275. .sb-slidebar .chat-box li a.chat-wrapper:hover {
  276. color: #fff;
  277. }
  278. .sb-slidebar .chat-box li .status-badge {
  279. float: left;
  280. margin: 0 10px 0 0;
  281. }
  282. .sb-slidebar .chat-box li b {
  283. font-size: 12px;
  284. display: block;
  285. padding: 4px 0 0;
  286. }
  287. .sb-slidebar .chat-box li p {
  288. font-size: 11px;
  289. opacity: .6;
  290. }
  291. .popover-title:hover { text-decoration:none; }