Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: static/css/index.css

Issue 29720653: Fixes #30 - Adjustments to hero unit section of index page (Closed) Base URL: https://hg.adblockplus.org/web.adblockplus.org
Patch Set: Addressed #13 & #14 Created March 14, 2018, 2:51 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « includes/hero-download.html ('k') | static/css/main.css » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /****************************************************************************** 1 /******************************************************************************
2 * Temparary styles 2 * Temparary styles
3 *****************************************************************************/ 3 *****************************************************************************/
4 4
5 .avoid-wrap {display: inline-block;} 5 .avoid-wrap {display: inline-block;}
6 .small {font-size: smaller;} 6 .small {font-size: smaller;}
7 .maxthon-only {display: none;} 7 .maxthon-only {display: none;}
8 .maxthon .maxthon-only {display: block;} 8 .maxthon .maxthon-only {display: block;}
9 9
10 #content,
11 #blog
12 {
13 padding-top: 5em;
14 }
15
16 /****************************************************************************** 10 /******************************************************************************
17 * #hero-download 11 * #hero-download
18 *****************************************************************************/ 12 *****************************************************************************/
19 13
20 #hero-download 14 #hero-download
21 { 15 {
22 padding-top: 2em; 16 padding: 3em 1em;
23 padding-bottom: 2em;
24 } 17 }
25 18
26 @media(min-width: 768px) 19 @media (min-width: 576px) and (max-width: 1023px)
20 {
21 /* add spacing left/right on tablets */
22 #hero-download
23 {
24 padding-left: 3em;
25 padding-right: 3em;
26 }
27 }
28
29 @media (max-width: 575px)
30 {
31 /* disable avoid-wrap inside h1 on mobile */
32 #hero-download h1 .avoid-wrap
33 {
34 display: inline;
35 }
36 }
37
38 @media (max-width: 1023px)
39 {
40 /* force hero unit columns to break on large tablets */
41 #hero-download .column
42 {
43 width: 100%;
44 }
45 }
46
47 @media (min-width: 1024px)
27 { 48 {
28 #hero-download 49 #hero-download
29 { 50 {
30 padding-top: 6em; 51 padding-top: 6em;
31 padding-bottom: 6em; 52 padding-bottom: 6em;
32 } 53 }
33 } 54 }
34 55
35 #hero-download h1 56 #hero-download h1
36 { 57 {
37 line-height: 1.1; 58 /* Spacing is provided by the hero-download section */
59 margin-top: 0;
60 }
61
62 @media (min-width: 576px)
63 {
64 /* force break without <br> on large screens */
65 #hero-download h1 .avoid-wrap:first-of-type
66 {
67 display: block;
68 }
38 } 69 }
39 70
40 #hero-download-tos 71 #hero-download-tos
41 { 72 {
42 font-size: 10px; 73 margin-bottom: 0.5em;
43 } 74 }
44 75
45 #hero-download-button 76 #hero-download-button
46 { 77 {
47 display: block; 78 display: inline-block;
79 min-width: 250px;
80 /* stretch full-width <= small tablets */
81 width: 100%;
82 /* 0.2em taller than normal buttons */
83 padding-top: 0.8em;
84 padding-bottom: 0.8em;
48 } 85 }
49 86
50 @media(min-width: 768px) 87 @media (min-width: 576px)
51 { 88 {
52 #hero-download-button 89 #hero-download-button
53 { 90 {
54 display: inline-block; 91 /* force auto-width >= small tablets */
55 min-width: 350px; 92 width: auto;
56 } 93 }
57 } 94 }
58 95
59 #hero-download-video 96 #hero-download-video
60 { 97 {
61 display: none; 98 /* add space above on phones & tablets */
99 margin-top: 2em;
100 /* prevent default full-width on small tablets */
101 max-width: 550px;
62 } 102 }
63 103
64 @media(min-width: 768px) 104 #hero-download-video
105 {
106 /* provide a little space between thumbnail and border + shadow */
107 padding: 1em 1em 0 1em;
108 }
109
110 @media (min-width: 1024px)
65 { 111 {
66 #hero-download-video 112 #hero-download-video
67 { 113 {
68 display: block; 114 /* keep aligned-top despite padding below */
115 margin-top: -1em;
69 } 116 }
70 } 117 }
71 118
119 #hero-download-video.has-iframe
120 {
121 /* remove space around thumbnail when thumbnail is replaced by video */
122 padding: 0;
123 }
124
125 /** Hide the video border + shadow only when the thumbnail alone is showing */
126 #hero-download-video.hide-disclaimer:not(.has-iframe)
127 {
128 border-color: transparent;
129 /* there is no box-shadow-color property :( */
130 box-shadow: 1px 1px 0 0 transparent;
131 }
132
133 /* The thumbnail is taller than the video. But it's hard to see because of the
134 * reflection and whitespace at the bottom. As a result, I am cutting out the
135 * whitespace and reflection when I show the disclaimer so that the section
136 * doesn't visibly resize when the thumbnail is replaced by the a iframe.
137 */
138
139
72 /****************************************************************************** 140 /******************************************************************************
73 * #media 141 * #media
74 *****************************************************************************/ 142 *****************************************************************************/
75 143
76 #media-section 144 #media-section
77 { 145 {
78 clear: both; 146 clear: both;
79 text-align: center; 147 text-align: center;
80 } 148 }
81 149
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 * #footnote 300 * #footnote
233 *****************************************************************************/ 301 *****************************************************************************/
234 302
235 #footnote 303 #footnote
236 { 304 {
237 padding-top: 3em; 305 padding-top: 3em;
238 padding-bottom: 2em; 306 padding-bottom: 2em;
239 font-size: 13px; 307 font-size: 13px;
240 color: #7d7d7d; 308 color: #7d7d7d;
241 } 309 }
OLDNEW
« no previous file with comments | « includes/hero-download.html ('k') | static/css/main.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld