07.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. $black: #000;
  2. $white: #fff;
  3. $link: #06581f;
  4. $packt: #f79321;
  5. /***************************************
  6. Default Styles
  7. ***************************************/
  8. html, body {
  9. margin: 0;
  10. padding: 0;
  11. }
  12. body {
  13. font: 62.5% Verdana, Helvetica, Arial, sans-serif;
  14. color: $black;
  15. background: $white;
  16. }
  17. #container {
  18. font-size: 1.2em;
  19. margin: 10px 2em;
  20. }
  21. h1 {
  22. font-size: 2.5em;
  23. margin-bottom: 0;
  24. }
  25. h2 {
  26. font-size: 1.3em;
  27. margin-bottom: .5em;
  28. }
  29. h3 {
  30. font-size: 1.1em;
  31. margin-bottom: 0;
  32. }
  33. code {
  34. font-size: 1.2em;
  35. }
  36. a {
  37. color: $link;
  38. }
  39. /***************************************
  40. Chapter Styles
  41. ***************************************/
  42. ul#books {
  43. list-style: none;
  44. margin: 0;
  45. padding: 0;
  46. height: 210px;
  47. width: 500px;
  48. overflow: hidden;
  49. }
  50. ul#books li {
  51. list-style: none;
  52. margin: 0;
  53. padding: 0;
  54. height: 210px;
  55. width: 500px;
  56. background-color: $packt;
  57. position: relative;
  58. }
  59. ul#books li img {
  60. position: absolute;
  61. left: 0;
  62. top: 0;
  63. width: 300px;
  64. height: 210px;
  65. }
  66. ul#books li .title {
  67. margin-left: 300px;
  68. padding: 10px;
  69. width: 180px;
  70. font-weight: bold;
  71. font-size: 1.2em;
  72. background-color: $black;
  73. color: $white;
  74. overflow: hidden;
  75. }
  76. ul#books li .author {
  77. margin-left: 300px;
  78. padding: 10px 10px 0 10px;
  79. width: 180px;
  80. font-weight: bold;
  81. background-color: #F79321;
  82. color: $white;
  83. }
  84. #books-controls {
  85. margin: 10px 0;
  86. width: 500px;
  87. }
  88. #books-controls button {
  89. margin: 0 10px 10px 0;
  90. float: left;
  91. }
  92. #books-controls #slider {
  93. clear: left;
  94. margin: 10px 0;
  95. }
  96. h1 {
  97. text-align: center;
  98. border: 0 solid $white;
  99. width: 500px;
  100. margin-bottom: 20px;
  101. }
  102. h1.highlighted {
  103. border: 10px solid #F79321;
  104. padding: 10px;
  105. width: 460px;
  106. margin-bottom: 0;
  107. background-color: $black;
  108. color: $packt;
  109. }
  110. #books .ui-resizable-s {
  111. bottom: 0;
  112. }
  113. .ui-content img {
  114. display: block;
  115. }
  116. .ui-content .title {
  117. padding: 10px;
  118. margin: 0;
  119. width: 280px;
  120. font-weight: bold;
  121. font-size: 18px;
  122. background-color: $packt;
  123. color: $white;
  124. text-shadow: none;
  125. }
  126. .ui-content .author {
  127. padding: 10px;
  128. margin: 0;
  129. width: 280px;
  130. font-weight: bold;
  131. font-size: 14px;
  132. background-color: $packt;
  133. color: $white;
  134. text-shadow: none;
  135. }