main.css & main.rtl.css: sync with enc (up to 697a6df).
[enc-live.git] / static / css / main.css
index cb27f829d2ebe90122f20ed0a6f8dd42cd5cb627..a67bb78c759b472214e226fdddc3746a1794dece 100644 (file)
@@ -177,6 +177,23 @@ small {
     font-size: 0.85em;
 }
 
+code,
+kbd,
+samp {
+    font-family: monospace;
+    padding: 0 .2em;
+}
+code,
+kbd {
+    display: inline-block;
+}
+
+/* Prevent wrapping within anchor links. */
+a[href^="#section"],
+a[href^="#step"] {
+    white-space: nowrap;
+}
+
 #header #fsf-intro {
     font-size: .7em;
 }
@@ -185,6 +202,7 @@ small {
     font-size: 125%;
 }
 
+
 /* Colours
  */
 
@@ -208,23 +226,10 @@ b, i, em {
     color: #905300;
 }
 
-/* Commands and options */
 code,
 kbd,
 samp {
     color: #905300;
-    font-family: monospace;
-    padding: 0 .2em;
-}
-code,
-kbd {
-    display: inline-block;
-}
-
-/* Prevent wrapping within anchor links. */
-a[href^="#section"],
-a[href^="#step"] {
-    white-space: nowrap;
 }
 
 /* Guide Sections Background */
@@ -351,8 +356,8 @@ a[href^="#step"] {
     margin-bottom: 1.3em;
 }
 
-.section-intro  p {
-    margin: 0.5em 3.5em;
+.section-intro p {
+    margin: 0.5em 7.5%;
 }
 
 .section-intro h2,
@@ -371,8 +376,10 @@ a[href^="#step"] {
 
 .section-intro p.image { text-align: center; }
 
-.section-intro p.image > img { max-width: 100%; }
-
+.section-intro p.image > img {
+    max-width: 100%;
+    height: auto;
+}
 
 .step {
     padding: .5em 0;
@@ -414,6 +421,7 @@ a[href^="#step"] {
 /* Images
  */
 
+/*
 ul.images:before, ul.images:after  {
     content: " ";
     display: table;
@@ -436,17 +444,37 @@ ul.images li > img {
     max-width: 600px;
     height: auto;
 }
-
-.sidebar > p > img {
-    width: 100%;
-    max-width: 600px;
-    height: auto;
-}
+*/
 
 .share-logo {
     margin-bottom: 6px;
 }
 
+p.large {
+    width: 600px;
+    border: 1px solid #aaa;
+}
+
+p.medium {
+    width: 350px;
+}
+
+p.small {
+    width: 250px;
+}
+
+p.float,
+.sidebar > p {
+    max-width: 100%;
+    margin: 0 auto 1.5em;
+}
+
+p.float img,
+.sidebar > p img {
+    width: 100%;
+    height: auto;
+}
+
 /* Troubleshooting panel and dropdown */
 
 .troubleshooting {
@@ -762,7 +790,9 @@ input[type='reset']:hover {
     .section-intro p {
        margin: 0.5em 0;
     }
-
+    .section-intro p.float {
+       margin: 0.5em auto;
+    }
 }
 
 
@@ -787,6 +817,15 @@ input[type='reset']:hover {
 
 }
 
+@media (min-width:800px) {
+
+    p.float.small {
+       float:right;
+       margin:0  7.5% 20px 30px;
+    }
+
+}
+
 @media only screen and (min-width: 950px) {
 
     .row > div,
@@ -868,12 +907,18 @@ input[type='reset']:hover {
        height: auto;
     }
 
-    .row .sidebar > p > img {
-       width: 80%;
-       height: auto;
+    .row .sidebar > p.medium {
+       margin: 0;
     }
 
     #workshops-image {
        width: 100%;
     }
+
+    p.float.medium {
+       float: right;
+       max-width: 40%;
+       margin: 0 7.5% 20px 30px;
+    }
+
 }