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.

143 lines
4.1 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
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. /*******************************
  2. Modal
  3. *******************************/
  4. @background: @white;
  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.25rem;
  15. @closeDistance: 0.25rem;
  16. @closeHitBoxOffset: (@closeHitbox - 1rem) / 2;
  17. @closePadding: @closeHitBoxOffset 0rem 0rem 0rem;
  18. @closeTop: -(@closeDistance + @closeHitbox);
  19. @closeRight: -(@closeDistance + @closeHitbox);
  20. /* Header */
  21. @headerMargin: 0em;
  22. @headerVerticalPadding: 1.2rem;
  23. @headerHorizontalpadding: 2rem;
  24. @headerPadding: @headerVerticalPadding @headerHorizontalpadding;
  25. @headerBackground: @subtleGradient @white;
  26. @headerColor: @darkTextColor;
  27. @headerFontSize: 1.6em;
  28. @headerLineHeight: 1.3em;
  29. @headerBoxShadow: @subtleShadow;
  30. @headerFontWeight: bold;
  31. @headerFontFamily: @headerFont;
  32. @headerBorder: 1px solid @borderColor;
  33. /* Content */
  34. @contentFontSize: 1em;
  35. @contentPadding: 2rem;
  36. @contentLineHeight: 1.4;
  37. @contentBackground: #FFFFFF;
  38. /* Image / Description */
  39. @imageWidth: '';
  40. @imageIconSize: 8rem;
  41. @imageVerticalAlign: top;
  42. @descriptionDistance: 2em;
  43. @descriptionMinWidth: '';
  44. @descriptionWidth: 80%;
  45. @descriptionVerticalAlign: top;
  46. /* Modal Actions */
  47. @actionBorder: 1px solid @borderColor;
  48. @actionBackground: #EFEFEF;
  49. @actionPadding: 1rem 2rem;
  50. @actionAlign: right;
  51. @buttonDistance: 0.75em;
  52. /* Inner Close Position (Tablet/Mobile) */
  53. @innerCloseTop: (@headerVerticalPadding - @closeHitBoxOffset + (@lineHeight - 1em));
  54. @innerCloseRight: 1rem;
  55. @innerCloseColor: @textColor;
  56. /* Mobile Positions */
  57. @mobileHeaderPadding: 0.75rem 1rem;
  58. @mobileContentPadding: 1rem;
  59. @mobileImagePadding: 0rem 0rem 1rem;
  60. @mobileDescriptionPadding: 1rem 0rem ;
  61. @mobileButtonDistance: 1rem;
  62. @mobileActionPadding: 1rem 1rem (1rem - @mobileButtonDistance);
  63. @mobileImageIconSize: 5rem;
  64. @mobileCloseTop: 0.5rem;
  65. @mobileCloseRight: 0.5rem;
  66. /* Responsive Widths */
  67. @mobileWidth: 95%;
  68. @tabletWidth: 88%;
  69. @computerWidth: 74%;
  70. @largeMonitorWidth: 56%;
  71. @widescreenMonitorWidth: 42%;
  72. @mobileMargin: 0em 0em 0em -(@mobileWidth / 2);
  73. @tabletMargin: 0em 0em 0em -(@tabletWidth / 2);
  74. @computerMargin: 0em 0em 0em -(@computerWidth / 2);
  75. @largeMonitorMargin: 0em 0em 0em -(@largeMonitorWidth / 2);
  76. @widescreenMonitorMargin: 0em 0em 0em -(@widescreenMonitorWidth / 2);
  77. @fullScreenWidth: 95%;
  78. @fullScreenMargin: 1em 0em 1em -(@fullScreenWidth / 2);
  79. @fullScreenMobileMargin: 1em;
  80. /*-------------------
  81. Types
  82. --------------------*/
  83. /* Basic */
  84. @basicModalHeaderColor: @white;
  85. @basicModalColor: @white;
  86. @basicModalCloseTop: 1rem;
  87. @basicModalCloseRight: 1.5rem;
  88. @basicInnerCloseColor: @white;
  89. /* Scrolling Margin */
  90. @scrollingMargin: 3.5rem;
  91. @mobileScrollingMargin: 1rem;
  92. /*-------------------
  93. Variations
  94. --------------------*/
  95. /* Size Widths */
  96. @smallRatio: 0.6;
  97. @largeRatio: 1.2;
  98. /* Derived Responsive Sizes */
  99. @smallHeaderSize: 1.3em;
  100. @smallMobileWidth: @mobileWidth;
  101. @smallTabletWidth: (@tabletWidth * @smallRatio);
  102. @smallComputerWidth: (@computerWidth * @smallRatio);
  103. @smallLargeMonitorWidth: (@largeMonitorWidth * @smallRatio);
  104. @smallWidescreenMonitorWidth: (@widescreenMonitorWidth * @smallRatio);
  105. @smallMobileMargin: 0em 0em 0em -(@smallMobileWidth / 2);
  106. @smallTabletMargin: 0em 0em 0em -(@smallTabletWidth / 2);
  107. @smallComputerMargin: 0em 0em 0em -(@smallComputerWidth / 2);
  108. @smallLargeMonitorMargin: 0em 0em 0em -(@smallLargeMonitorWidth / 2);
  109. @smallWidescreenMonitorMargin: 0em 0em 0em -(@smallWidescreenMonitorWidth / 2);
  110. @largeHeaderSize: 1.6em;
  111. @largeMobileWidth: @mobileWidth;
  112. @largeTabletWidth: @tabletWidth;
  113. @largeComputerWidth: (@computerWidth * @largeRatio);
  114. @largeLargeMonitorWidth: (@largeMonitorWidth * @largeRatio);
  115. @largeWidescreenMonitorWidth: (@widescreenMonitorWidth * @largeRatio);
  116. @largeMobileMargin: 0em 0em 0em -(@largeMobileWidth / 2);
  117. @largeTabletMargin: 0em 0em 0em -(@largeTabletWidth / 2);
  118. @largeComputerMargin: 0em 0em 0em -(@largeComputerWidth / 2);
  119. @largeLargeMonitorMargin: 0em 0em 0em -(@largeLargeMonitorWidth / 2);
  120. @largeWidescreenMonitorMargin: 0em 0em 0em -(@largeWidescreenMonitorWidth / 2);