X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/a392975425c3e39d6d0a29288222b4931eaded73..711863d09c53aee4614a9170d27ae923b5e378d8:/media/courgette/style.css.php

diff --git a/media/courgette/style.css.php b/media/courgette/style.css.php
index 1399cd8..e8f0a76 100644
--- a/media/courgette/style.css.php
+++ b/media/courgette/style.css.php
@@ -16,7 +16,7 @@
  *  GNU Affero General Public License for more details.
  *
  *  You should have received a copy of the GNU Affero General Public License
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 /*
@@ -26,20 +26,22 @@
 
 $dark = '#8B4513';
 
-header("Content-type: text/css");
+header('Content-type: text/css');
 
 ?>
 
 /* ==========================================================================
-   Sommaire
+   Summary
 
    1 = Basic Style
    2 = Copyright
    3 = Options
    4 = Upload
    5 = Terms of service
-   6 = Admin
-   
+   6 = Install
+   7 = Admin
+   8 = Download page
+
    ========================================================================== */
 
 /* ==========================================================================
@@ -53,6 +55,10 @@ body {
   line-height: 1.5;
 }
 
+#content {
+  padding: 2em;
+}
+
 h1 a {
   display: block;
   background: url(logo-jirafeau.svg) no-repeat;
@@ -88,16 +94,18 @@ legend {
   color: #663D1C;
   font-size: 1.2em;
   display: block;
-  width: 100%;
+  min-width: 8em;
   text-align: center;
 }
 
-table a { color: #000;}
+table a {
+  color: #000;
+}
 
-  table a:hover,
-  table a:focus {
-    text-decoration: none;
-  }
+table a:hover,
+table a:focus {
+  text-decoration: none;
+}
 
 input[type="submit"] {
   background: #0D9CB2;
@@ -149,16 +157,24 @@ input[type="submit"]:focus {
   text-align: center;
 }
 
+#upload p {
+  margin: 0;
+}
+
 #file_select {
-  position: absolute;
-  top: 0;
-  left: 0;
+  position: relative;
   width: 100%;
-  height: 100%;
+  height: 16em;
   cursor: pointer;
   opacity: 0;
 }
-
+  #upload.file-selected #file_select {
+    opacity: 1;
+    height: 2em;
+  }
+  #upload.file-selected fieldset {
+    background-image: none;
+  }
 
 
 /* ==========================================================================
@@ -169,7 +185,7 @@ input[type="submit"]:focus {
   text-align: center;
   font-size: 0.8em;
   color: #795548;
-  padding-left: 3em;
+  margin: 3em auto;
 }
 
 #copyright a {
@@ -187,9 +203,8 @@ input[type="submit"]:focus {
    ========================================================================== */
 
 #options {
-  position: absolute;
+  position: relative;
   z-index: 10;
-  background: #efebe9;
   width: 100%;
   height: 90%;
 }
@@ -206,7 +221,7 @@ input[type="submit"]:focus {
 
 #options input[type="submit"] {
   position: relative;
-  left: 11.2em;
+  margin: 1em auto;
 }
 
 /* ==========================================================================
@@ -216,13 +231,27 @@ input[type="submit"]:focus {
 #upload_finished,
 #uploading,
 .message,
+.info,
 .error {
   text-align: center;
   color: #795548;
   padding-left: 3em;
 }
 
-#upload_finished a,
+#upload_finished > p:nth-child(1) {
+  color: #0D9CB2;
+  font-weight: bold;
+}
+
+#upload_finished div p:nth-child(1) {
+  font-weight: bold;
+}
+
+#upload_finished a {
+  text-decoration: none;
+  color: #795548;
+}
+
 #uploading a {
   font-weight: bold;
   text-decoration: none;
@@ -248,12 +277,20 @@ input[type="submit"]:focus {
   font-weight: bold;
 }
 
+#upload_link_email {
+  margin-left: 10px;
+}
+
+#upload_image_email {
+  padding-left: 20px;
+  padding-bottom: 15px;
+  background: url(email.png) no-repeat;
+}
+
 /* ==========================================================================
    5 = Terms of service
    ========================================================================== */
 
-
-
 textarea[readonly="readonly"] {
   border: 0;
   color: #795548;
@@ -284,27 +321,25 @@ textarea[readonly="readonly"] + p + p a:focus {
 }
 
 /* ==========================================================================
-   6 = Admin
+   6 = Install
    ========================================================================== */
 
 #install fieldset,
 #install + fieldset {
   width: auto;
   max-width: 50em;
-  border: 0;
+  border: 7px dashed #bcaaa4;
 }
 
 #install table,
 #install + fieldset table {
   width: 100%;
   border-collapse: collapse;
-  border-bottom: 2px solid #FFF;
 }
 
 #install td,
 #install + fieldset td {
   padding: 0.5em 1em;
-  border: 2px solid #FFF;
   border-bottom: 0;
 }
 
@@ -327,7 +362,7 @@ textarea[readonly="readonly"] + p + p a:focus {
   width: 100%;
 }
 
-#install td:last-child { text-align: right; }
+#install td:last-child { text-align: left; }
 
 #install .info { width: 19em; }
 
@@ -345,12 +380,93 @@ textarea[readonly="readonly"] + p + p a:focus {
   color: #000;
   font-weight: bold;
   border-bottom: 0;
-  width: 12em;
 }
 
 #install + fieldset td:first-child input[type="submit"]:hover,
 #install + fieldset td:first-child input[type="submit"]:focus {
-  position: static;
-  margin: 0;
   text-decoration: underline;
 }
+
+/* ==========================================================================
+   7 = Admin
+   ========================================================================== */
+
+#admin fieldset,
+#admin + fieldset {
+  width: auto;
+  max-width: 60em;
+  border: 7px dashed #bcaaa4;
+}
+
+#admin table,
+#admin + fieldset table {
+  width: 100%;
+  border-collapse: collapse;
+  border-bottom: 2px solid #FFF;
+}
+
+#admin td,
+#admin + fieldset td {
+  padding: 0.5em 1em;
+  border: 2px solid #FFF;
+  border-bottom: 0;
+}
+
+#admin td:empty {
+  width: 13.1em;
+}
+
+#admin table form:nth-child(odd),
+#admin + fieldset tr:nth-child(odd) {
+  background: #bcaaa4;
+}
+
+#admin fieldset > form {
+  margin-top: 2em;
+  text-align: center;
+}
+
+#admin form {
+  display: table;
+  width: 100%;
+}
+
+#admin td:last-child { text-align: left; }
+
+#admin .info { width: 19em; }
+
+#admin input[type="submit"] {
+  min-width: 10.5em;
+}
+
+#admin + fieldset table {
+  font-size: 0.9em;
+}
+
+#admin + fieldset td:first-child input[type="submit"] {
+  background: none;
+  padding: 0;
+  color: #000;
+  font-weight: bold;
+  border-bottom: 0;
+}
+
+#admin + fieldset td:first-child input[type="submit"]:hover,
+#admin + fieldset td:first-child input[type="submit"]:focus {
+  text-decoration: underline;
+}
+
+/* ==========================================================================
+   8 = Download page
+   ========================================================================== */
+
+#self_destruct {
+  font-weight: bold;
+  color: red;
+  background-image: url('pixel_bomb.png');
+  background-size: 40px 40px;
+  background-repeat: no-repeat;
+  padding-left: 40px;
+  padding-top: 10px;
+  padding-bottom: 10px;
+}