Sfoglia il codice sorgente

table price styles

alexlcdee 8 anni fa
parent
commit
e8418a981a
3 ha cambiato i file con 29 aggiunte e 24 eliminazioni
  1. 7 20
      src/files/css/main.css
  2. 0 0
      src/files/css/main.css.map
  3. 22 4
      src/files/scss/_tags.scss

+ 7 - 20
src/files/css/main.css

@@ -8794,16 +8794,6 @@ footer .copyright .logo {
     padding: 17px 0 17px 12px;
     border: 1px solid #e6e6e6;
     text-align: left; }
-    .text-page__text table thead td:nth-child(1), .special-page__article table thead td:nth-child(1), .full-news__text table thead td:nth-child(1),
-    .text-page__text table th:nth-child(1),
-    .special-page__article table th:nth-child(1),
-    .full-news__text table th:nth-child(1) {
-      width: 19%; }
-    .text-page__text table thead td:nth-child(2), .special-page__article table thead td:nth-child(2), .full-news__text table thead td:nth-child(2),
-    .text-page__text table th:nth-child(2),
-    .special-page__article table th:nth-child(2),
-    .full-news__text table th:nth-child(2) {
-      width: 23%; }
   .text-page__text table tbody td, .special-page__article table tbody td, .full-news__text table tbody td,
   .text-page__text table td,
   .special-page__article table td,
@@ -8814,16 +8804,13 @@ footer .copyright .logo {
     line-height: 1.714;
     border: 1px solid #e6e6e6;
     vertical-align: top; }
-    .text-page__text table tbody td:nth-child(1), .special-page__article table tbody td:nth-child(1), .full-news__text table tbody td:nth-child(1),
-    .text-page__text table td:nth-child(1),
-    .special-page__article table td:nth-child(1),
-    .full-news__text table td:nth-child(1) {
-      width: 13%; }
-    .text-page__text table tbody td:nth-child(2), .special-page__article table tbody td:nth-child(2), .full-news__text table tbody td:nth-child(2),
-    .text-page__text table td:nth-child(2),
-    .special-page__article table td:nth-child(2),
-    .full-news__text table td:nth-child(2) {
-      width: 23%; }
+  .text-page__text table p, .special-page__article table p, .full-news__text table p, .text-page__text table h1, .special-page__article table h1, .full-news__text table h1, .text-page__text table h2, .special-page__article table h2, .full-news__text table h2, .text-page__text table h3, .special-page__article table h3, .full-news__text table h3, .text-page__text table h4, .special-page__article table h4, .full-news__text table h4, .text-page__text table h5, .special-page__article table h5, .full-news__text table h5, .text-page__text table h6, .special-page__article table h6, .full-news__text table h6 {
+    margin: 0;
+    padding: 0; }
+  .text-page__text table.table-price th:nth-child(1), .special-page__article table.table-price th:nth-child(1), .full-news__text table.table-price th:nth-child(1), .text-page__text table.table-price td:nth-child(1), .special-page__article table.table-price td:nth-child(1), .full-news__text table.table-price td:nth-child(1) {
+    width: 70%; }
+  .text-page__text table.table-price th:nth-child(2), .special-page__article table.table-price th:nth-child(2), .full-news__text table.table-price th:nth-child(2), .text-page__text table.table-price td:nth-child(2), .special-page__article table.table-price td:nth-child(2), .full-news__text table.table-price td:nth-child(2) {
+    width: 30%; }
 
 .text-page__text blockquote, .special-page__article blockquote, .full-news__text blockquote {
   padding: 5px 25px 5px 60px;

File diff suppressed because it is too large
+ 0 - 0
src/files/css/main.css.map


+ 22 - 4
src/files/scss/_tags.scss

@@ -107,11 +107,11 @@
         text-align: left;
 
         &:nth-child(1) {
-            width: 19%;
+            //width: 19%;
         }
 
         &:nth-child(2) {
-            width: 23%;
+            //width: 23%;
         }
     }
 
@@ -125,11 +125,29 @@
         vertical-align: top;
 
         &:nth-child(1) {
-            width: 13%;
+            //width: 13%;
         }
 
         &:nth-child(2) {
-            width: 23%;
+            //width: 23%;
+        }
+    }
+
+    // Remove paragraphs and headings from table content
+    p, h1, h2, h3, h4, h5, h6 {
+        margin: 0;
+        padding: 0;
+    }
+
+    &.table-price {
+        // Assume table with class "price" is two-col table with "name"=>"price" structure
+        th, td {
+            &:nth-child(1) {
+                width: 70%;
+            }
+            &:nth-child(2) {
+                width: 30%;
+            }
         }
     }
 }

Some files were not shown because too many files changed in this diff