_layout.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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 2em 1em 2em;
  94. }
  95. .modal-mask {
  96. opacity: 1;
  97. visibility: visible;
  98. cursor: pointer;
  99. position: fixed;
  100. top: 0;
  101. left: 0;
  102. height: 100%;
  103. width: 100%;
  104. background: rgba(0, 0, 0, .7);
  105. z-index: 10;
  106. transition: all 0.2s ease-in-out;
  107. &.hidden {
  108. opacity: 0;
  109. visibility: hidden;
  110. }
  111. > p {
  112. color: #eee;
  113. margin: 2em;
  114. strong {
  115. color: #fff;
  116. }
  117. }
  118. }
  119. .modal {
  120. width: 420px;
  121. height: 180px;
  122. position: fixed;
  123. background: #fff;
  124. top: 50%;
  125. left: 50%;
  126. margin-left: -210px;
  127. margin-top: -90px;
  128. border: 8px solid lighten($dark-purple, 10%);
  129. box-shadow: 0 10px 30px #333;
  130. cursor: auto;
  131. z-index: 15;
  132. p {
  133. text-align: center;
  134. padding: 1.5em;
  135. }
  136. .btn {
  137. position: absolute;
  138. bottom: 1em;
  139. &.ok {
  140. left: 50%;
  141. margin-left: -60px;
  142. }
  143. &:active {
  144. top: auto;
  145. bottom: calc(1em + 1px);
  146. }
  147. }
  148. }