_layout.scss 2.6 KB

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