Merge remote-tracking branch 'gsoc2016/Subtitle-1'
[mediagoblin.git] / mediagoblin / static / css / base.css
index b9b806f9ab700ee089bb591eec085d45edba0a9c..6da19f9499d40fa7b592ca224914a3bb0aaa443d 100644 (file)
@@ -25,7 +25,7 @@
   src: local('Lato Regular'), local('Lato-Regular'), url('../fonts/Lato-Regular.ttf') format('truetype');
 }
 
-body {
+html, body {
   background-color: #161616;
   color: #C3C3C3;
   padding: 0;
@@ -78,6 +78,11 @@ a.highlight {
   color: #fff;
 }
 
+.header_right a {
+  text-decoration: none;
+  color: #fff;
+}
+
 em {
   font-style: italic;
 }
@@ -105,39 +110,56 @@ input, textarea {
 
 /* website structure */
 
-.container {
-  margin: auto;
-  width: 96%;
-  max-width: 940px;
+#wrap {
+  min-height: 100%;
+  height: auto;
+
+  /* This must be equal to the footer height + 5px */
+  margin-bottom: -35px;
+}
+
+#wrap:after {
+  content: "";
+  display: block;
+}
+
+footer, #wrap:after {
+  height: 30px;
 }
 
 header {
   width: 100%;
-  max-width: 940px;
-  margin-left: auto;
-  margin-right: auto;
   padding: 0;
   margin-bottom: 42px;
   border-bottom: 1px solid #333;
 }
 
+.header_left {
+  width: 47%;
+  margin: 0 0 0 8px;
+  display: inline-block;
+}
+
 .header_right {
-  margin: 8px;
+  width: 47%;
+  margin: 8px 8px 4px 0;
   display: inline-block;
   float: right;
+  text-align: right;
+  line-height: 1.6em;
 }
 
-.header_dropdown {
+#header_dropdown {
   margin-bottom: 20px;
   padding: 0px 10px 0px 10px;
 }
 
-.header_dropdown li {
+#header_dropdown li {
   margin: 4px 0;
   list-style: none;
 }
 
-.header_dropdown p {
+#header_dropdown p {
   margin-top: 12px;
   margin-bottom: 10px;
 }
@@ -149,6 +171,26 @@ header {
 a.logo {
   color: #fff;
   font-weight: bold;
+  text-decoration: none;
+}
+
+.status_icon {
+  border-radius: 2px;
+  padding: 4px;
+  margin: 0px 4px;
+}
+
+.num_queued {
+  background: #56446F;
+}
+
+.num_failed {
+  background: #87453B;
+}
+
+.status_icon a {
+  display: inline-block;
+  color: #C3C3C3;
 }
 
 .logo img {
@@ -156,6 +198,10 @@ a.logo {
   margin: 6px 8px 6px 0;
 }
 
+.welcomeimage {
+  float: right;
+}
+
 .fine_print {
   font-size: 0.8em;
 }
@@ -167,38 +213,52 @@ a.logo {
 
 footer {
   width: 100%;
-  height: 30px;
   border-top: 1px solid #333;
-  bottom: 0px;
   padding: 8px 0;
   text-align: center;
   font-size: 0.875em;
   clear: both;
 }
 
-.media_pane {
-  width: 640px;
-  margin-left: 0px;
+.thumb_gallery {
+  margin-left: 10px;
   margin-right: 10px;
-  float: left;
 }
 
-.media_sidebar {
-  width: 280px;
-  margin-left: 10px;
-  float: left;
+.profile_showcase .thumb_gallery {
+  margin-left: 0;
+  margin-right: 0;
 }
 
-.profile_sidebar {
-  width: 340px;
-  margin-right: 10px;
-  float: left;
+.media_image_container {
 }
 
-.profile_showcase {
-  width: 580px;
-  margin-left: 10px;
-  float: left;
+.media_image {
+  display: block;
+  margin-left: auto;
+  margin-right: auto;
+  max-width: 100%;
+}
+
+.media_other_container {
+  display: flex;
+  justify-content: center;
+}
+
+.media_pane {
+/* in place for possible future wide view */
+/*  border-bottom: 1px solid #333333;*/
+}
+
+.media_sidebar {
+/* in place for possible future wide view */
+/*  border-left: 1px solid #333333;*/
+/*  padding-left: 1em;*/
+/*  padding-top: 1em;*/
+}
+
+.media_comments {
+  padding-top: 1em;
 }
 
 /* common website elements */
@@ -224,6 +284,17 @@ footer {
   color: #283F35;
 }
 
+.button_info {
+  background-color: #508BB5;
+  border-color: #5899C7 #437699 #427496;
+  color: #C3C3C3;
+}
+
+.button_warning {
+  background-color: #8A2D2D;
+  border-color: #913030 #451717 #431212;
+  color: #C3C3C3;
+}
 
 .button_form {
   min-width: 99px;
@@ -248,10 +319,28 @@ text-align: center;
   padding-top: 70px;
 }
 
+.no_background {
+  background-image: none;
+  height: 0;
+  padding-top: 0;
+  display: inline-block;
+}
+
 .right_align {
   float: right;
 }
 
+.left_align {
+  float: right;
+}
+
+.pull-right {
+  float: right !important;
+}
+.pull-left {
+  float: left !important;
+}
+
 .clear {
   clear: both;
   display: block;
@@ -266,13 +355,29 @@ text-align: center;
 }
 
 .media_sidebar h3 {
-       font-size: 1em;
-       margin: 0 0 5px;
-       border: none;
+  font-size: 1em;
+  margin: 0 0 5px;
+  border: none;
 }
 
 .media_sidebar p {
-       margin-left: 8px;
+  margin-left: 8px;
+}
+
+.alpha {
+  margin-left:0;
+}
+
+.omega {
+  margin-right:0;
+}
+
+.head {
+  margin-top:0;
+}
+
+.foot {
+  margin-bottom:0;
 }
 
 /* forms */
@@ -289,28 +394,78 @@ text-align: center;
   margin-right: auto;
 }
 
+.form_box > h1, .form_box_xl > h1 {
+  /* Fix header overflowing issue. */
+  overflow: hidden;
+  text-overflow: ellipsis
+}
+
 .form_box_xl {
   max-width: 460px;
 }
 
+.blog_form_box_xl  {
+  background-color: #222;
+  border-top: 6px solid #D49086;
+  padding: 3% 5%;
+  display: block;
+  float: none;
+  width: 90%;
+  max-width: 800px;
+  min-height: 500px;
+  margin-left: auto;
+  margin-right: auto;
+}
+
+.b_listing_title {
+  height: 30px;
+  width: 100%;
+  padding: 0px;
+  background-color: #86D4B1;
+  text-transform:capitalize;
+  text-decoration: none;
+  #border-radius: 4px;
+}
+.b_listing_title > a {
+  text-decoration: none;
+}
+
+.b_list_owner {
+  height: 100px;
+  width: 100%;
+  padding: 0em;
+  margin-right: auto;
+  background-color: #DDA0DD;
+  #border-radius: 4px;
+  text-transform: capitalize;
+}
+
+.b_list_des {
+  text-align:justify;
+}
+
+
 .edit_box {
   border-top: 6px dashed #D49086
 }
 
-.form_field_input input, .form_field_input textarea {
+/*.form_field_input input,*/ .form_field_input textarea {
   width: 100%;
 }
 
-.form_field_input {
-  margin-bottom: 10px;
+.blog_form_field_input input, .blog_form_field_input textarea {
+  width: 100%;
 }
 
-.form_field_label {
-  margin-bottom: 4px;
+.form_field_input {
+  margin-bottom: 10px;
 }
 
 .form_field_label {
   font-size:1.125em;
+  margin-bottom: 0;
+  padding: 10px 0;
 }
 
 .form_field_description {
@@ -434,11 +589,11 @@ ul#action_to_resolve {list-style:none; margin-left:10px;}
   border-radius: 0 0 5px 5px;
   padding: 0 0 6px;
   text-overflow: ellipsis;
-  white-space: nowrap;
   overflow: hidden;
   border-color: #0D0D0D;
   border-style: solid;
   border-width: 1px 1px 2px;
+  position: relative;
 }
 
 .media_thumbnail a {
@@ -456,12 +611,11 @@ a.thumb_entry_title {
   padding: 8px;
 }
 
-/* For now, this is commented out since our thumbnails are actually 180px high.
- *
- * .media_thumbnail img {
- *   max-height: 135px;
- * }
- */
+.entry_type_icon {
+  position: absolute;
+  top: 2px;
+  left: 2px;
+}
 
 .thumb_entry_last {
   margin-right: 0px;
@@ -499,7 +653,6 @@ a img.media_image {
   cursor: -moz-zoom-in;
   cursor: zoom-in;
 }
-
 /* icons */
 
 img.media_icon {
@@ -509,44 +662,49 @@ img.media_icon {
 
 /* EXIF information */
 
-#exif_content h3 {
-   border-bottom: 1px solid #333;
+#exif_content {
+  padding-bottom: 20px;
 }
 
 #exif_camera_information {
-   margin-bottom: 20px;
+  margin-bottom: 20px;
+  margin-left: 8px;
+}
+
+#exif_additional_info_button {
+  margin-left: 8px;
 }
 
 #exif_additional_info {
-   display: none;
+  display: none;
+  margin-left: 8px;
 }
 
 #exif_additional_info table {
-   font-size: 11px;
-   margin-top: 10px;
+  font-size: 11px;
+  margin-top: 10px;
 }
 
 #exif_additional_info td {
-   vertical-align: top;
-   padding-bottom: 5px;
+  vertical-align: top;
+  padding-bottom: 5px;
 }
 
 #exif_content .col1 {
-   padding-right: 20px;
+  padding-right: 20px;
 }
 
 #exif_additional_info table tr {
-   margin-bottom: 10px;
+  margin-bottom: 10px;
 }
 
 /* navigation */
 
 .navigation {
-       float: right;
 }
 
 .navigation_button {
-  width: 135px;
+  width: 48%;
   display: inline-block;
   text-align: center;
   background-color: #1d1d1d;
@@ -559,7 +717,7 @@ img.media_icon {
 }
 
 .navigation_left {
-  margin-right: 6px;
+  margin-right: 3px;
 }
 
 /* messages */
@@ -619,6 +777,42 @@ table.media_panel th {
   padding-bottom: 4px;
   text-align: left;
 }
+.thumb-overlay-status {
+  position: absolute;
+  margin: auto;
+  top: 0; bottom: 0; left: 0; right: 0;
+  width: 180px;
+  height: 20px;
+  display: inline;
+  text-align: center;
+  background-color: rgba(255, 255, 255, 0.8);
+}
+
+.thumb-processing {
+  color: black;
+  font-weight: bold;
+}
+
+.thumb-failed {
+  color: red;
+  font-weight: bold;
+}
+
+.thumb-wrapper {
+  position: relative;
+/* for proportional thumb resizing */
+  width: auto;
+  height: auto;
+  display: inline-block;
+}
+
+.thumb-wrapper img {
+  max-height: 180px;
+  max-width: 180px;
+}
+.media_panel td {
+  vertical-align: middle;
+}
 
 /* moderator panels */
 
@@ -627,7 +821,8 @@ table.admin_panel {
 }
 
 table.admin_side_panel {
-  width: 60%
+  width: 90%;
+  margin-bottom: 10px;
 }
 
 table.admin_panel th, table.admin_side_panel th {
@@ -708,24 +903,16 @@ pre {
 }
 
 /* Media queries and other responsivisivity */
-@media screen and (max-width: 940px) {
-  .media_pane {
-    width: 100%;
-    margin: 0px;
-  }
-  
-  .media_sidebar {
-         width: 100%;
-         margin: 0px;
-       }
-       
+/* initial GMG max 940 */
+@media screen and (max-width: 960px) {
+
   img.media_image {
-    width: 100%;
-    display: inline;
+    max-width: 100%;
+/*    display: inline;*/
   }
 
   .media_thumbnail {
-    width: 21%;
+/*    width: 21%;*/
   }
 
   .profile_sidebar {
@@ -738,26 +925,11 @@ pre {
     margin: 0px;
   }
 
-       .navigation {
-         float: none;
-       }
-
-       .navigation_button {
-         width: 49%;
-               float: right;
-       }
-
-       .navigation_left {
-         margin-right: 0;
-         float: left;
-  }
-  
   .navigation {
     float: none;
   }
   
   .navigation_button {
-    width: 49%;
     float: right;
     padding: 10px 0 14px;
   }
@@ -768,64 +940,135 @@ pre {
   }
   
   .button_action, .button_action_highlight, .button_form { 
-    padding: 9px 14px;
+    padding: 5px 14px;
+    margin-bottom: 0.5em;
   }
-  
+    
+}
+/* desktop resolutions */
+@media screen and (min-width: 960px) {
+  .container .three.columns.media_thumbnail {
+    width:180px;
+    margin-left:3px;
+    margin-right:3px;
+  }
+  #thingy_view {
+    width:640px;
+    height:640px;
+  }
+}
+
+/* Tablet Portrait size to standard 960 (devices and browsers) */
+@media only screen and (min-width: 768px) and (max-width: 959px) {
+  .container .three.columns.media_thumbnail {
+    width:147px;
+    margin-left:2px;
+    margin-right:2px;
+  }
+  .media_thumbnail.thumb_entry img {
+    max-width:100%;
+  }
+  .thumb_gallery {
+    margin-left: 0;
+    margin-right: 0;
+  }
+  .navigation_button {
+  }
+  #thingy_view {
+    width:508px;
+    height:508px;
+  }
+}
+
+/* All Mobile Sizes (devices and browser) */
+@media screen and (max-width: 767px) {
+  .thumb_row {
+    margin-bottom: 0;
+  }
+  .thumb_gallery {
+    margin-left: 0;
+    margin-right: 0;
+  }
+  h1,h2,h3,p {
+    margin-bottom: 10px !important;
+  }
+
   header {
     text-align: center;
   }
-  
+
   .header_right {
-    margin-right: 2%;
+    text-align: center;
+  }
+
+  .welcomeimage {
     float: none;
+    display: inherit;
+    margin-left: auto;
+    margin-right: auto;
+    margin-top: 1em;
   }
-  
-  a.logo {
-    margin-left: 2%;
+
+  .media_sidebar {
+    border-left: none;
+    padding-left: 0;
+    padding-top: 1em;
+    margin-top: 1em;
   }
-}
 
-@media screen and (max-width: 570px) {
-  .media_thumbnail {
-    width: 29%;
+  .media_comments {
+    border-bottom: 1px solid #333333;
   }
 }
 
-@media screen and (max-width: 380px) {
-  .media_thumbnail {
-    width: 46%;
+/* Mobile Landscape Size to Tablet Portrait (devices and browsers) */
+@media only screen and (min-width: 480px) and (max-width: 767px) {
+  #thingy_view {
+    width:420px;
+    height:420px;
   }
 }
 
-/* Exif display */
-#exif_content h3 {
-   border-bottom: 1px solid #333;
+/* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */
+@media only screen and (max-width: 479px) {
+  #thingy_view {
+    width:300px;
+    height:300px;
+  }
 }
-#exif_camera_information {
-   margin-bottom: 20px;
+
+p.verifier {
+    text-align:center;
+    font-size:50px;
+    none repeat scroll 0% 0% rgb(221, 221, 221);
+    padding: 1em 0px;
 }
 
-#exif_additional_info {
-   display: none;
+/* for the media metadata editing table */
+table.metadata_editor {
+    margin: 10px auto;
+    width: 800px;
 }
-#exif_additional_info table {
-   font-size: 11px;
-   margin-top: 10px;
+
+table.metadata_editor tr td {
+    width:350px;
 }
-#exif_additional_info td {
-   vertical-align: top;
-   padding-bottom: 5px;
+table.metadata_editor tr td.form_field_input input {
+    width:350px;
 }
-#exif_content .col1 {
-   padding-right: 20px;
+
+.application {
+  min-height: 30px;
+  margin-left: 70px;
 }
-#exif_additional_info table tr {
-   margin-bottom: 10px;
+
+.application-icon {
+  position: absolute;
+  left: 12px;
+  width: 50px;
+  height: 50px;
 }
 
-p.verifier {
-    text-align:center;
-    font-size:50px;
-    none repeat scroll 0% 0% rgb(221, 221, 221);
-    padding: 1em 0px;
+.application-button {
+  float: right;
 }