Advertisement
wclendining

FLOATLAYOOUTallCSS

Apr 6th, 2015
487
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 7.41 KB | None | 0 0
  1. /*
  2. Theme Name: Warren's Floating Theme
  3. Author: Warren
  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.       @import url(http://fonts.googleapis.com/css?family=Lato:400,700,900);
  20.       @import url(http://fonts.googleapis.com/css?family=Bangers);
  21.       body {margin: 2% 15%; font-family: Lato, Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;
  22.         background-image: url(images/plhouse.jpg);
  23.         background-repeat: no-repeat;
  24.         background-size: 30%;
  25.         background-attachment: fixed;
  26.         /* background-position: right top;*/
  27.       }
  28.  
  29.       /* =============================== */
  30.       /* Section 2: Header element rules */
  31.       /* =============================== */
  32.       header {
  33.          background-image: url(images/SeeThroughWaves.png);
  34.          background-repeat: no-repeat;
  35.          background-size: 100%;
  36.          height: 0;
  37.          padding-bottom: 24.1%;
  38.          border-left: solid #121E26 1px;
  39.          border-right: solid #121E26 1px;
  40.       }
  41.       header h1 {
  42.          margin: 0;
  43.          padding: 0;text-align: center;
  44.          font-family: Bangers, "Times New Roman", Times, serif;
  45.          font-size: 5.8vw;
  46.          text-shadow: 8px 8px #B9D9E8;
  47.          }
  48.       header p.TagLine {margin-bottom: 1em; font-style: italic; text-align: center; font-size: 1.8vw}
  49.       #global {
  50.          background-color: #121E26;
  51.          text-align: right;
  52.          overflow: auto;
  53.          padding-right: 40px;
  54.          height: 40px;
  55.          border-top-left-radius: 30px; -ms-border-top-left-radius: 30px; -moz-border-top-left-radius: 30px; -webkit-border-top-left-radius: 30px; -khtml-border-top-left-radius: 30px;
  56.          border-top-right-radius: 30px; -ms-border-top-right-radius: 30px; -moz-border-top-right-radius: 30px; -webkit-border-top-right-radius: 30px; -khtml-border-top-right-radius: 30px;
  57.          }
  58.       #global a, #global a:link, #global a:active, #global a:visited {color: #E7F1F6;text-decoration: none; }
  59.       #global a:hover {color: white; text-decoration: underline; }  
  60.       #searchform {display: inline; float: right; }
  61.       /* Making the cardinal navigation list horizontal, and drop-down */
  62.       #cardinal {background-color: #1a2d38; display: block; /*float: left;*/ margin: 0 auto; width: 100%; height: 40px; font-size: 90%;}
  63.       #cardinal ul, ul { list-style: none; margin: 0; padding: 0; }
  64.       #cardinal li {float: left; position: relative;}
  65.       #cardinal ul ul {display: none;position: absolute;top: 40px;left: 1em;float: left;width: 180px;opacity: 0.95;z-index: 99999;}
  66.       #cardinal a {color: #aaa; display: block; line-height: 40px; padding: 0 10px; text-decoration: none; font-weight: normal;}
  67.       #cardinal ul li:hover > ul { display: block;}
  68.       #cardinal li:hover > a,
  69.       #cardinal ul ul :hover > a {background-color: #333; color: #fff;}
  70.       #cardinal ul ul a {background-color: #333; line-height: 1em; padding: auto 10px; width: 160px; height: 40px;}
  71.       #cardinal ul li.current_page_item > a,
  72.       #cardinal ul li.current-menu-ancestor > a,
  73.       #cardinal ul li.current-menu-item > a,
  74.       #cardinal ul li.current-menu-parent > a {color: #fff;}   
  75.  
  76.       /* ================================ */
  77.       /* Section 3: Content element rules */
  78.       /* ================================ */
  79.       #main {
  80.          padding: 0 1em;
  81.          overflow: auto;
  82.          background-color: white;
  83.          opacity: .9;
  84.          border-left: solid #121E26 1px;
  85.          border-right: solid #121E26 1px;
  86.          }
  87.       article {
  88.          overflow: auto;
  89.          background-color: white;
  90.          opacity: .95;
  91.          padding: 0 2em;
  92.          }
  93.       #leftbar {font-size: 90%;}
  94.       #rightbar {padding-left: 1em;font-size: 90%;}
  95.       #breadcrumbs {border-bottom: solid #324853 1px;font-size: 90%;}
  96.       #breadcrumbs a, #breadcrumbs a:link, #breadcrumbs a:active, #breadcrumbs a:visited {color: black; text-decoration: none; }
  97.       #breadcrumbs a:hover {color: black; text-decoration: underline;}
  98.       #pagefoot {margin: 1em 2em;border-width: 0;border-top: solid #666699 1px;font-size: 90%;overflow: auto;clear: both;}
  99.       /* Making the sidebar thing happen */
  100.       article {margin: 0 200px;}
  101.       #leftbar {width: 198px; float: left;}
  102.       #rightbar {width: 198px; float: right;}
  103.  
  104.       /* === Text styles === */
  105.       #main ul {list-style-type: initial;margin: 2em;}
  106.  
  107.       /* === Wordpress-isms === */
  108.       .current_page_item, .current-page-ancestor, .current-menu-item {font-weight: bold;color: #330000;} /* Mainly to highlight the section in cardinal navigation */
  109.       .alignright {float: right;}
  110.       .alignleft {float: left;}
  111.       .wp-caption {
  112.         border: solid black 1px;
  113.         margin: 2em auto;
  114.         padding: 15px;
  115.         text-align: center;
  116.         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. */
  117.        }
  118.        .wp-caption-text {font-style: italic;font-size: 90%;}
  119.      
  120.       /* =============================== */
  121.       /* Section 4: Footer element rules */
  122.       /* =============================== */
  123.       footer {font-size: 80%;
  124.       }
  125.       footer a, footer a:link, footer a:active, footer a:visited, footer a:hover {color: black; text-decoration: none;}
  126.       footer a:hover {color: white; text-decoration: underline;}
  127.       .TopRow {background-color: #324853;clear: both;overflow: auto;}
  128.       .Centre {text-align: center;}
  129.       .BottomRow {height: 40px;background-color: #1a2d38; color: white;text-align: center;
  130.           border-bottm-left-radius: 30px; -ms-border-bottom-left-radius: 30px; -moz-border-bottom-left-radius: 30px; -webkit-border-bottom-left-radius: 30px; -khtml-border-bottom-left-radius: 30px;
  131.          border-bottom-right-radius: 30px; -ms-border-bottom-right-radius: 30px; -moz-border-bottom-right-radius: 30px; -webkit-border-bottom-right-radius: 30px; -khtml-border-bottom-right-radius: 30px;
  132.       }
  133.       /* making the 3 column thing happen */
  134.       .Centre {margin: 0 200px;}
  135.       .LeftSide {width: 198px; float: left;padding-left: 2em;}
  136.       .RightSide {width: 198px; float: right;padding-left: 2em;}
  137.  
  138.       /* =========================== */
  139.       /* Section 5: Responsive rules */
  140.       /* =========================== */
  141.       @media (min-width: 1100px) {
  142.       /* what to do for wide screens */
  143.       }
  144.       @media (min-width: 600px) and (max-width: 1099px) {
  145.       /* what to do for medium screens */
  146.       }
  147.       @media (max-width: 599px) {
  148.       /* what to do for small screens */
  149.       body {margin: 0; }
  150.       article, .Centre {margin: 0;}
  151.       #leftbar, #rightbar, .LeftSide, .RightSide {float: none;width: 100%; }
  152.       }
  153.  
  154.       /* ====================== */
  155.       /* Section 6: Print rules */
  156.       /* ====================== */
  157.       @media print {
  158.          body {font-size: 10pt; margin: 0; }
  159.          nav, aside#rightbar {display: none;}
  160.          article {margin: 0;}
  161.       }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement