Changing the code text color


(Simplism) #1

I’m trying to change the code text color to a pink, how can I do this?


(Jay Pfaffman) #2

/admin/customize/css_html

In the CSS section:

p>code, li>code, pre>code {
    color: pink;
}
```

Though I think that `#f0f` is a better color of pink.

(Simplism) #3

Hi, that doesn’t seem to work.


(Simplism) #4

I created a new CSS thing called “code” and pasted that, no effect.


(Jay Pfaffman) #5

Well, I just copied and pasted that on my site and it worked. Can you point to a page on your site that has code?

(Also, you can click the pencil to edit a post)


(Simplism) #6

http://185.133.73.136/t/this-is-a-test-of-the-system/11


(Simplism) #7

That changed the entire background


(Jay Pfaffman) #8

Well, you’ve deleted the page now, so I can’t look. Here’s what that looks like on my site:

Not sure why it’d be different on yours, but then again, this is nearly the first Discourse CSS I’ve managed to tweak.


(Simplism) #9

Only wanted to change the text @pfaffman


(Simplism) #10

http://185.133.73.136/t/this-is-a-test-of-the-system/11/2 I can see it. Here is what I did:


(Simplism) #11

New post: http://185.133.73.136/t/code-test-for-jay/14


(cpradio) #12

Make sure you enable the customization. (checkbox at bottom of screen)


(Jeff Atwood) #13

This enabling thing is a giant pain in our :horse: @sam and has resulted in way too many support requests.


(Sam Saffron) #14

I know the UI needs a revamp, but the alternative is to allow for a single customization that is always enabled


(Jeff Atwood) #15

We urgently need a UI fix here. Maybe a dialog nagging people to enable if they edit? Something, anything, the way it is now is a disaster.


(Felix Freiberger) #16

I’d guess that enabling them by default would already be enough.


(Daniela) #17

I’d prefer a button “Enable” (not a flag to add or remove) instead enable by default. Most people play with their customizations and the preview before enabling the changes.

A proposal:


(Jeff Atwood) #18

Whichever one of these you like, you should do @sam, this is your :baby: monster.


(Sam Saffron) #19

I am redoing this whole UI, no point fiddling with it now.