docs: specify fallback generic font family (#40254)
https://developer.mozilla.org/en-US/docs/Web/CSS/font-family "You should always include at least one generic family name in a font-family list, since there's no guarantee that any given font is available. This lets the browser select an acceptable fallback font when necessary." PR Close #40254
This commit is contained in:
parent
0a317f3bb4
commit
f846c093b1
|
@ -62,7 +62,7 @@
|
|||
padding: 5px 10px;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
font-family: Arial;
|
||||
font-family: Arial, sans-serif;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
|
|
|
@ -59,7 +59,7 @@ img {
|
|||
|
||||
.study,
|
||||
.modified {
|
||||
font-family: "Brush Script MT";
|
||||
font-family: "Brush Script MT", cursive;
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
p {
|
||||
font-family: Lato;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
padding: 5px 10px;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
font-family: Arial;
|
||||
font-family: Arial, sans-serif;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
|
|
|
@ -20,7 +20,7 @@ input {
|
|||
}
|
||||
|
||||
button {
|
||||
font-family: Arial;
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: #eee;
|
||||
border: none;
|
||||
padding: 5px 10px;
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
display: inline-block;
|
||||
cursor: pointer;
|
||||
color: #666666;
|
||||
font-family: Arial;
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 15px;
|
||||
font-weight: bold;
|
||||
padding: 6px 24px;
|
||||
|
@ -24,11 +24,11 @@
|
|||
display: inline-block;
|
||||
cursor: pointer;
|
||||
color: #ffffff;
|
||||
font-family: Arial;
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 15px;
|
||||
font-weight: bold;
|
||||
padding: 6px 24px;
|
||||
text-decoration: none;
|
||||
text-shadow: 0px 1px 0px #528ecc;
|
||||
outline: 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@ button {
|
|||
padding: 5px 10px;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
font-family: Arial;
|
||||
font-family: Arial, sans-serif;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
|
|
|
@ -55,7 +55,7 @@ button {
|
|||
padding: 5px 10px;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
font-family: Arial;
|
||||
font-family: Arial, sans-serif;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
|
|
|
@ -11,7 +11,7 @@ img {height: 100px;}
|
|||
.special {font-weight:bold; font-size: x-large}
|
||||
.bad {color: red;}
|
||||
.saveable {color: limegreen;}
|
||||
.curly, .modified {font-family: "Brush Script MT"}
|
||||
.curly, .modified {font-family: "Brush Script MT", cursive}
|
||||
.toe {margin-left: 1em; font-style: italic;}
|
||||
little-hero {color:blue; font-size: smaller; background-color: Turquoise }
|
||||
.to-toc {margin-top: 10px; display: block}
|
||||
|
|
|
@ -12,7 +12,7 @@ input {
|
|||
}
|
||||
button {
|
||||
margin-top: 20px;
|
||||
font-family: Arial;
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: #eee;
|
||||
border: none;
|
||||
padding: 5px 10px;
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
border-radius: 4px 0 0 4px;
|
||||
}
|
||||
button {
|
||||
font-family: Arial;
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: #eee;
|
||||
border: none;
|
||||
padding: 5px 10px;
|
||||
|
|
|
@ -14,7 +14,7 @@ body {
|
|||
}
|
||||
body, input[type="text"], button {
|
||||
color: #333;
|
||||
font-family: Cambria, Georgia;
|
||||
font-family: Cambria, Georgia, serif;
|
||||
}
|
||||
/* everywhere else */
|
||||
* {
|
||||
|
|
|
@ -13,7 +13,7 @@ input {
|
|||
}
|
||||
button {
|
||||
margin-top: 20px;
|
||||
font-family: Arial;
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: #eee;
|
||||
border: none;
|
||||
padding: 5px 10px;
|
||||
|
|
|
@ -193,7 +193,7 @@ describe('Tutorial part 6', () => {
|
|||
|
||||
for (const button of buttons) {
|
||||
// Inherited styles from styles.css
|
||||
expect(await button.getCssValue('font-family')).toBe('Arial');
|
||||
expect(await button.getCssValue('font-family')).toBe('Arial, sans-serif');
|
||||
expect(await button.getCssValue('border')).toContain('none');
|
||||
expect(await button.getCssValue('padding')).toBe('5px 10px');
|
||||
expect(await button.getCssValue('border-radius')).toBe('4px');
|
||||
|
@ -204,7 +204,7 @@ describe('Tutorial part 6', () => {
|
|||
|
||||
const addButton = element(by.buttonText('add'));
|
||||
// Inherited styles from styles.css
|
||||
expect(await addButton.getCssValue('font-family')).toBe('Arial');
|
||||
expect(await addButton.getCssValue('font-family')).toBe('Arial, sans-serif');
|
||||
expect(await addButton.getCssValue('border')).toContain('none');
|
||||
expect(await addButton.getCssValue('padding')).toBe('5px 10px');
|
||||
expect(await addButton.getCssValue('border-radius')).toBe('4px');
|
||||
|
|
|
@ -13,7 +13,7 @@ input {
|
|||
}
|
||||
button {
|
||||
margin-top: 20px;
|
||||
font-family: Arial;
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: #eee;
|
||||
border: none;
|
||||
padding: 5px 10px;
|
||||
|
|
|
@ -57,7 +57,7 @@ button {
|
|||
padding: 5px 10px;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
font-family: Arial;
|
||||
font-family: Arial, sans-serif;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
|
|
|
@ -172,7 +172,7 @@ describe('Universal', () => {
|
|||
|
||||
for (const button of buttons) {
|
||||
// Inherited styles from styles.css
|
||||
expect(await button.getCssValue('font-family')).toBe('Arial');
|
||||
expect(await button.getCssValue('font-family')).toBe('Arial, sans-serif');
|
||||
expect(await button.getCssValue('border')).toContain('none');
|
||||
expect(await button.getCssValue('padding')).toBe('5px 10px');
|
||||
expect(await button.getCssValue('border-radius')).toBe('4px');
|
||||
|
@ -183,7 +183,7 @@ describe('Universal', () => {
|
|||
|
||||
const addButton = element(by.buttonText('add'));
|
||||
// Inherited styles from styles.css
|
||||
expect(await addButton.getCssValue('font-family')).toBe('Arial');
|
||||
expect(await addButton.getCssValue('font-family')).toBe('Arial, sans-serif');
|
||||
expect(await addButton.getCssValue('border')).toContain('none');
|
||||
expect(await addButton.getCssValue('padding')).toBe('5px 10px');
|
||||
expect(await addButton.getCssValue('border-radius')).toBe('4px');
|
||||
|
|
|
@ -13,7 +13,7 @@ input {
|
|||
}
|
||||
button {
|
||||
margin-top: 20px;
|
||||
font-family: Arial;
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: #eee;
|
||||
border: none;
|
||||
padding: 5px 10px;
|
||||
|
|
|
@ -56,7 +56,7 @@ button {
|
|||
padding: 5px 10px;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
font-family: Arial;
|
||||
font-family: Arial, sans-serif;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
|
|
|
@ -14,13 +14,13 @@ body {
|
|||
}
|
||||
body, input[text], button {
|
||||
color: #333;
|
||||
font-family: Cambria, Georgia;
|
||||
font-family: Cambria, Georgia, serif;
|
||||
}
|
||||
a {
|
||||
cursor: pointer;
|
||||
}
|
||||
button {
|
||||
font-family: Arial;
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: #eee;
|
||||
border: none;
|
||||
padding: 5px 10px;
|
||||
|
|
Loading…
Reference in New Issue