_layout.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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, .btn.ok {
  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. font-size: 1rem;
  72. width: 100%;
  73. line-height: 2em;
  74. text-align: center;
  75. border-bottom: 4px solid darken($grey, 10%);
  76. box-shadow: inset 0 -4px darken($grey, 10%);
  77. a {
  78. color: darken($grey, 45%);
  79. &:hover {
  80. color: darken($grey, 40%);
  81. }
  82. }
  83. }
  84. #footer {
  85. margin: 0 auto;
  86. max-width: 960px;
  87. padding: 3em 2em 1em 2em;
  88. }
  89. .modal-mask {
  90. opacity: 1;
  91. visibility: visible;
  92. cursor: pointer;
  93. position: fixed;
  94. top: 0;
  95. left: 0;
  96. height: 100%;
  97. width: 100%;
  98. background: rgba(0, 0, 0, .7);
  99. z-index: 10;
  100. transition: all 0.2s ease-in-out;
  101. &.hidden {
  102. opacity: 0;
  103. visibility: hidden;
  104. }
  105. > p {
  106. color: #eee;
  107. margin: 2em;
  108. strong {
  109. color: #fff;
  110. }
  111. }
  112. }
  113. .modal {
  114. width: 420px;
  115. height: 180px;
  116. position: fixed;
  117. background: #fff;
  118. top: 50%;
  119. left: 50%;
  120. margin-left: -210px;
  121. margin-top: -90px;
  122. border: 8px solid lighten($dark-purple, 10%);
  123. box-shadow: 0 10px 30px #333;
  124. cursor: auto;
  125. z-index: 15;
  126. p {
  127. text-align: center;
  128. padding: 1.5em;
  129. }
  130. .btn {
  131. position: absolute;
  132. bottom: 1em;
  133. &.ok {
  134. left: 50%;
  135. margin-left: -60px;
  136. }
  137. &:active {
  138. top: auto;
  139. bottom: calc(1em + 1px);
  140. }
  141. }
  142. }