Skip to content

Commit e84672d

Browse files
MariattaJacobCoffee
authored andcommitted
issue #985
fix issue with role attributes
1 parent e89f46d commit e84672d

File tree

10 files changed

+80
-74
lines changed

10 files changed

+80
-74
lines changed

pydotorg/settings/pipeline.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
),
2020
'output_filename': 'stylesheets/mq.css',
2121
'extra_context': {
22-
'media': 'not print, braille, embossed, speech, tty',
22+
'media': 'not print, speech',
2323
},
2424
},
2525
'no-mq': {

static/sass/style.css

+49-47
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
color: #4d4d4d !important;
191191
font-weight: normal;
192192
margin-bottom: 0.4375em;
193-
padding: .4em .75em .35em;
193+
padding: 0.4em 0.75em 0.35em;
194194
text-align: left;
195195
white-space: nowrap;
196196
text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.3);
@@ -350,6 +350,8 @@ button[type=submit], .search-button, #dive-into-python .flex-control-paging a, .
350350
display: block;
351351
color: #999;
352352
padding: .5em .75em .4em;
353+
color: #999999;
354+
padding: 0.5em 0.75em 0.4em;
353355
border: 1px solid #caccce;
354356
background-color: transparent; }
355357

@@ -405,7 +407,7 @@ form, .header-banner, .success-stories-widget .quote-from {
405407
.slides,
406408
.flex-control-nav,
407409
.flex-direction-nav {margin: 0; padding: 0; list-style: none;} */
408-
/* FlexSlider Necessary Styles
410+
/* FlexSlider Necessary Styles
409411
.flexslider {margin: 0; padding: 0;}
410412
.flexslider .slides > li {display: none; -webkit-backface-visibility: hidden;} /* Hide the slides before the JS is loaded. Avoids image jumping
411413
.flexslider .slides img {width: 100%; display: block;}
@@ -497,8 +499,8 @@ ins {
497499

498500
mark {
499501
display: inline-block;
500-
padding: 0 .25em;
501-
margin: 0 -.125em;
502+
padding: 0 0.25em;
503+
margin: 0 -0.125em;
502504
background-color: #ffb;
503505
/* light yellow */ }
504506

@@ -597,7 +599,7 @@ sub {
597599
bottom: -0.25em; }
598600

599601
pre, code, kbd, samp, var {
600-
font-family: Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; }
602+
font-family: Consolas, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; }
601603

602604
pre {
603605
/* Get spaces to display for PRE tags but dont let long lines break out of containers */
@@ -1033,7 +1035,7 @@ h2.not-column {
10331035
color: #999;
10341036
background: transparent;
10351037
text-align: center;
1036-
padding: .5em .75em .4em;
1038+
padding: 0.5em 0.75em 0.4em;
10371039
font-size: 1em;
10381040
line-height: 1.75em;
10391041
/* no fallback for .no-generatedcontent. This is a progressive enhancement */ }
@@ -1082,10 +1084,10 @@ h2.not-column {
10821084
/* Used in both the main-header and the header-banner */
10831085
.main-header {
10841086
border-top: 1px solid #191919;
1085-
border-bottom: 1px solid #444; }
1087+
border-bottom: 1px solid #444444; }
10861088
.main-header .container {
10871089
text-align: center;
1088-
padding: .75em 1em; }
1090+
padding: 0.75em 1em; }
10891091

10901092
/*h1*/
10911093
.site-headline {
@@ -1181,15 +1183,15 @@ input#s,
11811183
.menu-icon {
11821184
display: inline-block;
11831185
font-size: 1.25em;
1184-
margin: -.125em -.125em 0 0; }
1186+
margin: -0.125em -0.125em 0 0; }
11851187

11861188
/*form*/
11871189
.search-the-site {
11881190
text-align: left;
1189-
padding: .35em .2em .3em; }
1191+
padding: 0.35em 0.2em 0.3em; }
11901192
.search-the-site .icon-search:before {
11911193
font-size: 1.75em;
1192-
margin: 0 .125em 0 .25em; }
1194+
margin: 0 0.125em 0 0.25em; }
11931195
.search-the-site .no-touch {
11941196
border-left: 0; }
11951197

