1. Adolfo De Unánue
  2. ObservatorioUCCS

Commits

Ernesto De Unánue  committed be11418

CSS en las tablas

  • Participants
  • Parent commits 81eef5d
  • Branches default

Comments (0)

Files changed (3)

File app/stylesheets/partials/_tables.scss

View file
+table{
+  width:100%;
+  margin-bottom:20px;
+}
+
+th {
+    font-weight:bold;
+}
+
+td,th {
+  padding:5px;
+}
+
+thead {
+  tr{
+    border-bottom:5px solid #555;
+  }
+}
+
+tbody tr:nth-of-type(odd){
+  background: #eee;
+}
+
+th {
+  .current {
+    padding-right: 20px;
+    background {
+      repeat: no-repeat;
+      position: right center;
+    }
+  }
+  .asc {
+    background-image: url(/images/16x16/up.png);
+  }
+  .desc {
+    background-image: url(/images/16x16/down.png);
+  }
+}
+
+#proyectos, #fuente_datos {
+    margin-top: 30px;
+    .col{
+        width:20%;
+    }
+
+    tbody tr:hover{
+        //font-weight:bold;
+        background: rgba(100, 100, 100, 0.2);
+        color: #555;
+        
+        //@include scale(1.02);
+        //@include single-box-shadow(0 0 5px #666);
+        //@include border-radius(5px);
+
+        a {
+//            color: $fuente-encabezado;
+//            text-decoration: none;
+        }
+            
+    }
+
+}
+
  

File app/stylesheets/style.scss

View file
 
 // Media should come last
 @import "partials/media";
+
+

File public/stylesheets/style.css

View file
   width: 250px;
 }
 
+/* line 1, ../../app/stylesheets/partials/_tables.scss */
+table {
+  width: 100%;
+  margin-bottom: 20px;
+}
+
+/* line 6, ../../app/stylesheets/partials/_tables.scss */
+th {
+  font-weight: bold;
+}
+
+/* line 10, ../../app/stylesheets/partials/_tables.scss */
+td, th {
+  padding: 5px;
+}
+
+/* line 15, ../../app/stylesheets/partials/_tables.scss */
+thead tr {
+  border-bottom: 5px solid #555;
+}
+
+/* line 20, ../../app/stylesheets/partials/_tables.scss */
+tbody tr:nth-of-type(odd) {
+  background: #eee;
+}
+
+/* line 25, ../../app/stylesheets/partials/_tables.scss */
+th .current {
+  padding-right: 20px;
+}
+/* line 27, ../../app/stylesheets/partials/_tables.scss */
+th .current background {
+  repeat: no-repeat;
+  position: right center;
+}
+/* line 32, ../../app/stylesheets/partials/_tables.scss */
+th .asc {
+  background-image: url(/images/16x16/up.png);
+}
+/* line 35, ../../app/stylesheets/partials/_tables.scss */
+th .desc {
+  background-image: url(/images/16x16/down.png);
+}
+
+/* line 40, ../../app/stylesheets/partials/_tables.scss */
+#proyectos, #fuente_datos {
+  margin-top: 30px;
+}
+/* line 42, ../../app/stylesheets/partials/_tables.scss */
+#proyectos .col, #fuente_datos .col {
+  width: 20%;
+}
+/* line 46, ../../app/stylesheets/partials/_tables.scss */
+#proyectos tbody tr:hover, #fuente_datos tbody tr:hover {
+  background: rgba(100, 100, 100, 0.2);
+  color: #555;
+}
+
 /* line 1, ../../app/stylesheets/partials/_images.scss */
 img[width='85'] {
   width: 85px;