main.css 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. body {
  2. margin: 0;
  3. }
  4. html {
  5. background: #eee;
  6. }
  7. header#main {
  8. border-bottom: 0;
  9. line-height: 50px;
  10. padding-left: 20px;
  11. padding-right: 20px;
  12. background-color: #99ddff;
  13. }
  14. header#main a {
  15. color: black;
  16. }
  17. header#main span#right {
  18. float: right;
  19. }
  20. header#main form.not_mobile input.search {
  21. display: inline-block;
  22. width: 200px;
  23. }
  24. header#main form.not_mobile {
  25. display: inline-block;
  26. }
  27. input.search {
  28. height: 35px;
  29. vertical-align: middle;
  30. margin-top: -5px;
  31. border: 0;
  32. padding: 10px;
  33. }
  34. input.only_mobile.search {
  35. width: calc(100% - 70px);
  36. display: inline-block;
  37. }
  38. input.search:focus-visible {
  39. outline: none;
  40. }
  41. button.search_button {
  42. width: 35px;
  43. height: 35px;
  44. vertical-align: middle;
  45. margin-top: -5px;
  46. margin-left: -5px;
  47. border: 0;
  48. font-size: 20px;
  49. line-height: 0px;
  50. }
  51. button.search_button#goto {
  52. background-color: #ccffbb;
  53. }
  54. button.search_button#search {
  55. background-color: #ffeecc;
  56. }
  57. aside {
  58. width: 250px;
  59. float: left;
  60. display: inline-block;
  61. padding-top: 10px;
  62. padding-left: 20px;
  63. padding-right: 20px;
  64. background-color: #ffeaee;
  65. height: calc(100vh - (50px + 20px));
  66. }
  67. aside button {
  68. width: 25%;
  69. }
  70. section {
  71. width: calc(100% - (250px + 40px));
  72. display: inline-block;
  73. border-left: 0px solid;
  74. background-color: white;
  75. }
  76. header#section {
  77. padding-top: 11px;
  78. padding-bottom: 11px;
  79. border-bottom: 0px solid;
  80. background-color: #cceeff;
  81. }
  82. article.main {
  83. max-width: 1000px;
  84. padding-left: 20px;
  85. padding-right: 20px;
  86. margin: auto;
  87. }
  88. article.main#content {
  89. padding-top: 20px;
  90. min-height: 400px;
  91. }
  92. article.main#title h1 {
  93. margin: 0;
  94. }
  95. .only_mobile, header#main form.only_mobile {
  96. display: none;
  97. }
  98. @media screen and (max-width: 1000px) {
  99. aside {
  100. float: none;
  101. border-top: 0px solid;
  102. width: calc(100vw - 40px);
  103. height: 100%;
  104. padding: 20px;
  105. }
  106. section {
  107. width: 100vw;
  108. padding-bottom: 20px;
  109. border-left: 0;
  110. }
  111. .not_mobile, header#main form.not_mobile {
  112. display: none;
  113. }
  114. .only_mobile, header#main form.only_mobile {
  115. display: block;
  116. }
  117. }
  118. footer {
  119. border-top: 0px solid;
  120. margin-top: 20px;
  121. background: #eee;
  122. padding: 20px;
  123. }
  124. footer.only_mobile {
  125. margin-top: 0px;
  126. }