_layout.scss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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: 0;
  35. border-bottom: 2px solid darken($blue, 5%);
  36. text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  37. background: $blue;
  38. color: white;
  39. cursor: pointer;
  40. float: right;
  41. box-shadow: inset 0 -2px darken($blue, 5%);
  42. position: relative;
  43. &:hover {
  44. background: lighten($blue, 5%);
  45. border-bottom: 2px solid darken($blue, 2%);
  46. box-shadow: inset 0 -2px darken($blue, 2%);
  47. transition: all 0.2s ease-in-out;
  48. }
  49. &:active {
  50. top: 1px;
  51. }
  52. }
  53. a.btn {
  54. width: 120px;
  55. line-height: 46px;
  56. text-align: center;
  57. text-decoration: none;
  58. &:hover {
  59. color: white;
  60. }
  61. }
  62. .btn--red {
  63. background: $red;
  64. border-color: darken($red, 5%);
  65. box-shadow: inset 0 -2px darken($red, 5%);
  66. margin-right: 10px;
  67. &:hover {
  68. background: lighten($red, 5%);
  69. border-bottom: 2px solid darken($red, 2%);
  70. box-shadow: inset 0 -2px darken($red, 2%);
  71. transition: all 0.2s ease-in-out;
  72. }
  73. }
  74. footer {
  75. position: absolute;
  76. bottom: 0;
  77. left: 0;
  78. width: 100%;
  79. height: 100px;
  80. line-height: 2em;
  81. text-align: center;
  82. border-bottom: 8px solid darken($grey, 10%);
  83. p, a {
  84. font-size: .85rem;
  85. margin-bottom: 0;
  86. }
  87. a {
  88. color: darken($grey, 45%);
  89. &:hover {
  90. color: darken($grey, 40%);
  91. }
  92. }
  93. }
  94. #footer {
  95. margin: 0 auto;
  96. max-width: 960px;
  97. padding: 3em 1em 0;
  98. }
  99. #container-wrapper, footer {
  100. min-width: 480px;
  101. }
  102. .modal-mask {
  103. opacity: 1;
  104. visibility: visible;
  105. cursor: pointer;
  106. position: fixed;
  107. top: 0;
  108. left: 0;
  109. height: 100%;
  110. width: 100%;
  111. background: rgba(0, 0, 0, .7);
  112. z-index: 10;
  113. transition: all 0.2s ease-in-out;
  114. &.hidden {
  115. opacity: 0;
  116. visibility: hidden;
  117. }
  118. > p {
  119. color: #eee;
  120. margin: 2em;
  121. strong {
  122. color: #fff;
  123. }
  124. }
  125. }
  126. .modal {
  127. width: 420px;
  128. height: 180px;
  129. position: fixed;
  130. background: #fff;
  131. top: 50%;
  132. left: 50%;
  133. margin-left: -210px;
  134. margin-top: -90px;
  135. border: 8px solid lighten($dark-purple, 10%);
  136. box-shadow: 0 10px 30px #333;
  137. cursor: auto;
  138. z-index: 15;
  139. p {
  140. text-align: center;
  141. padding: 1.5em;
  142. }
  143. .btn {
  144. position: absolute;
  145. bottom: 1em;
  146. &.ok {
  147. left: 50%;
  148. margin-left: -60px;
  149. }
  150. &:active {
  151. top: auto;
  152. bottom: calc(1em + 1px);
  153. }
  154. }
  155. }