Skip to content

jvlahos/ups-sublime-theme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TmTheme Editor Variables

Made, and able to be edited, using http://tmtheme-editor.herokuapp.com/. Shown below is a reference list of variables in the theme editor and where their rules apply in HTML, SCSS, and JS files. Text affected is either wrapped in "*"s or properly italicized.

The goals of this were to:

  • Learn how theming works (to a limited extent... I used an editor)
  • Use some Upstatement colors and styles
  • Attempt some subtle but helpful styles to make code more scannable in a monochromatic scheme — calling out the most important elements and setting back the least.

Screenshot

String

.SCSS

  • @import "partials/base";
  • @include svg("gear_white");

.HTML

  • class="analytics-body"
  • role="main"

.JS

  • $('.analytics-body').addClass('loading');
  • if (!target.hasClass('tip-trigger')) {

Number

.SCSS

  • width: 32.5%;
  • border: 1px solid $black-25;

.JS

  • if (windowWidth > 960) {
  • tooltip.css('z-index', 1500);

Built-in Constant

.JS

  • true, false

User-defined Constant

.HTML

  • &copy
  • &nbsp

.SCSS

  • px, %

Variable

.JS

  • $(this)

Keyword

.SCSS

  • .ie7 &
  • @mixin body-padding($top: 0px, $bottom:0px)
  • @include no-trans;
  • h4, button

.JS

  • if(tooltip && tooltip.length > 0)
  • $('.loading-overlay').hide();
  • modalOpen = false;
  • return layout;

Storage

No finding


Storage Type

.JS

  • function(block)
  • var contents;
  • function(){

Class Name

No finding


Inherited Storage Type

No finding


Function name

.JS

  • layout.initModal = function(id) {
  • function equalizeBedHeights(){
  • layout.init_listeners = function() {

Function Argument

.JS

  • layout.init = function(app, callback)
  • layout.init_modal_listener = function(context) {
  • layout.initModal = function(id) {

Tag Name

.HTML

  • <body></body>
  • <div></div>

Tag Attribute

In HTML

  • <meta charset="utf-8">

.SCSS

  • .loading-overlay {
  • @extend .text;
  • .panel > .panel-grid-3 {

Library Function

.JS

  • modal.remove();
  • $(document).find('ul, dl')

Library Constant

.JS

  • var section = $(this).parent();
  • var len = panels.length;
  • tooltip.width()

.SCSS

  • cursor: pointer;
  • display: none;
  • margin: 0 auto;
  • position: relative;

Library Class Type

.SCSS

  • text-align: center;
  • padding: 0px;
  • vertical-align: middle;

In JS

  • layout.initModal = function(id) {
  • $(window)

Library Variable

No findings


JSON String

.JSON

  • "defaults": { "filterable": true, "editable": true }

Foreground

Line numbers

.HTML

  • < title > RGI | Healthcare Analytics Solution

.SCSS

  • .bar { margin*:* auto*;* width*:* 100%; }

.JS [?]


Caret

  • The blinking cursor

About

An attempt at an Upstatement Sublime Text theme

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published