@@ -1200,8 +1202,8 @@ input#s,
12001202
color: #bbb;
12011203
background-color: transparent;
12021204
border: none;
1203-
margin: .125em 0;
1204-
padding: .4em 0 .3em;
1205+
margin: 0.125em 0;
1206+
padding: 0.4em 0 0.3em;
12051207
-moz-border-radius: 0px;
12061208
-webkit-border-radius: 0px;
12071209
border-radius: 0px; }
@@ -1214,7 +1216,7 @@ input#s,
12141216
.search-field:focus {
12151217
background-color: #fff;
12161218
color: #444;
1217-
padding: .4em .5em .3em;
1219+
padding: 0.4em 0.5em 0.3em;
12181220
/* removed this line because it was making the height fluctuate on focus:
12191221
@include pe-border( $color-top: darken( $darkerblue, 12% ), $color-bottom: lighten( $darkerblue, 8% ) ); */ }
12201222
.search-field:blur {
@@ -1277,7 +1279,7 @@ input#s,
12771279
.account-signin .tier-1 > a,
12781280
.account-signin .tier-2 > a {
12791281
display: block;
1280-
padding: .5em 1.5em .4em 1em;
1282+
padding: 0.5em 1.5em 0.4em 1em;
12811283
position: relative; }
12821284
.adjust-font-size .tier-1,
12831285
.winkwink-nudgenudge .tier-1,
@@ -1595,7 +1597,7 @@ input#s,
15951597
.adjust-font-size .tier-1 > a,
15961598
.winkwink-nudgenudge .tier-1 > a,
15971599
.account-signin .tier-1 > a {
1598-
padding: 1em 1em .875em; }
1600+
padding: 1em 1em 0.875em; }
15991601

