ui-preview.less 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. //
  2. // UI Preview
  3. // --------------------------------------------------
  4. // Animation
  5. .ui-preview, .ui-preview-text, .ui-preview-img {
  6. background: @ui-preview-light;
  7. border-radius: @border-radius-base + 1px;
  8. color: @ui-preview-light;
  9. .animation(ui-preview-animation 1.5s linear infinite);
  10. }
  11. @-webkit-keyframes ui-preview-animation {
  12. 0% {
  13. background: @ui-preview-light;
  14. color: @ui-preview-light;
  15. }
  16. 50% {
  17. background: @ui-preview-dark;
  18. color: @ui-preview-dark;
  19. }
  20. 100% {
  21. background: @ui-preview-light;
  22. color: @ui-preview-light;
  23. }
  24. }
  25. @keyframes ui-preview-animation {
  26. 0% {
  27. background: @ui-preview-light;
  28. color: @ui-preview-light;
  29. }
  30. 50% {
  31. background: @ui-preview-dark;
  32. color: @ui-preview-dark;
  33. }
  34. 100% {
  35. background: @ui-preview-light;
  36. color: @ui-preview-light;
  37. }
  38. }
  39. // Text
  40. .ui-preview-text {
  41. border-radius: @border-radius-large;
  42. display: inline-block;
  43. height: @font-size-base;
  44. position: relative;
  45. top: (@line-height-computed - @font-size-base) / 2;
  46. }
  47. // List
  48. .ui-preview .list-group {
  49. padding: 1px;
  50. &>li {
  51. border: none;
  52. margin-bottom: 1px;
  53. }
  54. &>li:last-child {
  55. margin-bottom: 0px;
  56. }
  57. }