diff --git a/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_a-frame/index.md b/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_a-frame/index.md index dd905545927ca65..a3c03f6ddc3ce15 100644 --- a/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_a-frame/index.md +++ b/files/en-us/games/techniques/3d_on_the_web/building_up_a_basic_demo_with_a-frame/index.md @@ -135,9 +135,9 @@ We've also defined a cursor for the given camera, using the `cursor-*` attribute The basic light types in A-Frame are directional and ambient. The first type is a directional light placed somewhere on the scene while the second one reflects the light from the first type, so it looks more natural; this can be set globally. Add the new code below your previous additions — this uses the standard `` element: ```html - + - + ``` The directional light has a white color, its intensity is set to `0.5`, and it is placed at position `-1 1 2`. The ambient light only needs a color, which is also white. @@ -261,10 +261,10 @@ Everything is rendered properly and animating — congratulations on building yo - + diff --git a/files/en-us/games/tutorials/2d_breakout_game_pure_javascript/create_the_canvas_and_draw_on_it/index.md b/files/en-us/games/tutorials/2d_breakout_game_pure_javascript/create_the_canvas_and_draw_on_it/index.md index 3929bf3deac691e..45a2d0b2cb779ce 100644 --- a/files/en-us/games/tutorials/2d_breakout_game_pure_javascript/create_the_canvas_and_draw_on_it/index.md +++ b/files/en-us/games/tutorials/2d_breakout_game_pure_javascript/create_the_canvas_and_draw_on_it/index.md @@ -61,7 +61,7 @@ Let's see an example piece of code that prints a red square on the canvas. Add t ```js ctx.beginPath(); ctx.rect(20, 40, 50, 50); -ctx.fillStyle = "#FF0000"; +ctx.fillStyle = "red"; ctx.fill(); ctx.closePath(); ``` @@ -119,7 +119,7 @@ const ctx = canvas.getContext("2d"); ctx.beginPath(); ctx.rect(20, 40, 50, 50); -ctx.fillStyle = "#FF0000"; +ctx.fillStyle = "red"; ctx.fill(); ctx.closePath(); diff --git a/files/en-us/learn_web_development/core/accessibility/css_and_javascript/index.md b/files/en-us/learn_web_development/core/accessibility/css_and_javascript/index.md index 232935423026225..a650d66dd395a59 100644 --- a/files/en-us/learn_web_development/core/accessibility/css_and_javascript/index.md +++ b/files/en-us/learn_web_development/core/accessibility/css_and_javascript/index.md @@ -142,7 +142,7 @@ Some very simple link styling is shown below: ```css a { - color: #ff0000; + color: red; } a:hover, @@ -153,7 +153,7 @@ a:focus { } a:active { - color: #000000; + color: black; background-color: #a60000; } ``` diff --git a/files/en-us/learn_web_development/core/accessibility/test_your_skills/css_and_javascript/index.md b/files/en-us/learn_web_development/core/accessibility/test_your_skills/css_and_javascript/index.md index a84e351fc5a0fdd..e78be2753551be0 100644 --- a/files/en-us/learn_web_development/core/accessibility/test_your_skills/css_and_javascript/index.md +++ b/files/en-us/learn_web_development/core/accessibility/test_your_skills/css_and_javascript/index.md @@ -21,7 +21,7 @@ To complete the task, create new rules to make the links look and behave like li ```css hidden live-sample___css-js-ally-1 live-sample___css-js-ally-2 live-sample___css-js-ally-3 body { - background-color: #fff; + background-color: white; color: #333; font: 1em / 1.4 Helvetica Neue, @@ -81,7 +81,7 @@ li a { li a:hover, li a:focus { text-decoration: none; - color: rgb(255 0 0); + color: red; } ``` diff --git a/files/en-us/learn_web_development/core/accessibility/test_your_skills/html/index.md b/files/en-us/learn_web_development/core/accessibility/test_your_skills/html/index.md index 56636bfbcbf8856..2f40ee4c702573c 100644 --- a/files/en-us/learn_web_development/core/accessibility/test_your_skills/html/index.md +++ b/files/en-us/learn_web_development/core/accessibility/test_your_skills/html/index.md @@ -21,7 +21,7 @@ To complete the task, update the markup to use appropriate semantic HTML. You do ```css hidden live-sample___html-ally-1 live-sample___html-ally-2 live-sample___html-ally-3 live-sample___html-ally-4 body { - background-color: #fff; + background-color: white; color: #333; font: 1em / 1.4 Helvetica Neue, diff --git a/files/en-us/learn_web_development/core/accessibility/test_your_skills/wai-aria/index.md b/files/en-us/learn_web_development/core/accessibility/test_your_skills/wai-aria/index.md index 2e73c0f52ae5021..988fc931bff4895 100644 --- a/files/en-us/learn_web_development/core/accessibility/test_your_skills/wai-aria/index.md +++ b/files/en-us/learn_web_development/core/accessibility/test_your_skills/wai-aria/index.md @@ -21,7 +21,7 @@ To complete the task, add some WAI-ARIA semantics to make screen readers recogni ```css hidden live-sample___aria-1 live-sample___aria-2 live-sample___aria-3 body { - background-color: #fff; + background-color: white; color: #333; font: 1em / 1.4 Helvetica Neue, diff --git a/files/en-us/learn_web_development/core/accessibility/wai-aria_basics/index.md b/files/en-us/learn_web_development/core/accessibility/wai-aria_basics/index.md index 72fb504f2f52b5f..84b19545cf84910 100644 --- a/files/en-us/learn_web_development/core/accessibility/wai-aria_basics/index.md +++ b/files/en-us/learn_web_development/core/accessibility/wai-aria_basics/index.md @@ -203,7 +203,7 @@ body { html { font-size: 10px; - background-color: #a9a9a9; + background-color: darkgrey; } body { @@ -456,7 +456,7 @@ body { html { font-size: 10px; - background-color: #a9a9a9; + background-color: darkgrey; } body { @@ -855,7 +855,7 @@ function toggleMusician(bool) { const instrument = formItems[formItems.length - 1]; if (bool) { instrument.input.disabled = false; - instrument.label.style.color = "#000"; + instrument.label.style.color = "black"; instrument.input.setAttribute("aria-disabled", "false"); hiddenAlert.textContent = "Instruments played field now enabled; use it to tell us what you play."; diff --git a/files/en-us/learn_web_development/core/css_layout/responsive_design/index.md b/files/en-us/learn_web_development/core/css_layout/responsive_design/index.md index cdd9dbad0663d0a..29dbfa3ba6d8ce7 100644 --- a/files/en-us/learn_web_development/core/css_layout/responsive_design/index.md +++ b/files/en-us/learn_web_development/core/css_layout/responsive_design/index.md @@ -163,7 +163,7 @@ body { .col1, .col2 { - background-color: #fff; + background-color: white; } ``` @@ -241,7 +241,7 @@ body { .col1, .col2 { - background-color: #fff; + background-color: white; } ``` @@ -361,7 +361,7 @@ h1 { .col1, .col2 { - background-color: #fff; + background-color: white; } @media screen and (width >= 600px) { @@ -447,7 +447,7 @@ h1 { .col1, .col2 { - background-color: #fff; + background-color: white; } @media screen and (width >= 600px) { diff --git a/files/en-us/learn_web_development/core/css_layout/test_your_skills/flexbox/index.md b/files/en-us/learn_web_development/core/css_layout/test_your_skills/flexbox/index.md index 8f3e86c5695cbd6..acf5e7f4a839168 100644 --- a/files/en-us/learn_web_development/core/css_layout/test_your_skills/flexbox/index.md +++ b/files/en-us/learn_web_development/core/css_layout/test_your_skills/flexbox/index.md @@ -53,7 +53,7 @@ nav a:visited { background-color: #4d7298; border: 2px solid #77a6b6; border-radius: 0.5em; - color: #fff; + color: white; padding: 0.5em; display: inline-block; text-decoration: none; @@ -117,7 +117,7 @@ li { background-color: #4d7298; border: 2px solid #77a6b6; border-radius: 0.5em; - color: #fff; + color: white; padding: 0.5em; } @@ -193,7 +193,7 @@ li { background-color: #4d7298; border: 2px solid #77a6b6; border-radius: 0.5em; - color: #fff; + color: white; padding: 0.5em; margin: 0.5em; } diff --git a/files/en-us/learn_web_development/core/css_layout/test_your_skills/floats/index.md b/files/en-us/learn_web_development/core/css_layout/test_your_skills/floats/index.md index b25e6f4e9305224..f32a58e37fbde24 100644 --- a/files/en-us/learn_web_development/core/css_layout/test_your_skills/floats/index.md +++ b/files/en-us/learn_web_development/core/css_layout/test_your_skills/floats/index.md @@ -44,7 +44,7 @@ body { height: 150px; border-radius: 5px; background-color: rebeccapurple; - color: #fff; + color: white; padding: 1em; } @@ -114,7 +114,7 @@ body { height: 150px; border-radius: 5px; background-color: rebeccapurple; - color: #fff; + color: white; padding: 1em; } @@ -181,13 +181,13 @@ body { border-radius: 5px; background-color: rgb(207 232 220); padding: 1em; - color: #fff; + color: white; } .box { background-color: rebeccapurple; padding: 10px; - color: #fff; + color: white; } .float { diff --git a/files/en-us/learn_web_development/core/css_layout/test_your_skills/grid/index.md b/files/en-us/learn_web_development/core/css_layout/test_your_skills/grid/index.md index cdb7de6641d8fe9..0a42a0c8e52ef6a 100644 --- a/files/en-us/learn_web_development/core/css_layout/test_your_skills/grid/index.md +++ b/files/en-us/learn_web_development/core/css_layout/test_your_skills/grid/index.md @@ -37,7 +37,7 @@ body { background-color: #4d7298; border: 2px solid #77a6b6; border-radius: 0.5em; - color: #fff; + color: white; padding: 0.5em; } @@ -84,7 +84,7 @@ body { } .grid > * { border-radius: 0.5em; - color: #fff; + color: white; padding: 0.5em; } @@ -177,7 +177,7 @@ body { background-color: #4d7298; border: 2px solid #77a6b6; border-radius: 0.5em; - color: #fff; + color: white; padding: 0.5em; } @@ -306,7 +306,7 @@ body { .tags > * { background-color: #999; - color: #fff; + color: white; padding: 0.2em 0.8em; border-radius: 0.2em; font-size: 80%; diff --git a/files/en-us/learn_web_development/core/frameworks_libraries/angular_item_component/index.md b/files/en-us/learn_web_development/core/frameworks_libraries/angular_item_component/index.md index 583e09aef94e908..56b93c81c415edf 100644 --- a/files/en-us/learn_web_development/core/frameworks_libraries/angular_item_component/index.md +++ b/files/en-us/learn_web_development/core/frameworks_libraries/angular_item_component/index.md @@ -374,9 +374,9 @@ Paste the following styles into `item.component.css`. } .btn-save { - background-color: #000; - color: #fff; - border-color: #000; + background-color: black; + color: white; + border-color: black; } .btn-save:hover { @@ -384,8 +384,8 @@ Paste the following styles into `item.component.css`. } .btn-save:focus { - background-color: #fff; - color: #000; + background-color: white; + color: black; } .checkbox-wrapper { @@ -394,7 +394,7 @@ Paste the following styles into `item.component.css`. .btn-warn { background-color: #b90000; - color: #fff; + color: white; border-color: #9a0000; } @@ -404,7 +404,7 @@ Paste the following styles into `item.component.css`. .btn-warn:active { background-color: #e30000; - border-color: #000; + border-color: black; } .sm-text-input { @@ -443,7 +443,7 @@ Adapted from https://css-tricks.com/the-checkbox-hack/#custom-designed-radio-but width: 1.25em; height: 1.25em; border: 2px solid #ccc; - background: #fff; + background: white; } /* checked mark aspect */ diff --git a/files/en-us/learn_web_development/core/frameworks_libraries/angular_styling/index.md b/files/en-us/learn_web_development/core/frameworks_libraries/angular_styling/index.md index 5657158d14550a8..653cf1378d9e164 100644 --- a/files/en-us/learn_web_development/core/frameworks_libraries/angular_styling/index.md +++ b/files/en-us/learn_web_development/core/frameworks_libraries/angular_styling/index.md @@ -57,8 +57,8 @@ body { } .btn { - color: #000; - background-color: #fff; + color: black; + background-color: white; border: 2px solid #cecece; padding: 0.35rem 1rem 0.25rem 1rem; font-size: 1rem; @@ -78,8 +78,8 @@ body { } .btn-primary { - color: #fff; - background-color: #000; + color: white; + background-color: black; width: 100%; padding: 0.75rem; font-size: 1.3rem; @@ -92,9 +92,9 @@ body { } .btn-primary:focus { - color: #000; + color: black; outline: none; - border: #000 solid 2px; + border: black solid 2px; background-color: #d7ecff; } @@ -136,7 +136,7 @@ label { .lg-text-input { width: 100%; padding: 1rem; - border: 2px solid #000; + border: 2px solid black; display: block; box-sizing: border-box; font-size: 1rem; diff --git a/files/en-us/learn_web_development/core/frameworks_libraries/react_todo_list_beginning/index.md b/files/en-us/learn_web_development/core/frameworks_libraries/react_todo_list_beginning/index.md index c2de90f2dae8369..2a4cc0de95b58ca 100644 --- a/files/en-us/learn_web_development/core/frameworks_libraries/react_todo_list_beginning/index.md +++ b/files/en-us/learn_web_development/core/frameworks_libraries/react_todo_list_beginning/index.md @@ -311,7 +311,7 @@ input[type="text"] { border-radius: 0; } body { - background-color: #f5f5f5; + background-color: whitesmoke; color: #4d4d4d; font: 1.6rem/1.25 Arial, @@ -339,7 +339,7 @@ body { text-transform: capitalize; } .btn.toggle-btn { - border-color: #d3d3d3; + border-color: lightgray; border-width: 1px; } .btn.toggle-btn[aria-pressed="true"] { @@ -349,14 +349,14 @@ body { .btn__danger { background-color: #ca3c3c; border-color: #bd2130; - color: #fff; + color: white; } .btn__filter { border-color: lightgrey; } .btn__primary { - background-color: #000; - color: #fff; + background-color: black; + color: white; } .btn-group { display: flex; @@ -405,7 +405,7 @@ body { /* End global styles */ /* General app styles */ .todoapp { - background: #fff; + background: white; box-shadow: 0 2px 4px 0 rgb(0 0 0 / 20%), 0 2.5rem 5rem 0 rgb(0 0 0 / 10%); @@ -441,7 +441,7 @@ body { text-align: center; } .input__lg { - border: 2px solid #000; + border: 2px solid black; padding: 2rem; } .input__lg:focus-visible { diff --git a/files/en-us/learn_web_development/core/frameworks_libraries/svelte_stores/index.md b/files/en-us/learn_web_development/core/frameworks_libraries/svelte_stores/index.md index e1f7227111e1a97..49738964f4a2506 100644 --- a/files/en-us/learn_web_development/core/frameworks_libraries/svelte_stores/index.md +++ b/files/en-us/learn_web_development/core/frameworks_libraries/svelte_stores/index.md @@ -149,7 +149,7 @@ Let's now create our `Alert` component and see how we can read values from the s align-items: center; border-radius: 0.2rem; background-color: #565656; - color: #fff; + color: white; font-weight: 700; padding: 0.5rem 1.4rem; font-size: 1.5rem; @@ -157,7 +157,7 @@ Let's now create our `Alert` component and see how we can read values from the s opacity: 95%; } div p { - color: #fff; + color: white; } div svg { height: 1.6rem; diff --git a/files/en-us/learn_web_development/core/frameworks_libraries/svelte_todo_list_beginning/index.md b/files/en-us/learn_web_development/core/frameworks_libraries/svelte_todo_list_beginning/index.md index e2b18f039ec43f7..1c512ffba2ffb4d 100644 --- a/files/en-us/learn_web_development/core/frameworks_libraries/svelte_todo_list_beginning/index.md +++ b/files/en-us/learn_web_development/core/frameworks_libraries/svelte_todo_list_beginning/index.md @@ -456,7 +456,7 @@ body { font: 1.6rem/1.25 Arial, sans-serif; - background-color: #f5f5f5; + background-color: whitesmoke; color: #4d4d4d; } @media screen and (width >= 620px) { @@ -480,14 +480,14 @@ body { } .btn.toggle-btn { border-width: 1px; - border-color: #d3d3d3; + border-color: lightgray; } .btn.toggle-btn[aria-pressed="true"] { text-decoration: underline; border-color: #4d4d4d; } .btn__danger { - color: #fff; + color: white; background-color: #ca3c3c; border-color: #bd2130; } @@ -495,8 +495,8 @@ body { border-color: lightgrey; } .btn__primary { - color: #fff; - background-color: #000; + color: white; + background-color: black; } .btn__primary:disabled { color: darkgrey; @@ -549,7 +549,7 @@ body { /* END GLOBAL STYLES */ .todoapp { - background: #fff; + background: white; margin: 2rem 0 4rem 0; padding: 1rem; position: relative; @@ -586,7 +586,7 @@ body { } .input__lg { padding: 2rem; - border: 2px solid #000; + border: 2px solid black; } .input__lg:focus { border-color: #4d4d4d; diff --git a/files/en-us/learn_web_development/core/frameworks_libraries/vue_styling/index.md b/files/en-us/learn_web_development/core/frameworks_libraries/vue_styling/index.md index df511de3d7c73de..9b7851d897695d3 100644 --- a/files/en-us/learn_web_development/core/frameworks_libraries/vue_styling/index.md +++ b/files/en-us/learn_web_development/core/frameworks_libraries/vue_styling/index.md @@ -126,7 +126,7 @@ body { Helvetica, Arial, sans-serif; - background-color: #f5f5f5; + background-color: whitesmoke; color: #4d4d4d; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; @@ -178,7 +178,7 @@ Update your `App.vue` file's `