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.

87 lines
1.7 KiB

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. @border: 1px solid rgba(0, 0, 0, 0.1);
  11. @boxShadow: 0px 1px 2px rgba(0, 0, 0, 0.1);
  12. @color: @textColor;
  13. @verticalPadding: 0.8em;
  14. @horizontalPadding: 1.2em;
  15. @fontWeight: normal;
  16. @fontStyle: normal;
  17. @borderRadius: 0.2em;
  18. /*-------------------
  19. Parts
  20. --------------------*/
  21. /* Placement */
  22. @arrowSize: 0.75em;
  23. @arrowWidth: 1em;
  24. @arrowDistanceFromEdge: 1em;
  25. @boxArrowOffset: 0em;
  26. @popupDistanceAway: @arrowSize;
  27. /* Header */
  28. @headerFontFamily: @headerFont;
  29. @headerFontSize: 1.125em;
  30. @headerDistance: 0.5em;
  31. @headerLineHeight: 1.2;
  32. /* Arrow */
  33. @arrowBackground: @white;
  34. @arrowZIndex: 2;
  35. @arrowOffset: -(@arrowSize / 2);
  36. @arrowShadowColor: rgba(0, 0, 0, 0.2);
  37. @arrowStroke: 1px;
  38. @arrowBoxShadow: 1px 1px @arrowStroke @arrowShadowColor;
  39. @leftArrowBoxShadow: 1px -1px @arrowStroke @arrowShadowColor;
  40. @rightArrowBoxShadow: -1px 1px @arrowStroke @arrowShadowColor;
  41. @bottomArrowBoxShadow: -1px -1px @arrowStroke @arrowShadowColor;
  42. /*-------------------
  43. Coupling
  44. --------------------*/
  45. @popupButtonWidth: 100%;
  46. /*-------------------
  47. States
  48. --------------------*/
  49. @loadingZIndex: -1;
  50. /*-------------------
  51. Variations
  52. --------------------*/
  53. /* Wide */
  54. @wideWidth: 350px;
  55. @veryWideWidth: 550px;
  56. /* Inverted */
  57. @invertedBackground: @black;
  58. @invertedColor: @white;
  59. @invertedBorder: none;
  60. @invertedBoxShadow: none;
  61. @invertedHeaderBackground: none;
  62. @invertedHeaderColor: @white;
  63. @invertedArrowColor: @black;
  64. /* Sizes */
  65. @small: 0.8rem;
  66. @medium: 0.875rem;
  67. @large: 1rem;
  68. @huge: 1.1rem;