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.

129 lines
3.4 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. /*-------------------
  2. Modal
  3. --------------------*/
  4. @background: transparent;
  5. @border: none;
  6. @width: 90%;
  7. @xOffset: -(@width / 2);
  8. @borderRadius: 0.25rem;
  9. @boxShadow: 0px 0px 8px rgba(0, 0, 0, 0.8);
  10. /* Close Icon */
  11. @closeOpacity: 0.8;
  12. @closeSize: 1.25em;
  13. @closeColor: @white;
  14. @closeHitbox: 2.25em;
  15. @closeDistance: 0.25em;
  16. @closePadding: ( (@closeHitbox - 1em) / 2) 0em 0em 0em;
  17. @closeTop: -(@closeDistance + @closeHitbox);
  18. @closeRight: -(@closeDistance + @closeHitbox);
  19. /* Header */
  20. @headerMargin: 0em;
  21. @headerPadding: 1.5rem 2rem;
  22. @headerBackground: @lightBlack;
  23. @headerColor: @white;
  24. @headerFontSize: 1.6em;
  25. @headerFontWeight: bold;
  26. @headerFontFamily: @headerFont;
  27. @headerBorder: 1px solid @borderColor;
  28. /* Content */
  29. @contentFontSize: 1em;
  30. @contentPadding: 2rem;
  31. @contentLineHeight: 1.4;
  32. @contentBackground: #FFFFFF;
  33. /* Left / Right */
  34. @imageMinWidth: 25%;
  35. @imagePadding: 1em;
  36. @imageIconSize: 8rem;
  37. @imageVerticalAlign: top;
  38. @descriptionPadding: 1em;
  39. @descriptionMinWidth: '';
  40. @descriptionVerticalAlign: top;
  41. /* Modal Actions */
  42. @actionBorder: 1px solid @borderColor;
  43. @actionBackground: #EFEFEF;
  44. @actionPadding: 1rem 2rem;
  45. @actionAlign: right;
  46. @buttonDistance: 0.75em;
  47. /* Mobile Positions */
  48. @mobileImagePadding: 0em 0em 1em;
  49. @mobileDescriptionPadding: 0em 0em 1em;
  50. @mobileButtonDistance: 1em;
  51. /* Inner Close Position (Responsive) */
  52. @innerCloseTop: 1.5rem;
  53. @innerCloseRight: 1rem;
  54. @innerCloseColor: @textColor;
  55. /* Responsive Widths */
  56. @mobileWidth: 95%;
  57. @tabletWidth: 88%;
  58. @computerWidth: 74%;
  59. @largeMonitorWidth: 56%;
  60. @widescreenMonitorWidth: 42%;
  61. @mobileMargin: 0em 0em 0em -(@mobileWidth / 2);
  62. @tabletMargin: 0em 0em 0em -(@tabletWidth / 2);
  63. @computerMargin: 0em 0em 0em -(@computerWidth / 2);
  64. @largeMonitorMargin: 0em 0em 0em -(@largeMonitorWidth / 2);
  65. @widescreenMonitorMargin: 0em 0em 0em -(@widescreenMonitorWidth / 2);
  66. @fullScreenWidth: 99%;
  67. @fullScreenMargin: 0em 0em 0em -(@fullScreenWidth / 2);
  68. /*-------------------
  69. Types
  70. --------------------*/
  71. /* Basic */
  72. @basicModalColor: @white;
  73. @basicModalCloseTop: 1.5rem;
  74. @basicModalCloseRight: 1rem;
  75. /* Scrolling Margin */
  76. @scrollingTopMargin: 1rem;
  77. /*-------------------
  78. Variations
  79. --------------------*/
  80. /* Sizes */
  81. @smallRatio: 0.6;
  82. @largeRatio: 1.2;
  83. /* Derived Responsive Sizes */
  84. @smallHeaderSize: 1.3em;
  85. @smallMobileWidth: @mobileWidth;
  86. @smallTabletWidth: (@tabletWidth * @smallRatio);
  87. @smallComputerWidth: (@computerWidth * @smallRatio);
  88. @smallLargeMonitorWidth: (@largeMonitorWidth * @smallRatio);
  89. @smallWidescreenMonitorWidth: (@widescreenMonitorWidth * @smallRatio);
  90. @smallMobileMargin: 0em 0em 0em -(@smallMobileWidth / 2);
  91. @smallTabletMargin: 0em 0em 0em -(@smallTabletWidth / 2);
  92. @smallComputerMargin: 0em 0em 0em -(@smallComputerWidth / 2);
  93. @smallLargeMonitorMargin: 0em 0em 0em -(@smallLargeMonitorWidth / 2);
  94. @smallWidescreenMonitorMargin: 0em 0em 0em -(@smallWidescreenMonitorWidth / 2);
  95. @largeHeaderSize: 1.6em;
  96. @largeMobileWidth: @mobileWidth;
  97. @largeTabletWidth: @tabletWidth;
  98. @largeComputerWidth: (@computerWidth * @largeRatio);
  99. @largeLargeMonitorWidth: (@largeMonitorWidth * @largeRatio);
  100. @largeWidescreenMonitorWidth: (@widescreenMonitorWidth * @largeRatio);
  101. @largeMobileMargin: 0em 0em 0em -(@largeMobileWidth / 2);
  102. @largeTabletMargin: 0em 0em 0em -(@largeTabletWidth / 2);
  103. @largeComputerMargin: 0em 0em 0em -(@largeComputerWidth / 2);
  104. @largeLargeMonitorMargin: 0em 0em 0em -(@largeLargeMonitorWidth / 2);
  105. @largeWidescreenMonitorMargin: 0em 0em 0em -(@largeWidescreenMonitorWidth / 2);