Advertisement
trevorn90

Untitled

Oct 15th, 2017
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. @charset "utf-8";
  2. /*
  3. New Perspectives on HTML5 and CSS3, 7th Edition
  4. Tutorial 5
  5. Case Problem 1
  6.  
  7. Filename: gp_designs.css
  8.  
  9. This file design style used by all screen sizes for
  10. the Golden Pulps sample comic book pages
  11.  
  12. */
  13.  
  14.  
  15. /* =============================================
  16. Base styles used by All Screens
  17. =============================================
  18. */
  19.  
  20.  
  21. html {
  22. background-color: rgb(211, 255, 211);
  23. font-size: 12px;
  24. font-family: Tahoma, Geneva, sans-serif;
  25. }
  26.  
  27. body {
  28. background-color: rgb(242, 221, 174);
  29. box-shadow: 15px 0px 30px rgb(51, 51, 51),
  30. -15px 0px 30px rgb(51, 51, 51);
  31. margin: 0px auto;
  32. max-width: 1024px;
  33. }
  34.  
  35. body > header {
  36. background: url("gp_back1.png") center center / cover no-repeat;
  37. text-align: center;
  38. width: 100%;
  39. }
  40.  
  41. body > header > img {
  42. display: inline;
  43. width: 70%;
  44. max-width: 400px;
  45. text-align: center;
  46. }
  47.  
  48.  
  49. /* Horizontal Navigation Styles */
  50.  
  51. nav.horizontal {
  52. height: auto;
  53. width: 100%;
  54. }
  55.  
  56. nav.horizontal ul {
  57. background-color: rgb(212, 175, 55);
  58. text-align: center;
  59. width: 100%;
  60. }
  61.  
  62.  
  63. nav.horizontal li {
  64. font-family: 'Comic Sans MS', cursive;
  65. font-size: 1.4em;
  66. line-height: 2em;
  67. list-style-type: none;
  68. width: 100%;
  69. }
  70.  
  71. nav.horizontal li a {
  72. color: black;
  73. display: block;
  74. width: 100%;
  75. }
  76.  
  77. nav.horizontal li a:hover, nav.horizontal li a:active {
  78. color: white;
  79. background-color: rgb(51, 51, 51);
  80. }
  81.  
  82. /* Article Styles */
  83.  
  84. article {
  85. padding: 10px;
  86. }
  87.  
  88. article h1 {
  89. text-align: center;
  90. font-size: 1.4em;
  91. letter-spacing: 3px;
  92. }
  93.  
  94. article p {
  95. font-size: 1.4em;
  96. line-height: 1.2;
  97. margin: 20px 0px;
  98. }
  99.  
  100.  
  101. /* Comic Book Sheet Styles */
  102.  
  103. section#sheet {
  104. border: 1px solid rgb(101, 101, 101);
  105. background-color: white;
  106. padding: 10px 10px 0px 10px;
  107. }
  108.  
  109. section#sheet h1 {
  110. font-size: 1.4em;
  111. text-align: center;
  112. letter-spacing: 3px;
  113. margin: 5px;
  114. }
  115.  
  116. section#sheet footer {
  117. text-align: center;
  118. width: 100%;
  119. clear: left;
  120. }
  121.  
  122.  
  123. /* Navigation Pages Styles */
  124.  
  125. nav#pages {
  126. padding-bottom: 10px;
  127. }
  128.  
  129. nav#pages::after {
  130. content: "";
  131. display: table;
  132. clear: both;
  133. }
  134.  
  135. nav#pages a {
  136. background-color: rgb(242, 221, 174);
  137. border: 1px solid rgb(101, 101, 101);
  138. box-shadow: rgb(51, 51, 51) 2px 2px 5px;
  139. display: block;
  140. float: left;
  141. margin: 4px;
  142. padding: 2px;
  143. text-align: center;
  144. width: 20px;
  145. }
  146.  
  147. nav#pages a:first-of-type {
  148. width: 80px;
  149. }
  150.  
  151. nav#pages a#current {
  152. background-color: rgb(51, 51, 51);
  153. color: white;
  154. }
  155.  
  156. /* Comic Image Panel Styles */
  157.  
  158. img.panel {
  159. float: left;
  160. display: block;
  161. }
  162.  
  163.  
  164. /* Body Footer Styles */
  165.  
  166. body > footer {
  167. color: white;
  168. background-color: rgb(51, 51, 51);
  169. text-align: center;
  170. line-height: 2em;
  171. width: 100%;
  172. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement