Skip to content

Commit c7331e3

Browse files
committed
fix css issues
1 parent d3c8191 commit c7331e3

File tree

2 files changed

+15
-4
lines changed
  • articles/tutorials/advanced/2d_shaders/06_color_swap_effect
  • templates/monogame/public

2 files changed

+15
-4
lines changed

articles/tutorials/advanced/2d_shaders/06_color_swap_effect/index.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ In this chapter, we will create a powerful color-swapping effect. we will learn
77

88
At the end of this chapter, we will be able to fine-tune the colors of the game. Here are a few examples:
99

10-
| ![Figure 6-1: The default colors](./images/overview-1.png) | ![Figure 6-2: A green variant of the game](./images/overview-2.png) | ![Figure 6-3: A pink variant of the game](./images/overview-3.png) | ![Figure 6-4: A purple variant of the game](./images/overview-4.png) |
11-
| :--------------------------------------------------------: | :-----------------------------------------------------------------: | :----------------------------------------------------------------: | :------------------------------------------------------------------: |
12-
| **Figure 6-1: The default colors** | **Figure 6-2: A green variant of the game** | **Figure 6-3: A pink variant of the game** | **Figure 6-4: A purple variant of the game** |
13-
10+
| ![Figure 6-1: The default colors](./images/overview-1.png) | ![Figure 6-2: A green variant of the game](./images/overview-2.png) |
11+
| :----------------------------------------------------------------: | :------------------------------------------------------------------: |
12+
| **Figure 6-1: The default colors** | **Figure 6-2: A green variant of the game** |
13+
| ![Figure 6-3: A pink variant of the game](./images/overview-3.png) | ![Figure 6-4: A purple variant of the game](./images/overview-4.png) |
14+
| **Figure 6-3: A pink variant of the game** | **Figure 6-4: A purple variant of the game** |
1415

1516
If you are following along with code, here is the code from the end of the [previous chapter](https://github.com/MonoGame/MonoGame.Samples/tree/3.8.4/Tutorials/2dShaders/src/05-Transition-Effect).
1617

@@ -196,6 +197,8 @@ One final glitch becomes apparent if you stare at that long enough, which is tha
196197

197198
The colors used above aren't the nicest. They were used for demonstration purposes. Here are some nicer textures to use that produce better results.
198199

200+
<div class="fixed-table"></div>
201+
199202
| ![Figure 6-16: A dark purple look](./images/example-dark-purple.png) | ![Figure 6-17: A green look](./images/example-green.png) | ![Figure 6-18: A pink look](./images/example-pink.png) |
200203
| :------------------------------------------------------------------: | :------------------------------------------------------: | :----------------------------------------------------: |
201204
| **Figure 6-16: A dark purple look** | **Figure 6-17: A green look** | **Figure 6-18: A pink look** |

templates/monogame/public/main.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,14 @@ td > .xref {
248248
word-break: normal;
249249
}
250250

251+
/*
252+
Sometimes the default table styling will leave later columns in a table squished.
253+
Put a <div class="fixed-table"> tag rigt before a table to force constant width.
254+
*/
255+
.fixed-table + .table-responsive table {
256+
table-layout: fixed !important;
257+
}
258+
251259
/*******************************************************************************
252260
*** Section: Question and Answer Sections
253261
*** Styling for the questions and answers sections in tutorials

0 commit comments

Comments
 (0)