_layout.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. header {
  2. margin: 0 auto;
  3. max-width: 800px;
  4. width: 100%;
  5. height: 50px;
  6. }
  7. #container-wrapper {
  8. max-width: 960px;
  9. width: 100%;
  10. height: auto;
  11. padding: 1em 2em;
  12. margin: 0 auto;
  13. clear: both;
  14. }
  15. #container {
  16. width: 100%;
  17. min-height: 600px;
  18. margin: 0px 0px 20px 0px;
  19. float: left;
  20. }
  21. input, button {
  22. font-family: 'Open Sans';
  23. outline: none;
  24. }
  25. input:required {
  26. box-shadow: none;
  27. }
  28. .btn {
  29. width: 15%;
  30. height: 50px;
  31. display: block;
  32. font-size: 1.125rem;
  33. border-radius: 2px;
  34. border: 2px solid black;
  35. background: $white;
  36. color: black;
  37. cursor: pointer;
  38. float: right;
  39. box-shadow: inset 0 -2px darken($white, 5%);
  40. position: relative;
  41. &:hover {
  42. background: lighten($red, 5%);
  43. border-bottom: 2px solid darken($red, 2%);
  44. box-shadow: inset 0 -2px darken($red, 2%);
  45. transition: all 0.2s ease-in-out;
  46. }
  47. &:active {
  48. top: 1px;
  49. }
  50. }
  51. a.btn {
  52. width: 120px;
  53. line-height: 46px;
  54. text-align: center;
  55. text-decoration: none;
  56. &:hover {
  57. color: white;
  58. }
  59. }
  60. .btn--red {
  61. background: $red;
  62. border-color: darken($red, 5%);
  63. box-shadow: inset 0 -2px darken($red, 5%);
  64. margin-right: 10px;
  65. &:hover {
  66. background: lighten($red, 5%);
  67. border-bottom: 2px solid darken($red, 2%);
  68. box-shadow: inset 0 -2px darken($red, 2%);
  69. transition: all 0.2s ease-in-out;
  70. }
  71. }
  72. footer {
  73. position: absolute;
  74. bottom: 0;
  75. left: 0;
  76. width: 100%;
  77. height: 100px;
  78. line-height: 2em;
  79. text-align: center;
  80. border-bottom: 8px solid darken($grey, 10%);
  81. p, a {
  82. font-size: .85rem;
  83. margin-bottom: 0;
  84. }
  85. a {
  86. color: darken($grey, 45%);
  87. &:hover {
  88. color: darken($grey, 40%);
  89. }
  90. }
  91. }
  92. #footer {
  93. margin: 0 auto;
  94. max-width: 960px;
  95. padding: 3em 1em 0;
  96. }
  97. #container-wrapper, footer {
  98. min-width: 480px;
  99. }
  100. .modal-mask {
  101. opacity: 1;
  102. visibility: visible;
  103. cursor: pointer;
  104. position: fixed;
  105. top: 0;
  106. left: 0;
  107. height: 100%;
  108. width: 100%;
  109. background: rgba(0, 0, 0, .7);
  110. z-index: 10;
  111. transition: all 0.2s ease-in-out;
  112. &.hidden {
  113. opacity: 0;
  114. visibility: hidden;
  115. }
  116. > p {
  117. color: #eee;
  118. margin: 2em;
  119. strong {
  120. color: #fff;
  121. }
  122. }
  123. }
  124. .modal {
  125. width: 420px;
  126. height: 180px;
  127. position: fixed;
  128. background: #fff;
  129. top: 50%;
  130. left: 50%;
  131. margin-left: -210px;
  132. margin-top: -90px;
  133. border: 3px solid lighten($black, 10%);
  134. box-shadow: 0 10px 30px #333;
  135. cursor: auto;
  136. z-index: 15;
  137. p {
  138. text-align: center;
  139. padding: 1.5em;
  140. }
  141. .btn {
  142. position: absolute;
  143. bottom: 1em;
  144. &.ok {
  145. left: 50%;
  146. margin-left: -60px;
  147. }
  148. &:active {
  149. top: auto;
  150. bottom: calc(1em + 1px);
  151. }
  152. }
  153. }