structure.css 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. /*First, we start off with specifying what parts of the DOM we want hidden*/
  2. #leftbar, #rightbar, #footbar {
  3. display: none;
  4. }
  5. /*Now, on to positioning of the elements*/
  6. body {
  7. position: relative;
  8. margin: 0;
  9. width: 100%;
  10. min-height: 100vh;
  11. max-height: 100%;
  12. }
  13. #topkek {
  14. display: flex;
  15. position: fixed;
  16. z-index: 2;
  17. top: 0;
  18. width: 100%;
  19. height: 2rem;
  20. }
  21. .toplel {
  22. display: table-cell;
  23. }
  24. #lefttitle {
  25. flex 1 0 33%;
  26. }
  27. #midtitle {
  28. flex-grow: 1;
  29. }
  30. #righttitle {
  31. flex 1 0 33%;
  32. }
  33. #righttitle a, #configbar a {
  34. display: inline-block;
  35. }
  36. #menubutton {
  37. display: none;
  38. min-width: 2%;
  39. max-width: 33%;
  40. padding-right: .5em;
  41. }
  42. #littlemenu {
  43. display: none;
  44. position: fixed;
  45. z-index: 3;
  46. top: 1.5em;
  47. right: 0px;
  48. padding: 0px .5em .5em .5em;
  49. }
  50. #littlemenu a {
  51. display: block;
  52. }
  53. #kontainer {
  54. display: table;
  55. width: 100%;
  56. padding-bottom: 2.5em;
  57. }
  58. .kontained {
  59. display: table-cell;
  60. }
  61. #leftbar {
  62. width: 6em;
  63. padding-right: .5em;
  64. }
  65. #kontent {
  66. padding: 3em .5em .5em .5em;
  67. min-height: 50%;
  68. max-width: 100%;
  69. margin-top: 0px;
  70. width:100%;
  71. }
  72. #rightbar {
  73. width: 6em;
  74. padding-left: .5em;
  75. }
  76. #footbar {
  77. position: absolute;
  78. bottom: 0;
  79. width: 100%;
  80. height: 1.5em;
  81. }
  82. #stories {
  83. padding: 0px .5em .5em .5em;
  84. width: 80%;
  85. display: table-cell;
  86. }
  87. /*Some CSS rules below that I actually want to load on both print and screen views*/
  88. blockquote {
  89. font-style: italic;
  90. }
  91. .inline {
  92. display: inline;
  93. }
  94. .responsive { /*Close enough to 16:9*/
  95. width: 35rem;
  96. height: 20rem;
  97. }
  98. @media(max-width: 35rem) {
  99. .responsive {
  100. width: 100%;
  101. height: 10rem;
  102. }
  103. }