 Issue 29693561:
  Noissue - Update font-family to Source Sans Pro on abp.org  (Closed) 
  Base URL: https://hg.adblockplus.org/web.adblockplus.org
    
  
    Issue 29693561:
  Noissue - Update font-family to Source Sans Pro on abp.org  (Closed) 
  Base URL: https://hg.adblockplus.org/web.adblockplus.org| Left: | ||
| Right: | 
| LEFT | RIGHT | 
|---|---|
| 1 @font-face | |
| 
saroyanm
2018/02/14 16:49:29
Question: How much effort it would be to include F
 
ire
2018/02/15 17:21:47
I think we would ideally want to have this font in
 
juliandoucette
2018/02/19 11:32:48
Acknowledged.
 | |
| 2 { | |
| 3 font-family: "Source Sans Pro"; | |
| 
saroyanm
2018/02/14 16:49:30
Suggestion/Note: Doesn't necessarily need to be in
 
ire
2018/02/15 17:21:46
From my tests (viewing the homepage in all the dif
 
juliandoucette
2018/02/19 11:32:48
I think that we can start with Latin only in main.
 | |
| 4 font-weight: 400; | |
| 5 font-style: normal; | |
| 6 src: local("Source Sans Pro"), | |
| 7 local("Source-Sans-Pro-400"), | |
| 8 url("../fonts/Source-Sans-Pro-400/Source-Sans-Pro-400.woff2") format("wof f2"), | |
| 9 url("../fonts/Source-Sans-Pro-400/Source-Sans-Pro-400.woff") format("woff "); | |
| 10 } | |
| 11 | |
| 12 @font-face | |
| 13 { | |
| 14 font-family: "Source Sans Pro"; | |
| 15 font-weight: 600; | |
| 16 font-style: normal; | |
| 17 src: local("Source Sans Pro Semibold"), | |
| 18 local("Source-Sans-Pro-600"), | |
| 19 url("../fonts/Source-Sans-Pro-600/Source-Sans-Pro-600.woff2") format("wof f2"), | |
| 20 url("../fonts/Source-Sans-Pro-600/Source-Sans-Pro-600.woff") format("woff "); | |
| 21 } | |
| 22 | |
| 23 body | 1 body | 
| 24 { | 2 { | 
| 25 font-family: "Source Sans Pro", Arial, sans-serif; | 3 font-family: "Source Sans Pro", Arial, sans-serif; | 
| 26 margin: 0; | 4 margin: 0; | 
| 27 } | 5 /* Start below fixed navbar */ | 
| 28 | 6 padding-top: 4em; | 
| 29 #content | 7 line-height: 1.5; | 
| 8 } | |
| 9 | |
| 10 #content, | |
| 11 #blog | |
| 30 { | 12 { | 
| 31 padding-bottom: 2em; | 13 padding-bottom: 2em; | 
| 32 } | 14 } | 
| 33 | 15 | 
| 34 a img | 16 a img | 
| 35 { | 17 { | 
| 36 border: none; | 18 border: none; | 
| 37 } | 19 } | 
| 38 | 20 | 
| 39 a:link, a:visited | 21 a:link, a:visited | 
| (...skipping 17 matching lines...) Expand all Loading... | |
| 57 padding: 1em; | 39 padding: 1em; | 
| 58 overflow: auto; | 40 overflow: auto; | 
| 59 } | 41 } | 
| 60 | 42 | 
| 61 .sprite | 43 .sprite | 
| 62 { | 44 { | 
| 63 display: inline-block; | 45 display: inline-block; | 
| 64 font-size: 0px; /* fix for IE6 height bug */ | 46 font-size: 0px; /* fix for IE6 height bug */ | 
| 65 background-image: url(../img/sprite-main.png); | 47 background-image: url(../img/sprite-main.png); | 
| 66 background-repeat: no-repeat; | 48 background-repeat: no-repeat; | 
| 67 } | |
| 68 | |
| 69 #adblock-browser-notification | |
| 70 { | |
| 71 text-align: center; | |
| 72 } | |
| 73 | |
| 74 #adblock-browser-notification a | |
| 75 { | |
| 76 font-weight: bold; | |
| 77 } | |
| 78 | |
| 79 #adblock-browser-notification img | |
| 80 { | |
| 81 vertical-align: bottom; | |
| 82 width: 25px; | |
| 83 height: 25px; | |
| 84 } | |
| 85 | |
| 86 #adblock-browser-notification span | |
| 87 { | |
| 88 white-space: nowrap; | |
| 89 margin-left: 1em; | |
| 90 } | |
| 91 | |
| 92 [dir="rtl"] #adblock-browser-notification span | |
| 93 { | |
| 94 margin-left: 0; | |
| 95 margin-right: 1em; | |
| 96 } | 49 } | 
| 97 | 50 | 
| 98 .toc | 51 .toc | 
| 99 { | 52 { | 
| 100 display: inline-block; | 53 display: inline-block; | 
| 101 border: 1px solid #aaa; | 54 border: 1px solid #aaa; | 
| 102 background: #fff; | 55 background: #fff; | 
| 103 padding: 16px 20px; | 56 padding: 16px 20px; | 
| 104 } | 57 } | 
| 105 | 58 | 
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 182 .section | 135 .section | 
| 183 { | 136 { | 
| 184 padding: 2em 0; | 137 padding: 2em 0; | 
| 185 } | 138 } | 
| 186 | 139 | 
| 187 /****************************************************************************** | 140 /****************************************************************************** | 
| 188 * .content | 141 * .content | 
| 189 *****************************************************************************/ | 142 *****************************************************************************/ | 
| 190 | 143 | 
| 191 .content h1, | 144 .content h1, | 
| 145 .content .h1, | |
| 192 .content h2, | 146 .content h2, | 
| 193 .content h3, | 147 .content h3, | 
| 194 .content h4, | 148 .content h4, | 
| 195 .content h5 | 149 .content h5 | 
| 196 { | 150 { | 
| 197 font-weight: bold; | 151 font-weight: bold; | 
| 198 margin: 32px 0 16px 0; | 152 margin: 32px 0 16px 0; | 
| 199 margin: 2rem 0 1rem 0; | 153 margin: 2rem 0 1rem 0; | 
| 200 } | 154 line-height: 1.4; | 
| 201 | 155 } | 
| 202 .content h1 { font-size: 1.8em; } | 156 | 
| 203 .content h2 { font-size: 1.4em; } | 157 .content h1, | 
| 204 .content h3 { font-size: 1.3em; } | 158 .content .h1 { font-size: 1.4em; } | 
| 205 .content h4 { font-size: 1.2em; } | 159 .content h2 { font-size: 1.3em; } | 
| 206 .content h5 { font-size: 1.1em; } | 160 .content h3 { font-size: 1.2em; } | 
| 161 .content h4 { font-size: 1.1em; } | |
| 162 .content h5 { font-size: 1em; } | |
| 163 | |
| 164 @media(min-width: 576px) | |
| 165 { | |
| 166 .content h1, | |
| 167 .content .h1 { font-size: 1.6em; } | |
| 168 .content h2 { font-size: 1.4em; } | |
| 169 .content h3 { font-size: 1.3em; } | |
| 170 .content h4 { font-size: 1.2em; } | |
| 171 .content h5 { font-size: 1.1em; } | |
| 172 } | |
| 207 | 173 | 
| 208 @media(min-width: 768px) | 174 @media(min-width: 768px) | 
| 209 { | 175 { | 
| 210 .content h1 { font-size: 2.4em; } | 176 .content h1, | 
| 177 .content .h1 | |
| 178 { | |
| 179 font-size: 2.4em; | |
| 180 line-height: 1.3; | |
| 181 } | |
| 182 | |
| 211 .content h2 { font-size: 1.6em; } | 183 .content h2 { font-size: 1.6em; } | 
| 212 } | 184 } | 
| 213 | 185 | 
| 214 .content a, | 186 .content a, | 
| 215 .content a:visited | 187 .content a:visited | 
| 216 { | 188 { | 
| 217 color: #c70d2c; | 189 color: #c70d2c; | 
| 218 } | 190 } | 
| 219 | 191 | 
| 220 /* Buttons | 192 /* Buttons | 
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 253 .button.primary:hover | 225 .button.primary:hover | 
| 254 { | 226 { | 
| 255 background-color: #E00F32; | 227 background-color: #E00F32; | 
| 256 } | 228 } | 
| 257 | 229 | 
| 258 .button.primary:active | 230 .button.primary:active | 
| 259 { | 231 { | 
| 260 background-color: #AD102A; | 232 background-color: #AD102A; | 
| 261 } | 233 } | 
| 262 | 234 | 
| 263 .button.inverse, | 235 .button.accent, | 
| 264 a.button.inverse | 236 .button.accent:visited | 
| 265 { | 237 { | 
| 266 background: none; | 238 background: #077CA6; | 
| 267 color: #fff; | 239 color: #fff; | 
| 268 margin-left: 2px; | 240 margin-left: 2px; | 
| 269 margin-right: 2px; | 241 margin-right: 2px; | 
| 270 border: 1px solid #fff; | 242 } | 
| 271 } | 243 | 
| 272 | 244 .button.accent:hover, | 
| 273 .button.inverse:hover, | 245 .button.accent:active, | 
| 274 .button.inverse:focus | 246 .button.accent:focus | 
| 275 { | 247 { | 
| 276 box-shadow: inset 0 0 0 2px #fff; | 248 box-shadow: inset 0 0 0 3px #005D80; | 
| 277 } | 249 } | 
| 278 | 250 | 
| 279 .button.inverse:active | 251 /******************************************************************************* | 
| 280 { | 252 * .fg-* utilities | 
| 281 background-color: #fff; | 253 ******************************************************************************/ | 
| 282 } | 254 | 
| 283 | 255 .fg-accent | 
| 284 .bg-accent .button.inverse:active | |
| 285 { | 256 { | 
| 286 color: #077CA6; | 257 color: #077CA6; | 
| 287 } | 258 } | 
| 288 | 259 | 
| 289 /******************************************************************************* | 260 .bg-secondary | 
| 290 * .bg-* utilities | 261 { | 
| 291 ******************************************************************************/ | 262 color: #000; | 
| 292 | 263 background-color: #F4F4F4; | 
| 293 .bg-accent | |
| 294 { | |
| 295 color: #fff; | |
| 296 background-color: #077CA6; | |
| 297 } | 264 } | 
| 298 | 265 | 
| 299 /******************************************************************************* | 266 /******************************************************************************* | 
| 300 * #navbar | 267 * #navbar | 
| 301 ******************************************************************************/ | 268 ******************************************************************************/ | 
| 302 | 269 | 
| 303 #navbar | 270 #navbar | 
| 304 { | 271 { | 
| 305 min-height: 4em; | 272 min-height: 4em; | 
| 306 background-color: #c70d2c; | 273 background-color: #c70d2c; | 
| 274 position: fixed; | |
| 275 z-index: 2; | |
| 276 width: 100%; | |
| 277 top: 0; | |
| 278 transition: top 0.2s ease-in-out; | |
| 307 } | 279 } | 
| 308 | 280 | 
| 309 @media(max-width: 991px) | 281 @media(max-width: 991px) | 
| 310 { | 282 { | 
| 311 #navbar | 283 #navbar | 
| 312 { | 284 { | 
| 313 overflow: auto; | 285 overflow: auto; | 
| 314 } | 286 } | 
| 315 } | 287 } | 
| 316 | 288 | 
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 538 | 510 | 
| 539 @media(max-width: 991px) | 511 @media(max-width: 991px) | 
| 540 { | 512 { | 
| 541 #navbar-menu | 513 #navbar-menu | 
| 542 { | 514 { | 
| 543 display: none; | 515 display: none; | 
| 544 float: left; | 516 float: left; | 
| 545 clear: both; | 517 clear: both; | 
| 546 width: 100%; | 518 width: 100%; | 
| 547 background-color: #292929; | 519 background-color: #292929; | 
| 520 overflow-y: scroll; | |
| 521 max-height: 416px; | |
| 522 max-height: 80vh; | |
| 548 } | 523 } | 
| 549 | 524 | 
| 550 #navbar-menu.visible | 525 #navbar-menu.visible | 
| 551 { | 526 { | 
| 552 display: block; | 527 display: block; | 
| 553 } | 528 } | 
| 554 | 529 | 
| 555 #navbar-menu li a | 530 #navbar-menu li a | 
| 556 { | 531 { | 
| 557 padding: 0.75em 1em; | 532 padding: 0.75em 1em; | 
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 725 { | 700 { | 
| 726 display: none; | 701 display: none; | 
| 727 } | 702 } | 
| 728 | 703 | 
| 729 /* overriding display:none above */ | 704 /* overriding display:none above */ | 
| 730 #footer #social-list | 705 #footer #social-list | 
| 731 { | 706 { | 
| 732 display: block; | 707 display: block; | 
| 733 } | 708 } | 
| 734 } | 709 } | 
| 710 | |
| 711 /* Video | |
| 712 ****************************************************************************/ | |
| 713 | |
| 714 .video-parent | |
| 715 { | |
| 716 position: relative; | |
| 717 display: block; | |
| 718 width: 100%; | |
| 719 padding: 0; | |
| 720 border: 1px solid #c9c9c9; | |
| 721 box-shadow: 1px 1px 0 0 #dbdbdb; | |
| 722 overflow: hidden; | |
| 723 } | |
| 724 | |
| 725 .video-parent.has-iframe::before | |
| 726 { | |
| 727 display: block; | |
| 728 content: ""; | |
| 729 padding-top: 56.25%; | |
| 730 } | |
| 731 | |
| 732 .video-parent iframe | |
| 733 { | |
| 734 position: absolute; | |
| 735 top: 0; | |
| 736 bottom: 0; | |
| 737 left: 0; | |
| 738 width: 100%; | |
| 739 height: 100%; | |
| 740 border: 0; | |
| 741 } | |
| 742 | |
| 743 .video-link | |
| 744 { | |
| 745 display: block; | |
| 746 position: relative; | |
| 747 } | |
| 748 | |
| 749 .video-thumbnail | |
| 750 { | |
| 751 width: 100%; | |
| 752 transition: opacity 0.8s; | |
| 753 opacity: 0.2; | |
| 754 } | |
| 755 | |
| 756 .hide-disclaimer .video-thumbnail | |
| 757 { | |
| 758 opacity: 1; | |
| 759 } | |
| 760 | |
| 761 .video-disclaimer | |
| 762 { | |
| 763 visibility: visible; | |
| 764 opacity: 1; | |
| 765 position: absolute; | |
| 766 bottom: 0; | |
| 767 left: 0; | |
| 768 padding: 1em; | |
| 769 background-color: #fff; | |
| 770 font-size: 0.9em; | |
| 771 text-align: center; | |
| 772 transition: opacity 0.8s; | |
| 773 } | |
| 774 | |
| 775 .hide-disclaimer .video-disclaimer | |
| 776 { | |
| 777 visibility: hidden; | |
| 778 opacity: 0; | |
| 779 } | |
| 780 | |
| 781 .video-play | |
| 782 { | |
| 783 position: absolute; | |
| 784 top: 50%; | |
| 785 left: 50%; | |
| 786 width: 80px; | |
| 787 margin-top: -60px; | |
| 788 margin-left: -40px; | |
| 789 } | |
| 790 | |
| 791 .hide-disclaimer .video-play | |
| 792 { | |
| 793 margin-top: -40px; | |
| 794 } | |
| LEFT | RIGHT |