You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
1.8 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. /*******************************
  2. Popup
  3. *******************************/
  4. /*-------------------
  5. Element
  6. --------------------*/
  7. @zIndex: 900;
  8. @background: @white;
  9. @maxWidth: 250px;
  10. @borderColor: #CCCCCC;
  11. @borderWidth: 1px;
  12. @boxShadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  13. @color: @textColor;
  14. @verticalPadding: 0.8em;
  15. @horizontalPadding: 1em;
  16. @fontWeight: normal;
  17. @fontStyle: normal;
  18. @borderRadius: @defaultBorderRadius;
  19. /*-------------------
  20. Parts
  21. --------------------*/
  22. /* Placement */
  23. @arrowSize: 0.75em;
  24. @arrowWidth: 1em;
  25. @arrowDistanceFromEdge: 1em;
  26. @boxArrowOffset: 0em;
  27. @popupDistanceAway: @arrowSize;
  28. /* Header */
  29. @headerFontFamily: @headerFont;
  30. @headerFontSize: 1.125em;
  31. @headerDistance: 0.5em;
  32. @headerLineHeight: 1.2;
  33. /* Content Border */
  34. @border: @borderWidth solid @borderColor;
  35. /* Arrow */
  36. @arrowBackground: @white;
  37. @arrowZIndex: 2;
  38. @arrowJitter: 0.05em;
  39. @arrowOffset: -(@arrowSize / 2) + @arrowJitter;
  40. @arrowStroke: @borderWidth;
  41. @arrowColor: darken(@borderColor, 10);
  42. @arrowBoxShadow: @arrowStroke @arrowStroke 0px 0px @arrowColor;
  43. @leftArrowBoxShadow: @arrowStroke -@arrowStroke 0px 0px @arrowColor;
  44. @rightArrowBoxShadow: -@arrowStroke @arrowStroke 0px 0px @arrowColor;
  45. @bottomArrowBoxShadow: -@arrowStroke -@arrowStroke 0px 0px @arrowColor;
  46. /*-------------------
  47. Coupling
  48. --------------------*/
  49. @popupButtonWidth: 100%;
  50. /*-------------------
  51. States
  52. --------------------*/
  53. @loadingZIndex: -1;
  54. /*-------------------
  55. Variations
  56. --------------------*/
  57. /* Wide */
  58. @wideWidth: 350px;
  59. @veryWideWidth: 550px;
  60. /* Inverted */
  61. @invertedBackground: @black;
  62. @invertedColor: @white;
  63. @invertedBorder: none;
  64. @invertedBoxShadow: none;
  65. @invertedHeaderBackground: none;
  66. @invertedHeaderColor: @white;
  67. @invertedArrowColor: @black;
  68. /* Sizes */
  69. @small: 0.8rem;
  70. @medium: 0.875rem;
  71. @large: 1rem;
  72. @huge: 1.1rem;