Post-Platform Digital Publishing Toolkit

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
stylesheet:style_the_computer_store [2025/01/23 10:37] vincianestylesheet:style_the_computer_store [2025/01/25 16:56] (current) – external edit 127.0.0.1
Line 1: Line 1:
 %% %%
 +
 +/* this styling works when wanting to center bold text, italic text will be on the left of the discussion, and normal p paragraph will appear on the right */
 +
 +
 p { p {
 background: linear-gradient(155deg, pink, red) border-box; background: linear-gradient(155deg, pink, red) border-box;
 color: #fff; color: #fff;
 border-radius: 25px; border-radius: 25px;
-max-width: 300px;+max-width: 350px;
 padding: 15px; padding: 15px;
 } }
-p:nth-child(odd) { +p:has(em) { 
-place-selfstart;+margin-left:0; 
 +margin-right:auto; 
 +background: linear-gradient(155deg, red, pink) border-box !important;
 } }
-p:nth-child(even) +em { 
-place-selfend;+  font-stylenormal; 
 +font-family: serif; 
 +
 +
 +margin-right:0; 
 +margin-left:auto;
 } }
 p:has(strong) { p:has(strong) {
-place-selfcenter+margin-leftauto
 +margin-right: auto; 
 +background: linear-gradient(155deg, yellow, limegreen) border-box; 
 +border-radius: 0; 
 +text-align: center;
 } }
 +p strong {
 +    font-weight: normal;
 +    font-family: monospace;
 +    }
 %% %%
stylesheet/style_the_computer_store.1737628639.txt.gz · Last modified: 2025/01/25 16:56 (external edit)