16001602
/* ! ===== Main navigation – In _layout.scss and _mixins.scss, as we don't display it here ===== */
16011603
.main-navigation {
@@ -1862,7 +1864,7 @@ input#s,
18621864
.sidebar-widget form button,
18631865
.sidebar-widget form input[type=submit] {
18641866
font-size: 1.125em;
1865-
padding: .4em 1em .35em; }
1867+
padding: 0.4em 1em 0.35em; }
18661868
.text a:not(.button),
18671869
.sidebar-widget a:not(.button) {
18681870
display: inline;
@@ -1962,13 +1964,13 @@ input#s,
19621964
.sidebar-widget samp {
19631965
border-bottom: 1px solid #caccce;
19641966
background-color: #e6e8ea;
1965-
padding: .125em .375em 0;
1966-
margin: 0 .25em; }
1967+
padding: 0.125em 0.375em 0;
1968+
margin: 0 0.25em; }
19671969
.text code, .text kbd,
19681970
.sidebar-widget code,
19691971
.sidebar-widget kbd {
1970-
padding: .125em .375em 0;
1971-
margin: 0 -.0625em;
1972+
padding: 0.125em 0.375em 0;
1973+
margin: 0 -0.0625em;
19721974
background: #e6e8ea;
19731975
background: rgba(230, 232, 234, 0.5);
19741976
-moz-box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.1) inset;
@@ -2018,7 +2020,7 @@ table tr {
20182020
table tr:nth-of-type(even), table tr.even {
20192021
background-color: #f0f0f0; }
20202022
table th, table td {
2021-
padding: .25em .5em .2em;
2023+
padding: 0.25em 0.5em 0.2em;
20222024
border-left: 2px solid #fff; }
20232025
table th:first-child, table td:first-child {
20242026
border-left: none; }
@@ -2186,7 +2188,7 @@ table tfoot {
21862188
.success-stories-widget blockquote a:hover, .success-stories-widget blockquote a:focus, .success-stories-widget blockquote a:active {
21872189
color: #3776ab; }
21882190
.success-stories-widget .quote-from td {
2189-
padding: .5em;
2191+
padding: 0.5em;
21902192
vertical-align: middle; }
21912193
.success-stories-widget .quote-from img {
21922194
max-height: 5em; }
@@ -2225,7 +2227,7 @@ table tfoot {
22252227
.applications-widget ul {
22262228
border-top: 1px solid #caccce; }
22272229
.applications-widget li {
2228-
padding: .5em 0 .4em;
2230+
padding: 0.5em 0 0.4em;
22292231
border-bottom: 1px solid #caccce; }
22302232

22312233
.shrubbery {
@@ -2279,7 +2281,7 @@ table tfoot {
22792281
color: #3776ab;
22802282
background-color: #f2f4f6;
22812283
border-bottom: 1px solid #e6eaee;
2282-
padding: .6em .75em .5em; }
2284+
padding: 0.6em 0.75em 0.5em; }
22832285
.pep-list li a:hover, .pep-list li a:focus, .pep-list li a:active {
22842286
color: #222;
22852287
background-color: #fefefe; }
@@ -2324,7 +2326,7 @@ table tfoot {
23242326
color: #222; }
23252327

23262328
.pep-type, .pep-num, .pep-title, .pep-owner {
2327-
padding: .5em .5em .4em;
2329+
padding: 0.5em 0.5em 0.4em;
23282330
border-bottom: 1px solid #e3e7ec; }
23292331

23302332
.footnote .label {
@@ -2334,7 +2336,7 @@ table tfoot {
23342336
.info-key dt, .info-key dd {
23352337
display: block;
23362338
float: left;
2337-
padding: .5em .5em .4em; }
2339+
padding: 0.5em 0.5em 0.4em; }
23382340
.info-key dt {
23392341
width: 25%; }
23402342
.info-key dd {
@@ -2352,14 +2354,14 @@ table tfoot {
23522354
</li>
23532355
</ul> */
23542356
.pep-owner-header {
2355-
margin: 0 -.5em;
2357+
margin: 0 -0.5em;
23562358
overflow: hidden;
23572359
*zoom: 1; }
23582360
.pep-owner-header .label {
23592361
font-family: SourceSansProBold, Arial, sans-serif;
23602362
float: left;
23612363
width: 50%;
2362-
padding: .25em .5em .2em; }
2364+
padding: 0.25em 0.5em 0.2em; }
23632365

23642366
.pep-owner-list li {
23652367
background-color: #f2f4f6;
@@ -2371,7 +2373,7 @@ table tfoot {
23712373
.pep-owner-list .owner-name, .pep-owner-list .owner-email {
23722374
float: left;
23732375
width: 50%;
2374-
padding: .5em .5em .4em; }
2376+
padding: 0.5em 0.5em 0.4em; }
23752377

23762378
/* ! ===== Success Stories landing page ===== */
23772379
.featured-success-story {
@@ -2498,7 +2500,7 @@ p.quote-by-organization {
24982500
/* resets as this is an H3 element and it behaves differently */
24992501
margin-top: .75em;
25002502
margin-bottom: 1.25em;
2501-
padding: .5em .75em; }
2503+
padding: 0.5em 0.75em; }
25022504

25032505
.event-description {
25042506
padding: 1.3125em 0; }
@@ -2519,7 +2521,7 @@ p.quote-by-organization {
25192521
-moz-border-radius: 0 0 8px 8px;
25202522
-webkit-border-radius: 0;
25212523
border-radius: 0 0 8px 8px;
2522-
padding: .75em 1em; }
2524+
padding: 0.75em 1em; }
25232525

25242526
/*ul*/
25252527
.twitter-stream li {
@@ -2550,7 +2552,7 @@ p.quote-by-organization {
25502552
color: #666;
25512553
font-size: 0.875em;
25522554
vertical-align: baseline;
2553-
padding: .2em .4em .1em;
2555+
padding: 0.2em 0.4em 0.1em;
25542556
background-color: #e6e8ea;
25552557
border-top: 1px solid #f2f4f6;
25562558
border-bottom: 1px solid #caccce; }
@@ -2573,13 +2575,13 @@ p.quote-by-organization {
25732575
/* ! ===== Stylized lists of items, used on Downloads and others ===== */
25742576
.list-row-headings {
25752577
font-family: SourceSansProBold, Arial, sans-serif;
2576-
padding: .5em .5em .4em .75em;
2578+
padding: 0.5em 0.5em 0.4em 0.75em;
25772579
margin-right: 1.25em; }
25782580

25792581
.list-row-container {
25802582
border: 1px solid #caccce; }
25812583
.list-row-container li {
2582-
padding: .5em .5em .4em .75em;
2584+
padding: 0.5em 0.5em 0.4em 0.75em;
25832585
margin-right: 0; }
25842586
.list-row-container li:nth-child(odd) {
25852587
background-color: #f2f4f6; }
@@ -2644,7 +2646,7 @@ p.quote-by-organization {
26442646
.previous-next .prev-button,
26452647
.previous-next .next-button {
26462648
display: block;
2647-
padding: .5em .75em .4em;
2649+
padding: 0.5em 0.75em 0.4em;
26482650
margin-bottom: 0.875em; }
26492651
.previous-next .prev-button:not(.disabled):hover, .previous-next .prev-button:not(.disabled):focus,
26502652
.previous-next .next-button:not(.disabled):hover,
@@ -2728,7 +2730,7 @@ p.quote-by-organization {
27282730
<p role="alert">Can’t find what you’re looking for? <a href="#">Try our comprehensive Help section</a></p>
27292731
</div>*/
27302732
.user-feedback {
2731-
padding: .75em 1em .65em;
2733+
padding: 0.75em 1em 0.65em;
27322734
margin-bottom: 1.3125em;
27332735
-moz-border-radius: 6px;
27342736
-webkit-border-radius: 6px;
@@ -2789,7 +2791,7 @@ p.quote-by-organization {
27892791
font-size: 0.58333em;
27902792
text-transform: uppercase;
27912793
letter-spacing: .0625em;
2792-
padding: .45em .5em 0;
2794+
padding: 0.45em 0.5em 0;
27932795
margin-right: .25em; }
27942796
.listing-company .listing-removed {
27952797
display: inline-block;
@@ -2832,7 +2834,7 @@ p.quote-by-organization {
28322834

28332835
/* ! ===== Inner pages ===== */
28342836
.breadcrumbs {
2835-
padding: .5em 0;
2837+
padding: 0.5em 0;
28362838
border-bottom: 1px solid #caccce; }
28372839
.breadcrumbs li {
28382840
display: -moz-inline-stack;
@@ -2856,7 +2858,7 @@ p.quote-by-organization {
28562858

28572859
.section-nav a {
28582860
display: block;
2859-
padding: .3em 0 .2em; }
2861+
padding: 0.3em 0 0.2em; }
28602862

28612863
.psf-sidebar-widget {
28622864
color: #f2f4f6;
@@ -2930,7 +2932,7 @@ p.quote-by-organization {
29302932

29312933
.psf-codeofconduct {
29322934
font-size: 0.875em;
2933-
padding: .5em 1em;
2935+
padding: 0.5em 1em;
29342936
margin-bottom: 1em;
29352937
background-color: #fff;
29362938
-moz-box-shadow: 0.25em 0.25em 0.75em rgba(0, 0, 0, 0.15);
@@ -2957,23 +2959,23 @@ p.quote-by-organization {
29572959
.main-footer .jump-link, .sitemap a, .footer-links a {
29582960
display: block;
29592961
text-align: center;
2960-
padding: .5em .75em .4em; }
2962+
padding: 0.5em 0.75em 0.4em; }
29612963

29622964
.main-footer {
29632965
clear: both;
29642966
color: #666;
29652967
background-color: #e6e8ea;
29662968
border-top: 1px solid #d8dbde; }
29672969
.main-footer .container {
2968-
padding: 0 .75em .75em; }
2970+
padding: 0 0.75em 0.75em; }
29692971
.main-footer a {
29702972
color: #666; }
29712973
.main-footer a:hover, .main-footer a:focus {
29722974
color: #444; }
29732975
.main-footer .jump-link {
29742976
background-color: #e0e3e5; }
29752977
.main-footer a.jump-link {
2976-
margin: .75em 0;
2978+
margin: 0.75em 0;
29772979
border-top: 1px solid #e6e8ea;
29782980
border-bottom: 1px solid #dbdee1; }
29792981
.main-footer a.jump-link:hover, .main-footer a.jump-link:focus {
@@ -2987,7 +2989,7 @@ p.quote-by-organization {
29872989
margin-bottom: 1.3125em; }
29882990
.sitemap .tier-1 > a {
29892991
color: #3776ab;
2990-
padding: .4em .5em .3em;
2992+
padding: 0.4em 0.5em 0.3em;
29912993
font-family: Flux-Bold, SourceSansProBold, Arial, sans-serif;
29922994
font-size: 1.25em;
29932995
margin-top: 0.875em;
@@ -3184,7 +3186,7 @@ span.highlighted {
31843186
background-color: #fff; }
31853187
.touch .flex-control-nav a {
31863188
/* Larger touch target */
3187-
padding: .5em .75em; }
3189+
padding: 0.5em 0.75em; }
31883190

31893191
/*<ul class="flex-direction-nav">
31903192
<li>
@@ -3236,7 +3238,7 @@ span.highlighted {
32363238
display: none; } }
32373239
/* ! ==== No JS warning message... more of a suggestion, really ==== */
32383240
#nojs, #oldie-warning {
3239-
padding: .75em .75em .65em;
3241+
padding: 0.75em 0.75em 0.65em;
32403242
text-align: center;
32413243
background-color: #c33; }
32423244
#nojs p, #oldie-warning p {

0 commit comments

Comments
 (0)