Advertisement
wclendining

CSSTestPageComplete

Mar 24th, 2015
457
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 5.06 KB | None | 0 0
  1. /*
  2. Theme Name: [insert your first name here]'s Custom Theme - Sample
  3. Author: [insert your name here]
  4. Description: This is the HTML for the theme I used while attending the course Customizing Themes in WordPress.
  5.  
  6. The styles are grouped into the following sections:
  7.    Section 1: Document defaults
  8.    Section 2: Header element rules
  9.    Section 3: Content element rules
  10.    Section 4: Footer element rules
  11.    Section 5: Responsive rules
  12.    Section 6: Print rules
  13.  
  14. Version: 1.0
  15. */
  16.       /* ============================ */
  17.       /* Section 1: Document defaults */
  18.       /* ============================ */
  19.       body {margin: 0 10%; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;}
  20.  
  21.       /* =============================== */
  22.       /* Section 2: Header element rules */
  23.       /* =============================== */
  24.       header {border: dashed #666699 1px }
  25.       header h1 {margin: 1em 0;text-align: center;}
  26.       header p#tag-line {margin-bottom: 1em; font-style: italics; text-align: center; }
  27.       #global {background-color: #9999CC;text-align: right;overflow: auto;}
  28.       #searchform {display: inline; float: right; }
  29.       #cardinal {background-color: #669999;}
  30.       /* Making the cardinal navigation list horizontal, and drop-down */
  31.       #cardinal {background-color: #000; display: block; /*float: left;*/ margin: 0 auto; width: 100%; height: 40px; font-size: 90%;}
  32.       #cardinal ul, ul { list-style: none; margin: 0; padding: 0; }
  33.       #cardinal li {float: left; position: relative;}
  34.       #cardinal ul ul {display: none;position: absolute;top: 40px;left: 1em;float: left;width: 180px;opacity: 0.95;z-index: 99999;}
  35.       #cardinal a {color: #aaa; display: block; line-height: 40px; padding: 0 10px; text-decoration: none; font-weight: normal;}
  36.       #cardinal ul li:hover > ul { display: block;}
  37.       #cardinal li:hover > a,
  38.       #cardinal ul ul :hover > a {background-color: #333; color: #fff;}
  39.       #cardinal ul ul a {background-color: #333; line-height: 1em; padding: auto 10px; width: 160px; height: 40px;}
  40.       #cardinal ul li.current_page_item > a,
  41.       #cardinal ul li.current-menu-ancestor > a,
  42.       #cardinal ul li.current-menu-item > a,
  43.       #cardinal ul li.current-menu-parent > a {color: #fff;}   
  44.  
  45.       /* ================================ */
  46.       /* Section 3: Content element rules */
  47.       /* ================================ */
  48.       #main {border: solid black 1px;padding: 2px;overflow: auto;}
  49.       article {border: solid #000099 1px;overflow: auto;}
  50.       #leftbar {border: dotted #CCCC99 1px;font-size: 90%;}
  51.       #rightbar {border: dotted #CCCC99 1px;font-size: 90%;}
  52.       #breadcrumbs {border-bottom: solid #666699 1px;font-size: 90%;}
  53.       #pagefoot {margin: 1em 2em;border-width: 0;border-top: solid #666699 1px;font-size: 90%;overflow: auto;clear: both;}
  54.       /* Making the sidebar thing happen */
  55.       article {margin: 0 200px;}
  56.       #leftbar {width: 198px; float: left;}
  57.       #rightbar {width: 198px; float: right;}
  58.  
  59.       /* === Text styles === */
  60.       #main ul {list-style-type: initial;margin: 2em;}
  61.       /* === Wordpress-isms === */
  62.       .current_page_item, .current-page-ancestor, .current-menu-item {font-weight: bold;color: #330000;} /* Mainly to highlight the section in cardinal navigation */
  63.       .alignright {float: right;}
  64.       .alignleft {float: left;}
  65.       .wp-caption {
  66.         border: solid black 1px;
  67.         margin: 2em auto;
  68.         padding: 15px;
  69.         text-align: center;
  70.         border-radius: 10px; -ms-border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; -khtml-border-radius: 10px; /* this is an example of how to make rounded corners, the extra rules are for older browsers that do it own their own. */
  71.        }
  72.        .wp-caption-text {font-style: italic;font-size: 90%;}
  73.      
  74.       /* =============================== */
  75.       /* Section 4: Footer element rules */
  76.       /* =============================== */
  77.       footer {border: dotted #003399 1px;font-size: 80%;}
  78.       .TopRow {background-color: #999999;clear: both;overflow: auto;}
  79.       .Centre {text-align: center;}
  80.       .BottomRow {background-color: black; color: white;text-align: center;}
  81.       /* making the 3 column thing happen */
  82.       .Centre {margin: 0 200px;}
  83.       .LeftSide {width: 198px; float: left;}
  84.       .RightSide {width: 198px; float: right;}
  85.  
  86.       /* =========================== */
  87.       /* Section 5: Responsive rules */
  88.       /* =========================== */
  89.       @media (min-width: 1100px) {
  90.       /* what to do for wide screens */
  91.       }
  92.       @media (min-width: 600px) and (max-width: 1099px) {
  93.       /* what to do for medium screens */
  94.       }
  95.       @media (max-width: 599px) {
  96.       /* what to do for small screens */
  97.       body {margin: 0; }
  98.       article, .Centre {margin: 0;}
  99.       #leftbar, #rightbar, .LeftSide, .RightSide {float: none;width: 100%; }
  100.       }
  101.  
  102.       /* ====================== */
  103.       /* Section 6: Print rules */
  104.       /* ====================== */
  105.       @media print {
  106.          body {font-size: 10pt; margin: 0; }
  107.          nav, aside#rightbar {display: none;}
  108.          article {margin: 0;}
  109.       }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement