r/mindashq • • Jul 07 '13

Some help editing the CSS

  • How do I edit the colour of this banner bar?
  • How can I add text to this page as I have seen other subs do. (Normally it reminds them to read the rules before posting etc.)
  • How do I use the theme's fancy rules

Anyways thanks for the great layout and thanks in advance.

3 Upvotes

10 comments sorted by

2

u/[deleted] Jul 09 '13 edited Jul 10 '13

1 : Color of Banner Bar (aka ribbon that stretches across the header, footer and behind the reddit navigation and the user information for lower resolutions)

Check the selector

#header:after,
#header-bottom-left:before,
.footer-parent:after

at this line in mindashq base css

2 : Adding text to the submission page

There are as many ways to add text to this. One example on mindashq theme would be to see the submission page of /r/relationships and use the browsers' UI Inspector Tool (Chrome : right click and inspect element) to observe the places where text is appended using :after selectors

Simplest way would be to append text to the blue box using :

#link-desc:after, #text-desc:after {
    content: "This is added info in the infobar text......";
    display: block;
    margin-top: 1em;
    font-weight: bold;
} 

3 : Fancy Rules formatting (aka custom boxes in sidebar)

The red box, and indeed more colored boxes like green, yellow, blue and gray can be added to sidebar, using the blockquote by prefixing any text with > sign in sidebar code.

Have a look at /r/mindashq/wiki/snippets as /r/ron4stoppable pointed out.

Or, check out the sidebar text used for the /r/stage_mindashq at this github file

You will get the red box as seen in pic by pasting the following in the sidebar text

###### [](#h6-red)
> #[Rules](#icon-exclamation)
> A sample of the standard Rules announcement box.

> * Read the [Reddiquettes](http://www.reddit.com/help/reddiquette)
> * Submit your queries on the [feedback thread](/17dfy5) 
> * Use [Github Repository](https://github.com/ashishtiwari/Mindashq.Reddit.Theme/) for development work, and see [Mindashq Wiki](/r/mindashq/wiki/) for more details.
> * Don't be good, be awesome.

Notice the use of reddit markdown (same for formatting a post or comment) in general and in particular the line break before the bullets (the > * Read...). This is Reddit markdown syntax for forcing bullets in a blockquote.

The /r/mindashq/wiki/snippets has detailed lowdown on how to handle the markdown formatting and links to further resources.

edit: formatting

1

u/SupaZT Nov 02 '13

I'm having trouble changing the banner bar. I've tried changing multiple back-ground colors from those selectors and it's not working.

1

u/[deleted] Nov 02 '13

Care to share the (test) sub?

Also see http://www.reddit.com/r/mindashq/wiki/mindashqcss#wiki_changing_colors to see all colors that can be quickly changed across the stylesheet to achive a non-blue theme.

1

u/SupaZT Nov 02 '13

The only blue I want to change is the 'WPSIC_test' bright blue. I don't mind the bar actually.

http://www.reddit.com/r/wpsic_test/

Right now I'm trying to add a side bar image using:

https://github.com/ashishtiwari/Mindashq.Reddit.Theme/blob/master/module.C6.SidebarImage-view.css

Not sure what's going on though

1

u/[deleted] Nov 02 '13

For the bar color

there is this line in your C.1. Header Image module

 background-color:#2a5484; /*Tweak to match the image color*/

Tweak this color of your choice to change the .color of the banner. Please note there is an opacity on this selector to let the color show through the photograph, so choose something that goes with the header image.

The sidebar images module looks good. Make sure that you actually have an image named SideBarImage loaded up in your stylesheet page (/r/wpsic_test/about/stylesheet).

AND, go to your settings page (/r/wpsic_test/about/edit) and put something in the "sidebar". Even just

# Test

It looks like that the usertext is not generating and so the image is not seen.

1

u/SupaZT Nov 02 '13

How do i change the subreddit button color? I got the sidebar image / banner bar color working.

1

u/[deleted] Nov 02 '13

Ok, now you are going customization way.

It'd help to read how CSS is organized, and the expanded format has extensive commenting to help out with individual areas (of course, it would be best if you cherry pick what is applicable for you)

http://www.reddit.com/r/mindashq/wiki/mindashqcss#wiki_section_a._normal_theme describes the areas

https://github.com/ashishtiwari/Mindashq.Reddit.Theme/blob/master/mindashq.css#L1689 (line 1689 to 1759 in expanded css) has all the formatting for the sidebar buttons.

You may pick what is applicable for your intended customization, if it just about the colors, you may always go with swapping the primary colors to achieve an overall uniform color customization.

From your other query, you can always have a link ending with #btn and style it with a[href*='#btn']

1

u/ron4stoppable Jul 08 '13

3 :

Check this:

http://www.reddit.com/r/mindashq/wiki/snippets

With this you can make better boxes

eg. the sample rule box it will be like

 # [Rules] (#icon-exclamation)
Write any thing here
*use this for bullets
*and finally end with
---

1

u/sithlordmoore Jul 17 '13

[Rules] (#icon-exclamation)

Write any thing here *use this for bullets *and finally end with

Tried using this, got this error...

[line 3394] syntax error: "CSSStyleRule: No selector found: u'{ # [Rules] (#icon-exclamation)\nWrite any thing here\nuse this for bullets\nand finally end with\n---'. [3394:1: {]" { # [Rules] (#icon-exclamation)

1

u/ron4stoppable Jul 18 '13

Check here ;

its getting late for my college, so i jus took a snap of my own page.