Fixing attempt for timer position
[westcastle.git] / css / index.css
index 54022f6..341c7b8 100644 (file)
@@ -4,9 +4,8 @@
 
 body {
        font-family: Ubuntu, Verdana, sans-serif;
-       margin: 0;
-       width: 800px;
        margin: 0 auto;
+       width: 800px;
        font-size: 1.1rem;
 }
 
@@ -39,6 +38,18 @@ body {
     color: #f1f1f1;
 }
 
+img.logo {
+       width: 200px;
+       position: fixed;
+       display: block;
+       left: 0;
+       overflow-x: hidden;
+       padding: 20px 0 0 0;
+       margin: 0;
+       top: 350px;
+       z-index: 10;
+}
+
 .main {
        margin-left: 200px; /* Same as the width of the sidenav */
        padding: 0px 10px;
@@ -65,6 +76,43 @@ table th {
        font-weight: bold;
 }
 
+.left, .right {
+       float: left;
+       width: 50%;
+}
+
+.button-container-horizontal, .button-container-vertical {
+       margin-top: 30px;
+       text-align: center;
+}
+.button-container-vertical {
+       float: left;
+}
+/* All children except first: margin: 30px */
+.button-container-horizontal .btn:not(:first-child) {
+       margin-left: 30px;
+}
+.button-container-vertical .btn {
+       display: block;
+       margin-left: 30px;
+}
+.button-container-vertical .btn:not(:first-child) {
+       margin-top: 30px;
+}
+
+button.validate {
+       background-image: linear-gradient(to bottom, #6fa162, #40992e);
+}
+button.validate:hover {
+       background-image: linear-gradient(to bottom, #37cc4e, #40c24f);
+}
+button.cancel {
+       background-image: linear-gradient(to bottom, #d93470, #b82b47);
+}
+button.cancel:hover {
+       background-image: linear-gradient(to bottom, #fc433c, #d93434);
+}
+
 /* players div */
 
 #players {
@@ -77,11 +125,6 @@ table th {
        text-align: center;
 }
 
-#active, #inactive {
-       float: left;
-       width: 50%;
-}
-
 #inactive table {
        opacity: 0.6;
 }
@@ -119,6 +162,7 @@ table.list tr:not(.title):hover, table.ranking tr:not(.title):nth-child(even):ho
 
 #ranking {
        margin-bottom: 15px;
+       overflow: auto;
 }
 
 table.ranking {
@@ -126,6 +170,8 @@ table.ranking {
        width: 500px;
        margin: 0 auto;
        font-size: 1.1rem;
+       display: block;
+       float: left;
 }
 
 table.ranking td
@@ -148,32 +194,21 @@ table.ranking tr:not(.title):hover, table.ranking tr:not(.title):nth-child(even)
        background-color: lightyellow;
 }
 
-table.ranking th.scoring {
-       cursor: pointer;
-}
-
-.active {
-       background-color: yellow;
-}
-
 /* pairings div */
 
-button.block {
-       display: block;
-       margin: 30px auto;
+.warning {
+       color: red;
+       margin-top: 25px;
 }
 
-.button-container {
-       margin-top: 30px;
-       text-align: center;
+span.link {
+       color: darkblue;
+       cursor: pointer;
 }
 
-button.cancel {
-       margin-left: 30px;
-       background-image: linear-gradient(to bottom, #d93470, #b82b47);
-}
-button.cancel:hover {
-       background-image: linear-gradient(to bottom, #fc433c, #d93434);
+button.block {
+       display: block;
+       margin: 25px auto;
 }
 
 .toto {
@@ -202,9 +237,6 @@ td.score {
 .unpaired {
        cursor: default;
 }
-.scored {
-       cursor: default;
-}
 
 .pairing > table {
        font-size: 1.1rem;
@@ -237,3 +269,27 @@ td.score {
 #scoreInput table th {
        padding-bottom: 10px;
 }
+
+/* Timer (dimensions given in javascript) */
+
+#timer {
+       position: absolute;
+       z-index: 100;
+       left: 0;
+       top: 0;
+       background-color: white;
+       cursor: pointer;
+       text-align: center;
+}
+
+.timeout {
+       color: red;
+}
+
+img.close-cross {
+       display: block;
+       position: absolute;
+       top: 0;
+       right: 0;
+       width: 30px;
+}