Forgot to add these layout changes. Everything should work now.
[mediagoblin.git] / mediagoblin / static / css / base.css
index 0dadacd09199e5e7a130a49bbca6a39667a81218..0889baed09d70b6a7ead982c67981b5766ee74e3 100644 (file)
@@ -29,12 +29,10 @@ body {
   background-color: #111;
   background-image: url("../images/background.png");
   color: #C3C3C3;
-  font-family: sans-serif;
   padding: none;
   margin: 0px;
   height: 100%;
-  font: 16px "HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue",Helvetica,Arial,sans-serif;
-  font-family:'Lato', sans-serif;
+  font: 16px 'Lato', 'Helvetica Neue', Arial, 'Liberation Sans', FreeSans, sans-serif;
 }
 
 form {
@@ -44,24 +42,35 @@ form {
 
 /* text styles */
 
-h1{
-  margin-bottom: 15px;
+h1,h2,h3,p {
+  margin-bottom: 20px;
+}
+
+h1,h2,h3 {
+  font-weight: bold;
+}
+
+h1 {
   margin-top: 15px;
   color: #fff;
   font-size: 1.875em;
 }
 
-h2{
+h2 {
   font-size: 1.375em;
   margin-top: 20px;
   color: #fff;
 }
 
-h3{
+h3 {
   border-bottom: 1px solid #333;
   font-size: 1.125em;
 }
 
+p {
+  margin-top: 0px;
+}
+
 a {
   color: #86D4B1;
 }
@@ -70,6 +79,22 @@ a.highlight {
   color: #fff;
 }
 
+em {
+  font-style: italic;
+}
+
+strong {
+  font-weight: bold;
+}
+
+ul {
+  list-style: disc inside;
+}
+
+ol {
+  list-style: decimal inside;
+}
+
 label {
   font-weight: normal;
 }
@@ -81,138 +106,178 @@ input, textarea {
 
 /* website structure */
 
-.mediagoblin_body {
-  position: relative;
-  min-height: 100%;
+.container {
+  margin: auto;
+  width: 96%;
+  max-width: 820px;
 }
 
-.mediagoblin_header {
+header {
+  width: 100%;
   height: 36px;
   padding-top: 14px;
   margin-bottom: 20px;
   border-bottom: 1px solid #333;
 }
 
-a.mediagoblin_logo{
+.header_right {
+  float: right;
+}
+
+a.logo {
   color: #fff;
   font-weight: bold;
+  margin-right: 8px;
 }
 
-.header_submit, .header_submit_highlight{
-  color: #272727;
-  background-color: #aaa;
-  background-image: -webkit-gradient(linear, left top, left bottom, from(##D2D2D2), to(#aaa)); 
-  background-image: -webkit-linear-gradient(top, #D2D2D2, #aaa); 
-  background-image:    -moz-linear-gradient(top, #D2D2D2, #aaa); 
-  background-image:     -ms-linear-gradient(top, #D2D2D2, #aaa); 
-  background-image:      -o-linear-gradient(top, #D2D2D2, #aaa); 
-  background-image:         linear-gradient(top, #D2D2D2, #aaa);
-  box-shadow: 0px 0px 4px #000;
-  border-radius: 3px;
-  margin: 8px;
-  padding: 3px 8px;
-  text-decoration: none;
-  border: medium none;
-  font-style: normal;
-  font-weight: bold;
-  font-size: 1em;
+.logo img {
+  vertical-align: middle;
 }
 
-.header_submit_highlight{
-background-image: -moz-linear-gradient(center top , rgb(134, 212, 177), rgb(109, 173, 144));
+.mediagoblin_content {
+  width: 100%;
+  padding-bottom: 74px;
 }
 
-.mediagoblin_footer {
+footer {
+  width: 100%;
   height: 30px;
   border-top: 1px solid #333;
   bottom: 0px;
   padding-top: 8px;
   text-align: center;
   font-size: 0.875em;
+  clear: both;
 }
 
-.mediagoblin_content {
-  padding-bottom: 74px;
+.media_pane {
+  width: 560px;
+  margin-left: 0px;
+  margin-right: 10px;
+  float: left;  
 }
 
-.mediagoblin_header_right {
-  float: right;
+img.media_image {
+  width: 100%;
+}
+
+.media_sidebar {
+  width: 240px;
+  margin-left: 10px;
+  float: left;
+}
+
+.profile_sidebar {
+  width: 340px;
+  margin-right: 10px;
+  float: left;
+}
+
+.profile_showcase {
+  width: 580px;
+  margin-left: 10px;
+  float: left;
 }
 
 /* common website elements */
 
-.button, .cancel_link {
-  height: 32px;
-  min-width: 99px;
-  background-color: #86d4b1;
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#86d4b1), to(#62caa2)); 
-  background-image: -webkit-linear-gradient(top, #86d4b1, #62caa2); 
-  background-image:    -moz-linear-gradient(top, #86d4b1, #62caa2); 
-  background-image:     -ms-linear-gradient(top, #86d4b1, #62caa2); 
-  background-image:      -o-linear-gradient(top, #86d4b1, #62caa2); 
-  background-image:         linear-gradient(top, #86d4b1, #62caa2);
-  box-shadow: 0px 0px 4px #000;
-  border-radius: 3px;
-  border: none;
-  color: #272727;
-  margin: 10px 0px 10px 15px;
-  text-align: center;
-  padding-left: 11px;
-  padding-right: 11px;
+.button_action, .button_action_highlight, .button_form {
+  display: inline-block;
+  color: #c3c3c3;
+  background-color: #363636;
+  border: 1px solid;
+  border-color: #464646 #2B2B2B #252525;
+  border-radius: 4px;
+  padding: 3px 8px;
+  font-size: 16px;
   text-decoration: none;
-  font-family: 'Lato', sans-serif;
+  font-style: normal;
   font-weight: bold;
+  cursor: pointer;
 }
 
-.cancel_link {
-  background-color: #aaa;
-  background-image: -webkit-gradient(linear, left top, left bottom, from(##D2D2D2), to(#aaa)); 
-  background-image: -webkit-linear-gradient(top, #D2D2D2, #aaa); 
-  background-image:    -moz-linear-gradient(top, #D2D2D2, #aaa); 
-  background-image:     -ms-linear-gradient(top, #D2D2D2, #aaa); 
-  background-image:      -o-linear-gradient(top, #D2D2D2, #aaa); 
-  background-image:         linear-gradient(top, #D2D2D2, #aaa);
+.button_action_highlight, .button_form {
+  background-color: #86D4B1;
+  border-color: #A2DEC3 #6CAA8E #5C9179;
+  color: #283F35;
 }
 
-.pagination{
+.button_form {
+  min-width: 99px;
+  margin: 10px 0px 10px 15px;
+  text-align: center;
+  font-family: 'Lato', sans-serif;
+}
+
+.pagination {
 text-align: center;
 }
 
-.pagination_arrow{
+.pagination_arrow {
   margin: 5px;
 }
 
-.empty_space{
-  background-color: #222;
+.empty_space {
+  background-image: url("../images/empty_back.png");
   font-style: italic;
   text-align: center;
   height: 160px;
   padding-top: 70px;
 }
 
+.right_align {
+  float: right;
+}
+
+.clear {
+  clear: both;
+  display: block;
+  overflow: hidden;
+  visibility: hidden;
+  width: 0;
+  height: 0;
+}
+
+h3.sidedata {
+       border: none;
+       background-color: #212121;
+       border-radius: 4px 4px 0 0;
+       padding: 3px 8px;
+       margin: 20px 0 5px 0;
+       font-size: 1em;
+}
+
 /* forms */
 
-.form_box {
+.form_box,.form_box_xl {
   background-color: #222;
-  background-image: url("../images/background_lines.png");
-  background-repeat: repeat-x;
-  padding-bottom: 30px;
-  padding-top: 30px;
-  margin-left: auto;
-  margin-right: auto;
+  border-top: 6px solid #D49086;
+  padding: 3% 5%;
   display: block;
   float: none;
+  width: 90%;
+  max-width: 340px;
+  margin-left: auto;
+  margin-right: auto;
+}
+
+.form_box_xl {
+  max-width: 460px;
 }
 
 .edit_box {
-  background-image: url("../images/background_edit.png");
+  border-top: 6px dashed #D49086
 }
 
 .form_field_input input, .form_field_input textarea {
   width: 100%;
 }
 
-.form_field_label,.form_field_input {
+.form_field_input {
+  margin-bottom: 10px;
+}
+
+.form_field_label {
   margin-bottom: 4px;
 }
 
@@ -237,6 +302,15 @@ text-align: center;
   text-align: right;
 }
 
+#password_boolean {
+  margin-top: 4px;
+  width: 20px;
+}
+
+textarea#description, textarea#bio {
+  resize: vertical;
+}
+
 /* comments */
 
 .comment_author {
@@ -245,20 +319,38 @@ text-align: center;
   font-size: 0.9em;
 }
 
+.comment_content {
+  margin-bottom: 30px;
+}
+
 .comment_content p {
-  margin-bottom: 4px;
+  margin-bottom: 0px;
+}
+
+textarea#comment_content {
+  resize: vertical;
+  width: 100%;
+  height: 90px;
+  border: none;
+  background-color: #f1f1f1;
+  padding: 3px;
+}
+
+#form_comment .form_field_input {
+       padding-right: 6px;
 }
 
 /* media galleries */
 
 .media_thumbnail {
+  display: inline-block;
   padding: 0px;
   width: 180px;
   overflow: hidden;
-  float: left;
-  margin: 0px 4px 10px 4px;
+  margin: 0px 5px 10px 5px;
   text-align: center;
   font-size: 0.875em;
+  list-style: none;
 }
 
 .media_thumbnail a {
@@ -268,41 +360,59 @@ text-align: center;
 
 /* media detail */
 
-h2.media_title{
+h2.media_title {
   margin-bottom: 0px;
+  display: inline-block;
 }
 
-p.media_uploader{
+p.context {
+       display: inline-block;
+       padding-top: 4px;
+}
+
+p.media_specs {
   font-size: 0.9em;
+  border-top: 1px solid #222;
+  padding: 10px 0px;
+  color: #888;
+}
+
+.no_html5 {
+    background: black;
+    color: white;
+    text-align: center;
+    height: 160px;
+    padding: 130px 10px 20px 10px;
 }
 
 /* icons */
 
-img.media_icon{
+img.media_icon {
   margin: 0 4px;
   vertical-align: sub;
 }
 
 /* navigation */
 
-.navigation_button{
-  width: 139px;
-  display: block;
-  float: left;
-  text-align: center;
-  background-color: #222;
-  text-decoration: none;
-  padding: 12px 0pt;
-  font-size: 2em;
-  margin: 0 0 20px
+.navigation {
+       float: right;
 }
 
-p.navigation_button{
-  color: #272727;
+.navigation_button {
+  width: 135px;
+  display: inline-block;
+  text-align: center;
+  background-color: #1d1d1d;
+  border: 1px solid;
+  border-color: #2c2c2c #232323 #1a1a1a;
+  border-radius: 4px;
+  text-decoration: none;
+  padding: 4px 0 8px;
+  margin: 0 0 6px;
 }
 
-.navigation_left{
-  margin-right: 2px;
+.navigation_left {
+  margin-right: 6px;
 }
 
 /* messages */
@@ -310,6 +420,7 @@ p.navigation_button{
 ul.mediagoblin_messages {
   list-style: none inside;
   color: #f7f7f7;
+  padding: 0;
 }
 
 .mediagoblin_messages li {
@@ -368,3 +479,92 @@ table.media_panel th {
   margin-top: 10px;
   margin-left: 10px;
 }
+
+/* ASCII art */
+
+@font-face {
+  font-family: Inconsolata;
+  src: local('Inconsolata'), url('../fonts/Inconsolata.otf') format('opentype')
+}
+
+.ascii-wrapper pre {
+  font-family: Inconsolata, monospace;
+  line-height: 1em;
+}
+
+/* Media queries and other responsivisivity */
+@media screen and (max-width: 820px) {
+  .media_pane {
+    width: 100%;
+    margin: 0px;
+  }
+  
+  .media_sidebar {
+         width: 100%;
+         margin: 0px;
+       }
+       
+  img.media_image {
+    width: 100%;
+    display: inline;
+  }
+
+  .media_thumbnail {
+    width: 21%;
+  }
+
+  .profile_sidebar {
+    width: 100%;
+    margin: 0px;
+  }
+
+  .profile_showcase {
+    width: 100%;
+    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;
+  }
+  
+  .navigation_left {
+    margin-right: 0;
+    float: left;
+  }
+  
+  .button_action, .button_action_highlight, .button_form { 
+    padding: 9px 14px;
+  }
+}
+
+@media screen and (max-width: 570px) {
+  .media_thumbnail {
+    width: 29%;
+  }
+}
+
+@media screen and (max-width: 380px) {
+  .media_thumbnail {
+    width: 46%;
+  }
+}