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