summaryrefslogtreecommitdiff
path: root/test.scss
blob: 90299a205ead6ef3285877b9454d8252f143df80 (plain)
  1. @import 'h5bp/helpers';
  2. @import 'compass/css3';
  3. .topbar {
  4. padding: 1.5em 0;
  5. text-align: center;
  6. @media screen and (min-width: 701px) {
  7. padding: 1.5em 6em 1.5em 0;
  8. text-align: right;
  9. }
  10. }
  11. .topbar .footer {
  12. background-color: #336699;
  13. }
  14. .topbar p,
  15. .topbar .imgframe p {
  16. float: left;
  17. }
  18. //.topbar ul {
  19. // display: block;
  20. // margin: 3em 0;
  21. //}
  22. .topbar ul {
  23. position: relative;
  24. top: 1.8em;
  25. clear: left;
  26. }
  27. .topbar li {
  28. text-align: center;
  29. }
  30. .topbar ul li a,
  31. .topbar ul li .selflink {
  32. @include inline-block;
  33. width: 8em;
  34. padding: 1em .5em;
  35. background-color: #6699cc;
  36. color: white;
  37. &:hover {
  38. background-color: lightblue;
  39. color: #336699;
  40. }
  41. @media screen and (min-width: 701px) {
  42. width: 10em;
  43. padding: 1em;
  44. }
  45. }
  46. // FIXME: change topbar inline-block-list padding instead
  47. .topbar ul li {
  48. padding-left: 0;
  49. padding-right: 0;
  50. @media screen and (min-width: 701px) {
  51. padding-left: .2em;
  52. padding-right: .2em;
  53. }
  54. }
  55. #content {
  56. width: 96%;
  57. max-width: none;
  58. margin: 2%;
  59. }
  60. .inlinepage {
  61. position: relative;
  62. //set to make inline header position work
  63. border: 0;
  64. padding: 0;
  65. margin: 0 0 1em 0;
  66. background-color: transparent;
  67. height: 18em;
  68. overflow: hidden;
  69. }
  70. //set to annull style.css
  71. .inlinecontent {
  72. margin-top: 0;
  73. }
  74. .inlineheader {
  75. display: block;
  76. position: absolute;
  77. bottom: 0;
  78. left: 0;
  79. width: 100%;
  80. a {
  81. font-weight: normal;
  82. color: white;
  83. background-color: #6699cc;
  84. display: block;
  85. padding: 0.5em;
  86. opacity: 0.8;
  87. }
  88. }
  89. .inlinecontent p {
  90. margin-bottom: 0;
  91. margin-top: 0;
  92. }
  93. .inlinefooter,
  94. .inlineheader .author,
  95. .sidebar,
  96. .farbar {
  97. @include h5bp-hidden;
  98. }
  99. //Responsive design
  100. @media screen and (max-width: 480px) {
  101. #content {
  102. width: 100%;
  103. margin: 0;
  104. }
  105. .columns {
  106. @include column-count(1);
  107. }
  108. .inlinepage {
  109. margin: 0;
  110. }
  111. }
  112. @media screen and (min-width: 480px) and (max-width: 700px) {
  113. .columns {
  114. @include column-count(2);
  115. }
  116. }
  117. @media screen and (min-width: 701px) {
  118. .columns {
  119. @include column-count(3);
  120. }
  121. }