masslugi

Script CSS Bar Ui Audio Player

Dec 4th, 2017
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.06 KB | None | 0 0
  1. /**
  2. * SoundManager 2: "Bar UI" player - CSS
  3. * Copyright (c) 2014, Scott Schiller. All rights reserved.
  4. * http://www.schillmania.com/projects/soundmanager2/
  5. * Code provided under BSD license.
  6. * http://schillmania.com/projects/soundmanager2/license.txt
  7. */
  8.  
  9. .sm2-bar-ui {
  10. position: relative;
  11. display: inline-block;
  12. width: 100%;
  13. font-family: helvetica, arial, verdana, sans-serif;
  14. font-weight: normal;
  15. /* prevent background border bleed */
  16. -webkit-background-clip: padding-box;
  17. background-clip: padding-box;
  18. /* because indeed, fonts do look pretty "fat" otherwise in this case. */
  19. -moz-osx-font-smoothing: grayscale;
  20. -webkit-font-smoothing: antialiased;
  21. /* general font niceness? */
  22. font-smoothing: antialiased;
  23. text-rendering: optimizeLegibility;
  24. min-width: 20em;
  25. max-width: 30em;
  26. /* take out overflow if you want an absolutely-positioned playlist dropdown. */
  27. border-radius: 2px;
  28. overflow: hidden;
  29. /* just for fun (animate normal / full-width) */
  30. transition: max-width 0.2s ease-in-out;
  31. }
  32.  
  33. .sm2-bar-ui .sm2-playlist li {
  34. text-align: center;
  35. margin-top: -2px;
  36. font-size: 95%;
  37. line-height: 1em;
  38. }
  39.  
  40. .sm2-bar-ui.compact {
  41. min-width: 1em;
  42. max-width: 15em;
  43. }
  44.  
  45. .sm2-bar-ui ul {
  46. line-height: 1em;
  47. }
  48.  
  49. /* want things left-aligned? */
  50. .sm2-bar-ui.left .sm2-playlist li {
  51. text-align: left;
  52. }
  53.  
  54. .sm2-bar-ui .sm2-playlist li .load-error {
  55. cursor: help;
  56. }
  57.  
  58. .sm2-bar-ui.full-width {
  59. max-width: 100%;
  60. z-index: 5;
  61. }
  62.  
  63. .sm2-bar-ui.fixed {
  64. position: fixed;
  65. top: auto;
  66. bottom: 0px;
  67. left: 0px;
  68. border-radius: 0px;
  69. /* so the absolutely-positioned playlist can show... */
  70. overflow: visible;
  71. /* and this should probably have a high z-index. tweak as needed. */
  72. z-index: 999;
  73. }
  74.  
  75. .sm2-bar-ui.fixed .bd,
  76. .sm2-bar-ui.bottom .bd {
  77. /* display: table; */
  78. border-radius: 0px;
  79. border-bottom: none;
  80. }
  81.  
  82. .sm2-bar-ui.bottom {
  83. /* absolute bottom-aligned UI */
  84. top: auto;
  85. bottom: 0px;
  86. left: 0px;
  87. border-radius: 0px;
  88. /* so the absolutely-positioned playlist can show... */
  89. overflow: visible;
  90. }
  91.  
  92. .sm2-bar-ui.playlist-open .bd {
  93. border-bottom-left-radius: 0px;
  94. border-bottom-right-radius: 0px;
  95. border-bottom-color: transparent;
  96. }
  97.  
  98. .sm2-bar-ui .bd,
  99. .sm2-bar-ui .sm2-extra-controls {
  100. position: relative;
  101. background-color: #24272c;
  102. /*
  103. transition: background 0.2s ease-in-out;
  104. */
  105. }
  106.  
  107. .sm2-bar-ui .sm2-inline-gradient {
  108. /* gradient */
  109. position: absolute;
  110. left: 0px;
  111. top: 0px;
  112. width: 100%;
  113. height: 100%;
  114. background-image: linear-gradient(to bottom, rgba(255,255,255,0.125) 5%, rgba(255,255,255,0.125) 45%, rgba(255,255,255,0.15) 50%, rgba(0,0,0,0.1) 51%, rgba(0,0,0,0.1) 95%); /* W3C */
  115. }
  116.  
  117. .sm2-bar-ui.flat .sm2-inline-gradient {
  118. background-image: none;
  119. }
  120.  
  121. .sm2-bar-ui.flat .sm2-box-shadow {
  122. display: none;
  123. box-shadow: none;
  124. }
  125.  
  126. .sm2-bar-ui.no-volume .sm2-volume {
  127. /* mobile devices (android + iOS) ignore attempts to set volume. */
  128. display: none;
  129. }
  130.  
  131. .sm2-bar-ui.textured .sm2-inline-texture {
  132. position: absolute;
  133. top: 0px;
  134. left: 0px;
  135. width: 100%;
  136. height: 100%;
  137. /* for example */
  138. /* background-image: url(../image/wood_pattern_dark.png); */
  139. /* additional opacity effects can be applied here. */
  140. opacity: 0.75;
  141.  
  142. }
  143.  
  144. .sm2-bar-ui.textured.dark-text .sm2-inline-texture {
  145. /* dark text + textured case: use light wood background (for example.) */
  146. /* background-image: url(../image/patterns/wood_pattern.png); */
  147. }
  148.  
  149. .sm2-bar-ui.textured.dark-text .sm2-playlist-wrapper {
  150. /* dark text + textured case: ditch 10% dark on playlist body. */
  151. background-color: transparent;
  152. }
  153.  
  154. .sm2-bar-ui.textured.dark-text .sm2-playlist-wrapper ul li:hover a,
  155. .sm2-bar-ui.textured.dark-text .sm2-playlist-wrapper ul li.selected a {
  156. /* dark + textured case: dark highlights */
  157. background-color: rgba(0,0,0,0.1);
  158. background-image: url(http://www.schillmania.com/projects/soundmanager2/demo/bar-ui/image/black-10.png);
  159. /* modern browsers don't neeed the image */
  160. background-image: none, none;
  161. }
  162.  
  163. .sm2-bar-ui .bd {
  164. display: table;
  165. border-bottom: none;
  166. }
  167.  
  168. .sm2-bar-ui .sm2-playlist-wrapper {
  169. background-color: rgba(0,0,0,0.1);
  170. }
  171.  
  172. .sm2-bar-ui .sm2-extra-controls .bd {
  173. background-color: rgba(0,0,0,0.2);
  174. }
  175.  
  176.  
  177. .sm2-bar-ui.textured .sm2-extra-controls .bd {
  178. /* lighten extra color overlays */
  179. background-color: rgba(0,0,0,0.05);
  180. }
  181.  
  182. .sm2-bar-ui .sm2-extra-controls {
  183. background-color: transparent;
  184. border: none;
  185. }
  186.  
  187. .sm2-bar-ui .sm2-extra-controls .bd {
  188. /* override full-width table behaviour */
  189. display: block;
  190. border: none;
  191. }
  192.  
  193. .sm2-bar-ui .sm2-extra-controls .sm2-inline-element {
  194. display: inline-block;
  195. }
  196.  
  197. .sm2-bar-ui,
  198. .sm2-bar-ui .bd a {
  199. color: #fff;
  200. }
  201.  
  202. .sm2-bar-ui.dark-text,
  203. .sm2-bar-ui.dark-text .bd a {
  204. color: #000;
  205. }
  206.  
  207. .sm2-bar-ui.dark-text .sm2-inline-button {
  208. /* Warning/disclaimer: SVG might be fuzzy when inverted on Chrome, losing resolution on hi-DPI displays. */
  209. -webkit-filter: invert(1);
  210. /* SVG-based invert filter for Firefox */
  211. filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'invert\'><feColorMatrix in='SourceGraphic' type='matrix' values='-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0'/></filter></svg>#invert");
  212. /* IE 8 inverse filter, may only match pure black/white */
  213. /* filter: xray; */
  214. /* pending W3 standard */
  215. filter: invert(1);
  216. /* not you, IE < 10. */
  217. filter: none\9;
  218. }
  219.  
  220. .sm2-bar-ui .bd a {
  221. text-decoration: none;
  222. }
  223.  
  224. .sm2-bar-ui .bd .sm2-button-element:hover {
  225. background-color: rgba(0,0,0,0.1);
  226. background-image: url(../image/black-10.png);
  227. background-image: none, none;
  228. }
  229.  
  230. .sm2-bar-ui .bd .sm2-button-element:active {
  231. background-color: rgba(0,0,0,0.25);
  232. background-image: url(../image/black-25.png);
  233. background-image: none, none;
  234. }
  235.  
  236. .sm2-bar-ui .bd .sm2-extra-controls .sm2-button-element:active .sm2-inline-button,
  237. .sm2-bar-ui .bd .active .sm2-inline-button/*,
  238. .sm2-bar-ui.playlist-open .sm2-menu a */{
  239. -ms-transform: scale(0.9);
  240. -webkit-transform: scale(0.9);
  241. -webkit-transform-origin: 50% 50%;
  242. /* firefox doesn't scale quite right. */
  243. transform: scale(0.9);
  244. transform-origin: 50% 50%;
  245. /* firefox doesn't scale quite right. */
  246. -moz-transform: none;
  247. }
  248.  
  249. .sm2-bar-ui .bd .sm2-extra-controls .sm2-button-element:hover,
  250. .sm2-bar-ui .bd .sm2-extra-controls .sm2-button-element:active,
  251. .sm2-bar-ui .bd .active {
  252. background-color: rgba(0,0,0,0.1);
  253. background-image: url(../image/black-10.png);
  254. background-image: none, none;
  255. }
  256.  
  257. .sm2-bar-ui .bd .sm2-extra-controls .sm2-button-element:active {
  258. /* box shadow is excessive on smaller elements. */
  259. box-shadow: none;
  260. }
  261.  
  262. .sm2-bar-ui {
  263. /* base font size */
  264. font-size: 15px;
  265. text-shadow: none;
  266. }
  267.  
  268. .sm2-bar-ui .sm2-inline-element {
  269. position: relative;
  270. display: inline-block;
  271. vertical-align: middle;
  272. padding: 0px;
  273. overflow: hidden;
  274. }
  275.  
  276. .sm2-bar-ui .sm2-inline-element,
  277. .sm2-bar-ui .sm2-button-element .sm2-button-bd {
  278. position: relative;
  279. /**
  280. * .sm2-button-bd exists because of a Firefox bug from 2000
  281. * re: nested relative / absolute elements inside table cells.
  282. * https://bugzilla.mozilla.org/show_bug.cgi?id=63895
  283. */
  284. }
  285.  
  286. .sm2-bar-ui .sm2-inline-element,
  287. .sm2-bar-ui .sm2-button-element .sm2-button-bd {
  288. /**
  289. * if you play with UI width/height, these are the important ones.
  290. * NOTE: match these values if you want square UI buttons.
  291. */
  292. min-width: 2.8em;
  293. min-height: 2.8em;
  294. }
  295.  
  296. .sm2-bar-ui .sm2-inline-button {
  297. position: absolute;
  298. top: 0px;
  299. left: 0px;
  300. width: 100%;
  301. height: 100%;
  302. }
  303.  
  304. .sm2-bar-ui .sm2-extra-controls .bd {
  305. /* don't double-layer. */
  306. background-image: none;
  307. background-color: rgba(0,0,0,0.15);
  308. }
  309.  
  310. .sm2-bar-ui .sm2-extra-controls .sm2-inline-element {
  311. width: 25px; /* bare minimum */
  312. min-height: 1.75em;
  313. min-width: 2.5em;
  314. }
  315.  
  316. .sm2-bar-ui .sm2-inline-status {
  317. line-height: 100%;
  318. /* how much to allow before truncating song artist / title with ellipsis */
  319. display: inline-block;
  320. min-width: 200px;
  321. max-width: 20em;
  322. /* a little more spacing */
  323. padding-left: 0.75em;
  324. padding-right: 0.75em;
  325. }
  326.  
  327. .sm2-bar-ui .sm2-inline-element {
  328. /* extra-small em scales up nicely, vs. 1px which gets fat */
  329. border-right: 0.075em dotted #666; /* legacy */
  330. border-right: 0.075em solid rgba(0,0,0,0.1);
  331. }
  332.  
  333. .sm2-bar-ui .sm2-inline-element.noborder {
  334. border-right: none;
  335. }
  336.  
  337. .sm2-bar-ui .sm2-inline-element.compact {
  338. min-width: 2em;
  339. padding: 0px 0.25em;
  340. }
  341.  
  342. .sm2-bar-ui .sm2-inline-element:first-of-type {
  343. border-top-left-radius: 3px;
  344. border-bottom-left-radius: 3px;
  345. overflow: hidden;
  346. }
  347.  
  348. .sm2-bar-ui .sm2-inline-element:last-of-type {
  349. border-right: none;
  350. border-top-right-radius: 3px;
  351. border-bottom-right-radius: 3px;
  352. }
  353.  
  354. .sm2-bar-ui .sm2-inline-status a:hover {
  355. background-color: transparent;
  356. text-decoration: underline;
  357. }
  358.  
  359. .sm2-inline-time,
  360. .sm2-inline-duration {
  361. display: table-cell;
  362. width: 1%;
  363. font-size: 75%;
  364. line-height: 0.9em;
  365. min-width: 2em; /* if you have sounds > 10:00 in length, make this bigger. */
  366. vertical-align: middle;
  367. }
  368.  
  369. .sm2-bar-ui .sm2-playlist {
  370. position: relative;
  371. height: 1.45em;
  372. }
  373.  
  374. .sm2-bar-ui .sm2-playlist-target {
  375. /* initial render / empty case */
  376. position: relative;
  377. min-height: 1em;
  378. }
  379.  
  380. .sm2-bar-ui .sm2-playlist ul {
  381. position: absolute;
  382. left: 0px;
  383. top: 0px;
  384. width: 100%;
  385. list-style-type: none;
  386. overflow: hidden;
  387. white-space: nowrap;
  388. text-overflow: ellipsis;
  389. }
  390.  
  391. .sm2-bar-ui p,
  392. .sm2-bar-ui .sm2-playlist ul,
  393. .sm2-bar-ui .sm2-playlist ul li {
  394. margin: 0px;
  395. padding: 0px;
  396. }
  397.  
  398. .sm2-bar-ui .sm2-playlist ul li {
  399. position: relative;
  400. }
  401.  
  402. .sm2-bar-ui .sm2-playlist ul li,
  403. .sm2-bar-ui .sm2-playlist ul li a {
  404. position: relative;
  405. display: block;
  406. /* prevent clipping of characters like "g" */
  407. height: 1.5em;
  408. white-space: nowrap;
  409. overflow: hidden;
  410. text-overflow: ellipsis;
  411. text-align: center;
  412. }
  413.  
  414. .sm2-row {
  415. position: relative;
  416. display: table-row;
  417. }
  418.  
  419. .sm2-progress-bd {
  420. /* spacing between progress track/ball and time (position) */
  421. padding: 0px 0.8em;
  422. }
  423.  
  424. .sm2-progress .sm2-progress-track,
  425. .sm2-progress .sm2-progress-ball,
  426. .sm2-progress .sm2-progress-bar {
  427. position: relative;
  428. width: 100%;
  429. height: 0.65em;
  430. border-radius: 0.65em;
  431. }
  432.  
  433. .sm2-progress .sm2-progress-bar {
  434. /* element which follows the progres "ball" as it moves */
  435. position: absolute;
  436. left: 0px;
  437. top: 0px;
  438. width: 0px;
  439. background-color: rgba(0,0,0,0.33);
  440. background-image: url(../image/black-33.png);
  441. background-image: none, none;
  442. }
  443.  
  444. .volume-shade,
  445. .playing .sm2-progress .sm2-progress-track,
  446. .paused .sm2-progress .sm2-progress-track {
  447. cursor: pointer;
  448. }
  449.  
  450. .playing .sm2-progress .sm2-progress-ball {
  451. cursor: -moz-grab;
  452. cursor: -webkit-grab;
  453. cursor: grab;
  454. }
  455.  
  456. .sm2-progress .sm2-progress-ball {
  457. position: absolute;
  458. top: 0px;
  459. left: 0px;
  460. width: 1em;
  461. height: 1em;
  462. margin: -0.2em 0px 0px -0.5em;
  463. width: 14px;
  464. height: 14px;
  465. margin: -2px 0px 0px -7px;
  466. width: 0.9333em;
  467. height: 0.9333em;
  468. margin: -0.175em 0px 0px -0.466em;
  469. background-color: #fff;
  470. padding: 0px;
  471. /*
  472. z-index: 1;
  473. */
  474. transition: transform 0.15s ease-in-out;
  475. }
  476.  
  477. /*
  478. .sm2-bar-ui.dark-text .sm2-progress .sm2-progress-ball {
  479. background-color: #000;
  480. }
  481. */
  482.  
  483. .sm2-progress .sm2-progress-track {
  484. background-color: rgba(0,0,0,0.4);
  485. background-image: url(http://www.schillmania.com/projects/soundmanager2/demo/bar-ui/image/black-33.png); /* legacy */
  486. background-image: none, none; /* modern browsers */
  487. }
  488.  
  489. /* scrollbar rules have to be separate, browsers not supporting this syntax will skip them when combined. */
  490. .sm2-playlist-wrapper ul::-webkit-scrollbar-track {
  491. background-color: rgba(0,0,0,0.4);
  492. }
  493.  
  494. .playing.grabbing .sm2-progress .sm2-progress-track,
  495. .playing.grabbing .sm2-progress .sm2-progress-ball {
  496. cursor: -moz-grabbing;
  497. cursor: -webkit-grabbing;
  498. cursor: grabbing;
  499. }
  500.  
  501. .sm2-bar-ui.grabbing .sm2-progress .sm2-progress-ball {
  502. -webkit-transform: scale(1.15);
  503. transform: scale(1.15);
  504. }
  505.  
  506. .sm2-inline-button {
  507. background-position: 50% 50%;
  508. background-repeat: no-repeat;
  509. /* hide inner text */
  510. line-height: 10em;
  511. /**
  512. * image-rendering seems to apply mostly to Firefox in this case. Use with caution.
  513. * https://developer.mozilla.org/en-US/docs/Web/CSS/image-rendering#Browser_compatibility
  514. */
  515. image-rendering: -moz-crisp-edges;
  516. image-rendering: -webkit-optimize-contrast;
  517. image-rendering: crisp-edges;
  518. -ms-interpolation-mode: nearest-neighbor;
  519. -ms-interpolation-mode: bicubic;
  520. }
  521.  
  522. .sm2-icon-play-pause,
  523. .sm2-icon-play-pause:hover,
  524. .paused .sm2-icon-play-pause:hover {
  525. background-image: url(http://www.schillmania.com/projects/soundmanager2/demo/bar-ui/image/icomoon/entypo-25px-ffffff/PNG/play.png);
  526. background-image: none, url(http://www.schillmania.com/projects/soundmanager2/demo/bar-ui/image/icomoon/entypo-25px-ffffff/SVG/play.svg);
  527. background-size: 67.5%;
  528. background-position: 40% 53%;
  529. }
  530.  
  531. .playing .sm2-icon-play-pause {
  532. background-image: url(http://www.schillmania.com/projects/soundmanager2/demo/bar-ui/image/icomoon/entypo-25px-ffffff/PNG/pause.png);
  533. background-image: none, url(http://www.schillmania.com/projects/soundmanager2/demo/bar-ui/image/icomoon/entypo-25px-ffffff/SVG/pause.svg);
  534. background-size: 57.6%;
  535. background-position: 50% 53%;
  536. }
  537.  
  538. .sm2-volume-control {
  539. background-image: url(http://www.schillmania.com/projects/soundmanager2/demo/bar-ui/image/icomoon/entypo-25px-ffffff/PNG/volume.png);
  540. background-image: none, url(http://www.schillmania.com/projects/soundmanager2/demo/bar-ui/image/icomoon/entypo-25px-ffffff/SVG/volume.svg);
  541. }
  542.  
  543. .sm2-volume-control,
  544. .sm2-volume-shade {
  545. background-position: 42% 50%;
  546. background-size: 56%;
  547. }
  548.  
  549. .volume-shade {
  550. filter: alpha(opacity=33); /* <= IE 8 */
  551. opacity: 0.33;
  552. /* -webkit-filter: invert(1);*/
  553. background-image: url(../image/icomoon/entypo-25px-000000/PNG/volume.png);
  554. background-image: none, url(../image/icomoon/entypo-25px-000000/SVG/volume.svg);
  555. }
  556.  
  557. .sm2-icon-menu {
  558. background-image: url(../image/icomoon/entypo-25px-ffffff/PNG/list2.png);
  559. background-image: none, url(../image/icomoon/entypo-25px-ffffff/SVG/list2.svg);
  560. background-size: 58%;
  561. background-position: 54% 51%;
  562. }
  563.  
  564. .sm2-icon-previous {
  565. background-image: url(../image/icomoon/entypo-25px-ffffff/PNG/first.png);
  566. background-image: none, url(../image/icomoon/entypo-25px-ffffff/SVG/first.svg);
  567. }
  568.  
  569. .sm2-icon-next {
  570. background-image: url(../image/icomoon/entypo-25px-ffffff/PNG/last.png);
  571. background-image: none, url(../image/icomoon/entypo-25px-ffffff/SVG/last.svg);
  572. }
  573.  
  574. .sm2-icon-previous,
  575. .sm2-icon-next {
  576. background-size: 49.5%;
  577. background-position: 50% 50%;
  578. }
  579.  
  580.  
  581. .sm2-extra-controls .sm2-icon-previous,
  582. .sm2-extra-controls .sm2-icon-next {
  583. backgound-size: 53%;
  584. }
  585.  
  586. .sm2-icon-shuffle {
  587. background-image: url(../image/icomoon/entypo-25px-ffffff/PNG/shuffle.png);
  588. background-image: none, url(../image/icomoon/entypo-25px-ffffff/SVG/shuffle.svg);
  589. background-size: 45%;
  590. background-position: 50% 50%;
  591. }
  592.  
  593. .sm2-icon-repeat {
  594. background-image: url(../image/icomoon/entypo-25px-ffffff/PNG/loop.png);
  595. background-image: none, url(../image/icomoon/entypo-25px-ffffff/SVG/loop.svg);
  596. background-position: 50% 43%;
  597. background-size: 54%;
  598. }
  599.  
  600. .sm2-extra-controls .sm2-icon-repeat {
  601. background-position: 50% 45%;
  602. }
  603.  
  604. .sm2-playlist-wrapper ul li .sm2-row {
  605. display: table;
  606. width: 100%;
  607. }
  608.  
  609. .sm2-playlist-wrapper ul li .sm2-col {
  610. display: table-cell;
  611. vertical-align: top;
  612. /* by default, collapse. */
  613. width: 0%;
  614. }
  615.  
  616. .sm2-playlist-wrapper ul li .sm2-col.sm2-wide {
  617. /* take 100% width. */
  618. width: 100%;
  619. }
  620.  
  621. .sm2-playlist-wrapper ul li .sm2-icon {
  622. display: inline-block;
  623. overflow: hidden;
  624. width: 2em;
  625. color: transparent !important; /* hide text */
  626. white-space: nowrap; /* don't let text affect height */
  627. padding-left: 0px;
  628. padding-right: 0px;
  629. text-indent: 2em; /* IE 8, mostly */
  630. }
  631.  
  632. .sm2-playlist-wrapper ul li .sm2-icon,
  633. .sm2-playlist-wrapper ul li:hover .sm2-icon,
  634. .sm2-playlist-wrapper ul li.selected .sm2-icon {
  635. background-size: 55%;
  636. background-position: 50% 50%;
  637. background-repeat: no-repeat;
  638. }
  639.  
  640. .sm2-playlist-wrapper ul li .sm2-col {
  641. /* sibling table cells get borders. */
  642. border-right: 1px solid rgba(0,0,0,0.075);
  643. }
  644.  
  645. .sm2-playlist-wrapper ul li.selected .sm2-col {
  646. border-color: rgba(255,255,255,0.075);
  647. }
  648.  
  649. .sm2-playlist-wrapper ul li .sm2-col:last-of-type {
  650. border-right: none;
  651. }
  652.  
  653. .sm2-playlist-wrapper ul li .sm2-cart,
  654. .sm2-playlist-wrapper ul li:hover .sm2-cart,
  655. .sm2-playlist-wrapper ul li.selected .sm2-cart {
  656. background-image: url(http://www.schillmania.com/projects/soundmanager2/demo/bar-ui/image/icomoon/entypo-25px-ffffff/PNG/cart.png);
  657. background-image: none, url(http://www.schillmania.com/projects/soundmanager2/demo/bar-ui/image/icomoon/entypo-25px-ffffff/SVG/cart.svg);
  658. /* slight alignment tweak */
  659. background-position: 48% 50%;
  660. }
  661.  
  662. .sm2-playlist-wrapper ul li .sm2-music,
  663. .sm2-playlist-wrapper ul li:hover .sm2-music,
  664. .sm2-playlist-wrapper ul li.selected .sm2-music {
  665. background-image: url(http://www.schillmania.com/projects/soundmanager2/demo/bar-ui/image/icomoon/entypo-25px-ffffff/PNG/music.png);
  666. background-image: none, url(http://www.schillmania.com/projects/soundmanager2/demo/bar-ui/image/icomoon/entypo-25px-ffffff/SVG/music.svg);
  667. }
  668.  
  669. .sm2-bar-ui.dark-text .sm2-playlist-wrapper ul li .sm2-cart,
  670. .sm2-bar-ui.dark-text .sm2-playlist-wrapper ul li:hover .sm2-cart,
  671. .sm2-bar-ui.dark-text .sm2-playlist-wrapper ul li.selected .sm2-cart {
  672. background-image: url(http://www.schillmania.com/projects/soundmanager2/demo/bar-ui/image/icomoon/entypo-25px-000000/PNG/cart.png);
  673. background-image: none, url(http://www.schillmania.com/projects/soundmanager2/demo/bar-ui/image/icomoon/entypo-25px-000000/SVG/cart.svg);
  674. }
  675.  
  676. .sm2-bar-ui.dark-text .sm2-playlist-wrapper ul li .sm2-music,
  677. .sm2-bar-ui.dark-text .sm2-playlist-wrapper ul li:hover .sm2-music,
  678. .sm2-bar-ui.dark-text .sm2-playlist-wrapper ul li.selected .sm2-music {
  679. background-image: url(http://www.schillmania.com/projects/soundmanager2/demo/bar-ui/image/icomoon/entypo-25px-000000/PNG/music.png);
  680. background-image: none, url(http://www.schillmania.com/projects/soundmanager2/demo/bar-ui/image/icomoon/entypo-25px-000000/SVG/music.svg);
  681. }
  682.  
  683.  
  684. .sm2-bar-ui.dark-text .sm2-playlist-wrapper ul li .sm2-col {
  685. border-left-color: rgba(0,0,0,0.15);
  686. }
  687.  
  688. .sm2-playlist-wrapper ul li .sm2-icon:hover {
  689. background-color: rgba(0,0,0,0.33);
  690. }
  691.  
  692. .sm2-bar-ui .sm2-playlist-wrapper ul li .sm2-icon:hover {
  693. background-color: rgba(0,0,0,0.45);
  694. }
  695.  
  696. .sm2-bar-ui.dark-text .sm2-playlist-wrapper ul li.selected .sm2-icon:hover {
  697. background-color: rgba(255,255,255,0.25);
  698. border-color: rgba(0,0,0,0.125);
  699. }
  700.  
  701. .sm2-progress-ball .icon-overlay {
  702. position: absolute;
  703. width: 100%;
  704. height: 100%;
  705. top: 0px;
  706. left: 0px;
  707. background: none, url(http://www.schillmania.com/projects/soundmanager2/demo/bar-ui/image/icomoon/free-25px-000000/SVG/spinner.svg);
  708. background-size: 72%;
  709. background-position: 50%;
  710. background-repeat: no-repeat;
  711. display: none;
  712. }
  713.  
  714. .playing.buffering .sm2-progress-ball .icon-overlay {
  715. display: block;
  716. -webkit-animation: spin 0.6s linear infinite;
  717. animation: spin 0.6s linear infinite;
  718. }
  719.  
  720. @-webkit-keyframes spin {
  721. 0% {
  722. -webkit-transform: rotate(0deg);
  723. }
  724. 100% {
  725. -webkit-transform: rotate(360deg);
  726. }
  727. }
  728.  
  729. @-moz-keyframes spin {
  730. 0% {
  731. transform: rotate(0deg);
  732. }
  733. 100% {
  734. transform: rotate(360deg);
  735. }
  736. }
  737.  
  738. @keyframes spin {
  739. 0% {
  740. transform: rotate(0deg);
  741. }
  742. 100% {
  743. transform: rotate(360deg);
  744. }
  745. }
  746.  
  747. .sm2-element ul {
  748. font-size: 95%;
  749. list-style-type: none;
  750. }
  751.  
  752. .sm2-element ul,
  753. .sm2-element ul li {
  754. margin: 0px;
  755. padding: 0px;
  756. }
  757.  
  758. .bd.sm2-playlist-drawer {
  759. /* optional: absolute positioning */
  760. /* position: absolute; */
  761. z-index: 3;
  762. border-radius: 0px;
  763. width: 100%;
  764. height: 0px;
  765. border: none;
  766. background-image: none;
  767. display: block;
  768. overflow: hidden;
  769. transition: height 0.2s ease-in-out;
  770. }
  771.  
  772. .sm2-bar-ui.fixed .bd.sm2-playlist-drawer,
  773. .sm2-bar-ui.bottom .bd.sm2-playlist-drawer {
  774. position: absolute;
  775. }
  776.  
  777. .sm2-bar-ui.fixed .sm2-playlist-wrapper,
  778. .sm2-bar-ui.bottom .sm2-playlist-wrapper {
  779. padding-bottom: 0px;
  780. }
  781.  
  782. .sm2-bar-ui.fixed .bd.sm2-playlist-drawer,
  783. .sm2-bar-ui.bottom .bd.sm2-playlist-drawer {
  784. /* show playlist on top */
  785. bottom: 2.8em;
  786. }
  787.  
  788. .sm2-bar-ui .bd.sm2-playlist-drawer {
  789. opacity: 0.5;
  790. /* redraw fix for Chrome, background color doesn't always draw when playlist drawer open. */
  791. transform: translateZ(0);
  792. }
  793.  
  794. /* experimental, may not perform well. */
  795. /*
  796. .sm2-bar-ui .bd.sm2-playlist-drawer a {
  797. -webkit-filter: blur(5px);
  798. }
  799. */
  800.  
  801. .sm2-bar-ui.playlist-open .bd.sm2-playlist-drawer {
  802. height: auto;
  803. opacity: 1;
  804. }
  805.  
  806. .sm2-bar-ui.playlist-open .bd.sm2-playlist-drawer a {
  807. -webkit-filter: none; /* blur(0px) was still blurred on retina displays, as of 07/2014 */
  808. }
  809.  
  810. .sm2-bar-ui.fixed.playlist-open .bd.sm2-playlist-drawer .sm2-playlist-wrapper,
  811. .sm2-bar-ui.bottom.playlist-open .bd.sm2-playlist-drawer .sm2-playlist-wrapper {
  812. /* extra padding when open */
  813. padding-bottom: 0.5em;
  814. box-shadow: none;
  815. }
  816.  
  817. .sm2-bar-ui .bd.sm2-playlist-drawer {
  818. transition: all 0.2s ease-in-out;
  819. transition-property: transform, height, opacity, background-color, -webkit-filter;
  820. }
  821.  
  822. .sm2-bar-ui .bd.sm2-playlist-drawer a {
  823. transition: -webkit-filter 0.2s ease-in-out;
  824. }
  825.  
  826. .sm2-bar-ui .bd.sm2-playlist-drawer .sm2-inline-texture {
  827. /* negative offset for height of top bar, so background is seamless. */
  828. background-position: 0px -2.8em;
  829. }
  830.  
  831. .sm2-box-shadow {
  832. position: absolute;
  833. left: 0px;
  834. top: 0px;
  835. width: 100%;
  836. height: 100%;
  837. box-shadow: inset 0px 1px 6px rgba(0,0,0,0.15);
  838. }
  839.  
  840. .sm2-playlist-wrapper {
  841. position: relative;
  842. padding: 0.5em 0.5em 0.5em 0.25em;
  843. background-image: none, none;
  844. }
  845.  
  846. .sm2-playlist-wrapper ul {
  847. max-height: 9.25em;
  848. overflow: auto;
  849. }
  850.  
  851. .sm2-playlist-wrapper ul li {
  852. border-bottom: 1px solid rgba(0,0,0,0.05);
  853. }
  854.  
  855. .sm2-playlist-wrapper ul li:nth-child(odd) {
  856. background-color: rgba(255,255,255,0.03);
  857. }
  858.  
  859. .sm2-playlist-wrapper ul li a {
  860. display: block;
  861. padding: 0.5em 0.25em 0.5em 0.75em;
  862. margin-right: 0px;
  863. font-size: 90%;
  864. vertical-align: middle;
  865. }
  866.  
  867. .sm2-playlist-wrapper ul li a.sm2-exclude {
  868. display: inline-block;
  869. }
  870.  
  871. .sm2-playlist-wrapper ul li a.sm2-exclude .label {
  872. font-size: 95%;
  873. line-height: 1em;
  874. margin-left: 0px;
  875. padding: 2px 4px;
  876. }
  877.  
  878. .sm2-playlist-wrapper ul li:hover a {
  879. background-color: rgba(0,0,0,0.20);
  880. background-image: url(http://www.schillmania.com/projects/soundmanager2/demo/bar-ui/image/black-20.png);
  881. background-image: none, none;
  882. }
  883.  
  884. .sm2-bar-ui.dark-text .sm2-playlist-wrapper ul li:hover a {
  885. background-color: rgba(255,255,255,0.1);
  886. background-image: url(http://www.schillmania.com/projects/soundmanager2/demo/bar-ui/image/black-10.png);
  887. background-image: none, none;
  888. }
  889.  
  890. .sm2-playlist-wrapper ul li.selected a {
  891. background-color: rgba(0,0,0,0.25);
  892. background-image: url(http://www.schillmania.com/projects/soundmanager2/demo/bar-ui/image/black-20.png);
  893. background-image: none, none;
  894. }
  895.  
  896. .sm2-bar-ui.dark-text ul li.selected a {
  897. background-color: rgba(255,255,255,0.1);
  898. background-image: url(../image/black-10.png);
  899. background-image: none, none;
  900. }
  901.  
  902. .sm2-bar-ui .disabled {
  903. filter: alpha(opacity=33); /* <= IE 8 */
  904. opacity: 0.33;
  905. }
  906.  
  907. .sm2-bar-ui .bd .sm2-button-element.disabled:hover {
  908. background-color: transparent;
  909. }
  910.  
  911. .sm2-bar-ui .active,
  912. /*.sm2-bar-ui.playlist-open .sm2-menu,*/
  913. .sm2-bar-ui.playlist-open .sm2-menu:hover {
  914. /* depressed / "on" state */
  915. box-shadow: inset 0px 0px 2px rgba(0,0,0,0.1);
  916. background-image: none;
  917. }
  918.  
  919. .firefox-fix {
  920. /**
  921. * This exists because of a Firefox bug from 2000
  922. * re: nested relative / absolute elements inside table cells.
  923. * https://bugzilla.mozilla.org/show_bug.cgi?id=63895
  924. */
  925. position: relative;
  926. display: inline-block;
  927. width: 100%;
  928. height: 100%;
  929. }
  930.  
  931. /* some custom scrollbar trickery, where supported */
  932.  
  933. .sm2-playlist-wrapper ul::-webkit-scrollbar {
  934. width: 10px;
  935. }
  936.  
  937. .sm2-playlist-wrapper ul::-webkit-scrollbar-track {
  938. background: rgba(0,0,0,0.33);
  939. border-radius: 10px;
  940. }
  941.  
  942. .sm2-playlist-wrapper ul::-webkit-scrollbar-thumb {
  943. border-radius: 10px;
  944. background: #fff;
  945. }
  946.  
  947. .sm2-extra-controls {
  948. font-size: 0px;
  949. text-align: center;
  950. }
  951.  
  952. .sm2-bar-ui .label {
  953. position: relative;
  954. display: inline-block;
  955. font-size: 0.7em;
  956. margin-left: 0.25em;
  957. vertical-align: top;
  958. background-color: rgba(0,0,0,0.25);
  959. border-radius: 3px;
  960. padding: 0px 3px;
  961. box-sizing: padding-box;
  962. }
  963.  
  964. .sm2-bar-ui.dark-text .label {
  965. background-color: rgba(0,0,0,0.1);
  966. background-image: url(../image/black-10.png);
  967. background-image: none, none;
  968. }
  969.  
  970. .sm2-bar-ui .sm2-playlist-drawer .label {
  971. font-size: 0.8em;
  972. padding: 0px 3px;
  973. }
  974.  
  975. /* --- full width stuff --- */
  976.  
  977. .sm2-bar-ui .sm2-inline-element {
  978. display: table-cell;
  979. }
  980.  
  981. .sm2-bar-ui .sm2-inline-element {
  982. /* collapse */
  983. width: 1%;
  984. }
  985.  
  986. .sm2-bar-ui .sm2-inline-status {
  987. /* full width */
  988. width: 100%;
  989. min-width: 100%;
  990. max-width: 100%;
  991. }
  992.  
  993. .sm2-bar-ui > .bd {
  994. width: 100%;
  995. }
  996.  
  997. .sm2-bar-ui .sm2-playlist-drawer {
  998. /* re-hide playlist */
  999. display: block;
  1000. overflow: hidden;
  1001. }
Advertisement
Add Comment
Please, Sign In to add comment