Skip to content

Commit 76a81e8

Browse files
committed
fixup! style the new content separately to avoid circular deps
1 parent 65cc0d1 commit 76a81e8

File tree

1 file changed

+49
-17
lines changed

1 file changed

+49
-17
lines changed

themes/jquery.com/style.css

+49-17
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ a,
5454
transform: rotate(6.28rad);
5555
}
5656

57-
.download-options,
58-
.download-help {
57+
#banner-secondary .download-main .download-options {
5958
margin-top: 1em;
6059
}
6160
#banner-secondary .download-options a {
@@ -71,39 +70,72 @@ a,
7170
#banner-secondary .download-main .button:hover {
7271
box-shadow: 0 0 25px rgba(209, 143, 79, 0.9);
7372
}
74-
#content #banner-secondary .download-main .download {
73+
#content #banner-secondary .download-main > a {
74+
display: block;
75+
padding: 0 0 .5em 0;
76+
font-size: 2em;
77+
width: 100%;
78+
text-align: center;
79+
text-decoration: none;
80+
line-height: 0.8em;
81+
}
82+
#content #banner-secondary .download-main > a span {
83+
display: block;
84+
font-size: 0.6em;
85+
}
86+
#content #banner-secondary .download-main > a span.download {
87+
background: url('i/download.png') 0 0;
88+
width: 44px;
89+
height: 37px;
90+
position: relative;
91+
top: 1em;
92+
display: inline-block;
93+
margin-right: 0.5em;
94+
}
95+
#content #banner-secondary .download-main .support-notice {
96+
font-size: 12px;
97+
}
98+
99+
/* New download button */
100+
#banner-secondary > .download {
75101
display: flex;
102+
flex-direction: column;
103+
align-items: flex-start;
104+
margin-bottom: 1em;
105+
}
106+
.download-button-content {
107+
display: flex;
108+
flex-direction: row;
76109
align-items: center;
77-
text-align: center;
78110
gap: 0.5em;
79-
padding: 0.5em 1em;
80-
margin-bottom: 0.5em;
81-
font-size: 1.5em;
82-
width: 100%;
83-
text-decoration: none;
84-
line-height: 1;
85111
}
86-
#content #banner-secondary .download-main > a .download-icon {
87-
background: url('i/download.png') no-repeat 0 0 / 100% 100%;
112+
.download-button-content .download-icon {
113+
background: url('i/download.png') no-repeat 0 5px / 100% 100%;
88114
width: 35px;
89115
height: 35px;
90-
position: relative;
91116
display: inline-block;
92117
flex-shrink: 0;
93118
}
94-
#content #banner-secondary .download-main > a .download-message {
119+
.download-button-content .download-message {
120+
flex-grow: 1;
95121
display: flex;
96122
flex-direction: column;
97123
align-items: center;
98-
flex-grow: 1;
124+
text-align: center;
99125
gap: 0.25em;
100126
}
101-
#content #banner-secondary .download-main > a .download-version {
127+
.download-button-content .download-message .download-version {
102128
font-size: 0.7em;
103129
}
104-
#content #banner-secondary .download-main .support-notice {
130+
.download-options .support-notice {
131+
margin: 0.5em 0;
105132
color: #ccc;
106133
}
134+
@media only screen and (max-width: 767px) {
135+
#banner-secondary .download {
136+
align-items: center;
137+
}
138+
}
107139

108140
.resources {
109141
padding-left: 60px;

0 commit comments

Comments
 (0)