GithubHelp home page GithubHelp logo

isabella232 / dojo-theme-flat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from esri/dojo-theme-flat

0.0 0.0 0.0 1.24 MB

Custom flat theme based on Twitter's Bootstrap for Dojo dijits, dgrid, and esri widgets.

License: Apache License 2.0

JavaScript 6.79% CSS 88.61% HTML 4.61%

dojo-theme-flat's Introduction

DISCONTINUED

It is time to move forward and embrace all the modern UI libraries / frameworks instead of sticking to Dojo dijits ๐Ÿ‘Œ

--- Yiwei Ma

dojo-theme-flat

This theme framework is customized for Dojo dijits, dgrid, as well as some of the ArcGIS API for JS widgets using Stylus.

This theme is built based on Dojo's Claro theme.

Test pages: http://yiweima.github.io/flatdojo/

Sections

Features

This theme includes styles for the following components:

Dojo Dijits:

  • All "dijit/form" dijits
  • All "dijit/layout" dijits
  • All other Dojo dijits (Dialog, Menu, Calendar, Toolbar, etc.)
  • RTL supported

Dgrid:

  • Basic dgrid styles (dgrid.css)
  • One skin is included
  • All extensions
  • RTL supported

ArcGIS API for JavaScript Widgets:

Only these widgets are supported:

  • Fixed pan buttons
  • Zoom Slider
  • Basemap Gallery
  • Bookmarks
  • Geocoder
  • Legend
  • Measurement
  • Overview Map
  • Popup
  • Scalebar

Icons and Colors

  • Most icons are replaced with FontAwesome icon fonts.
  • Esri's branding colors are used as default.

Requirements

  • Using CSS files only:

    No requirements

  • Using Stylus files:

    • Nodejs
    • Stylus - CSS preprocessor used to compile .styl files
    • Nib - a Stylus plugin that provides cross-browser CSS3 mixins .

Instructions

  • ####CSS only:

    1. Download the "CSS" folder locally

    2. For Dojo dijits, include:

      <link rel="Stylesheet" type="text/css" href="path/to/dojo/flat.css/>
      
    3. For dgrid, include:

        <link rel="Stylesheet" type="text/css" href="path/to/dgrid/css/dgrid.css/>
      
        <link rel="Stylesheet" type="text/css" href="path/to/dgrid/skins/skin.css/>
      

      And other stylesheets for extensions in the "dgrid/css/extensions" folder if needed. For example, the style sheet for Pagination extension:

         <link rel="Stylesheet" type="text/css" href="path/to/dgrid/css/extensions/Pagination.css/>
      
    4. For ArcGIS API for JS widgets, includet:

      <link rel="Stylesheet" type="text/css" href="//js.arcgis.com/3.10/js/esri/css/esri.css/>
      
      <link rel="Stylesheet" type="text/css" href="path/to/esri/css/esri_custom.css/>
      
  • ####Using Stylus files

    Install required tools:
    1. Nodejs - Click here to download the installer and run it
    2. Stylus - Open command line and run npm install stylus -g
    3. Nib - Open command line and run $ npm install nib -g
    Compile .styl files using command line:

    Here explains how to use command line to compile .styl files, click here for more examples on how to compile .styl files in general. You can also use Grunt if you are familiar with the tool.

    1. Compile single file: stylus -u nib -w path\to\filename.styl -o path/to/output/foldername/
    2. Compile all files within a folder: stylus -u nib -w path\to\foldername -o path/to/output/foldername/

Resources

Issues

Browser Support

Only tested with Chrome (v36), FireFox (v31), IE 11 and IE 8, 9 with IE 11's emulation tool.

Contributing

Esri welcomes contributions from anyone and everyone. Please see our guidelines for contributing.

Licensing

Copyright 2013 Esri

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

A copy of the license is available in the repository's license.txt file.

[](Esri Tags: Dojo, CSS, theme) [](Esri Language: CSS)

dojo-theme-flat's People

Contributors

yiweima avatar davidspriggs avatar ecaldwell 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.