Advertisement
Guest User

Responsive NYT Homepage

a guest
Jan 30th, 2018
425
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.17 KB | None | 0 0
  1. /* Fixing up the NYT Homepage */
  2.  
  3. .shell {
  4.     max-width: 100em;
  5.     width: 98vw;
  6.     margin: 0 auto;
  7. }
  8.  
  9. .masthead.theme-in-content .masthead-meta, .masthead.theme-in-content .masthead-cap {
  10.     display: block !important;
  11. }
  12.  
  13. .column {
  14.     width: auto;
  15.     float: left;
  16.     margin-left: 0;
  17.     padding-left: 1em;
  18.     _background: red;
  19. }
  20.  
  21. .split-layout {
  22.     column-count: 2;
  23.     column-gap: 2em;
  24.     column-rule: solid 1px #ccc;
  25. }
  26.  
  27. .split-layout .column {
  28.     break-inside: avoid;
  29. }
  30.  
  31. .span-ab-layout .c-column {
  32.     width: 33%;
  33.     float: left;
  34.     _background-color: #cff;
  35. }
  36.  
  37. .span-ab-layout .ab-column {
  38.     width: 60%;
  39.     margin-right: 0;
  40.     border-right: solid 1px #ccc;
  41.     _background-color: #fcc;
  42. }
  43.  
  44.  .span-ab-layout .ab-column .split-3-layout .column {
  45.      border: none;
  46. }
  47.  
  48. .wide-b-layout .a-column {
  49.     width: 32%;
  50.     margin: 0;
  51.     padding-right: 1%;
  52.     border-right: solid 1px #ccc;
  53.     _background-color: #fcf;
  54. }
  55.  
  56. .wide-b-layout .b-column {
  57.     width: calc( 100% - 33% - 3em );
  58.     float: left;
  59.     _background-color: #ffc;
  60. }
  61.  
  62. .story.theme-feature .media.photo {
  63.     width: auto;
  64. }
  65.  
  66. .layout {
  67.     background-image: none !important;
  68. }
  69.  
  70. .portal-container {
  71.     width: auto;
  72. }
  73.  
  74. .synced.portal-container .portal-posts-frame {
  75.     height: 126em !important;
  76. }
  77.  
  78. .inside-nyt {
  79.     width: 98vw;
  80. }
  81.  
  82. .split-3-layout .column {
  83.     height: auto !important;
  84. }
  85.  
  86. .top-news .split-3-layout{
  87.     column-count: 3;
  88.     column-gap: 1em;
  89.     column-rule: solid 1px #ccc;
  90.     padding-right: 1em;
  91.     _background: #fcc;
  92.     height: 16em !important;
  93. }
  94.  
  95. .top-news .split-3-layout .column {
  96.     height: 16em !important;
  97. }
  98.  
  99. .nythpSmarterLiving article {
  100.     width: 45%;
  101. }
  102.  
  103. .nythpSmarterLiving .story.theme-summary .story-heading {
  104.     width: calc( 100% - 85px );
  105. }
  106.  
  107. /* Video spinner */
  108. .video-section .b-column {
  109.     width: calc( 100% - 820px );
  110. }
  111.  
  112. .video-section .b-column:before,
  113. .video-section .b-column:after {
  114.     content: none;
  115. }
  116.  
  117. .video-section .video-playlist {
  118.     width: auto;
  119. }
  120.  
  121. .video-section .video-playlist-container {
  122.     width: auto;
  123. }
  124.  
  125. .video-section .video-playlist li {
  126.     display: block;
  127.     float: left;
  128.     height: 11em;
  129.     width: 150px;
  130.     padding-left: 16px;
  131. }
  132.  
  133. .well .split-3-layout {
  134.     column-count: 3;
  135.     column-gap: 1em;
  136.     column-rule: solid 1px #ccc;
  137.     padding-right: 1em;
  138. }
  139.  
  140. .well .split-3-layout .column {
  141.     display: block;
  142.     width: auto;
  143.     break-inside: avoid;
  144.     border: none !important;
  145. }
  146.  
  147. .recommendations ol li .story-body {
  148.     width: calc( 100% - 50px );
  149. }
  150.  
  151. .site-index {
  152.     width: 90%;
  153.     margin-left: auto;
  154.     margin-right: auto;
  155. }
  156.  
  157. .site-index .split-6-layout .column {
  158.     width: calc( 98% / 6 );
  159. }
  160.  
  161. .split-layout .column, .split-3-layout .column {
  162.     margin-left: 0;
  163. }
  164.  
  165.  
  166. /* Fonts */
  167. .story.theme-summary .summary {
  168.     font-size: 1rem;
  169. }
  170.  
  171. .portal-container .portal-post header, .portal-container .portal-post .post-content b,
  172. .portal-container .portal-post header, .portal-container .portal-post p, .portal-container .portal-post li, .portal-container .portal-post footer {
  173.     font-size: 0.8rem;
  174.     line-height: 1.2;
  175. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement