Code Monkey home page Code Monkey logo

custom-css's Introduction

Geckoboard Custom CSS

Starter custom CSS stylesheets for styling your Geckoboard dashboards

Getting started

You write your own custom stylesheet based on the information presented below or you may take one of the starter stylesheets provided here to get you started. We provide two types of stylesheet here, one written in SCSS and a plain CSS stylesheets more about which is explained below.

Using plain old CSS

You may take any of the ready made CSS stylesheets from the css directory and modify to your needs.

Using SASS

We have supplied a starter CSS stylesheet written using Compass and SASS with easy to configure sets of variables for changing the common elements of your dashboards.

Dashboard

There isn't much to style on the dashboard itself. You can add a background image or change the color using the body element or the #dashboard-wrapper div that surrounds each dashboard. We don't advise changing fonts or colors at this level as your custom styles may intefere with the styling of the application when in admin mode.

Widgets

The anatomy of a widget in it's basic form is shown below, you can target individual widgets using the unique widget id shown on the example as widget-{{id}} where id is the numeric identifier of that widget (widget-12345 for example)

<article class="widget google-analytics" id="widget-{{id}}">
  <div class="widget-inner widget-size-1x1">
    <header>
      <h1>Widget title</h1>
    </header>
    <section class="widget-body number-widget">
      <div class="widget-canvas"></div>
    </section>
    <footer></footer>
  </div>
</article>

You may target widgets that belong to a paricular service using the service HTML class that is assigned to each widget. The class names are the lower case equivalent of the service title with all non-alphanumeric characters, including spaces, replaced with a hyphen. For example Google Analytics widgets posess the google-analytics HTML class name.

If you wish to alter the styling for a particluar template type across all widgets you may target the canvas area of that widget type using the template type HTML class name. For example all types of bullet chart use the bullet template and can be targeted with .bullet-widget HTML class name.

Widgets without a title do not have the <header> present and posses the no-title HTML class on the .widget-body element.

custom-css's People

Contributors

p-m-p avatar

Watchers

Ashley Wilson avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.