styles, no console

This commit is contained in:
Galen Wolfe-Pauly 2015-10-15 09:47:44 -07:00
parent 38f677a7f1
commit 366466383d
6 changed files with 124 additions and 134 deletions

View File

@ -36,12 +36,14 @@
line-height 4rem
&.fold
margin-top 6rem
.list > li > a h1
margin 0
line-height inherit
text-transform capitalize
font-size 1.2rem
&
.list li,
.list li a,
.list li h1,
font-size 1.6rem
line-height 2.6rem
@ -104,27 +106,9 @@
height 2rem
padding 0 .6rem
li
&::before
content ''
padding-right none
.list
li
margin-bottom 1rem
a
text-transform none
.list li,
.list li a,
.list li h1
white-space normal
letter-spacing 0
.list li a > div div,
.list li a > div p
display block
margin-left 0
li::before
content ''
padding-right none
.date
font-weight 400

View File

@ -271,6 +271,10 @@ h3.time {
border-bottom: none;
margin-bottom: 0.3rem;
}
.list > li > a h1 {
font-size: inherit;
line-height: inherit;
}
#nav a,
.list > li > a h1 {
border-bottom: 1px solid #000;
@ -290,20 +294,20 @@ h3.time {
#sides a {
margin-right: 0.6rem;
}
#nav .arow-up,
#nav .arow-next,
#nav .arow-prev {
.arow-up,
.arow-next,
.arow-prev {
width: 0;
height: 0;
border: 0.4rem solid transparent;
}
#nav .arow-up {
.arow-up {
border-bottom: 0.6rem solid #000;
}
#nav .arow-next {
.arow-next {
border-left: 0.6rem solid #000;
}
#nav .arow-prev {
.arow-prev {
border-right: 0.6rem solid #000;
}
#bred {
@ -356,7 +360,6 @@ h3.time {
}
.list li a h1 code {
text-transform: lowercase;
border-bottom: 1px solid #000;
}
.list li a code {
padding: 0.2rem;
@ -372,25 +375,6 @@ h3.time {
.list h1 {
font-size: 0.7rem;
}
.list.posts .post {
margin-bottom: 2rem;
}
.list.posts .post h1 {
text-transform: none;
font-size: 1.6rem;
line-height: 1.8rem;
margin-bottom: 1rem;
display: block;
}
.list.posts .post h2 {
font-size: 0.7rem;
font-weight: 400;
line-height: 1rem;
margin-top: 0;
}
.list.posts li.post:before {
content: "";
}
div.root h1 {
margin-bottom: 2rem;
}
@ -515,6 +499,25 @@ h2.date {
margin-top: 0;
line-height: 0.7rem;
}
.list.posts .post {
margin-bottom: 2rem;
}
.list.posts .post h1 {
text-transform: none;
font-size: 1.6rem;
line-height: 1.8rem;
margin-bottom: 1rem;
display: block;
}
.list.posts .post h2 {
font-size: 0.7rem;
font-weight: 400;
line-height: 1rem;
margin-top: 0;
}
.list.posts li.post:before {
content: "";
}
#nav #sibs {
width: 11rem;
}
@ -602,10 +605,13 @@ h2.date {
#cont.lead h1.fold {
margin-top: 6rem;
}
#cont.lead,
#cont.lead .list li,
#cont.lead .list li a,
#cont.lead .list li h1 {
#cont.lead .list > li > a h1 {
margin: 0;
line-height: inherit;
text-transform: capitalize;
font-size: 1.2rem;
}
#cont.lead {
font-size: 1.6rem;
line-height: 2.6rem;
}
@ -674,23 +680,6 @@ h2.date {
content: '';
padding-right: none;
}
#cont.lead .list li {
margin-bottom: 1rem;
}
#cont.lead .list li a {
text-transform: none;
}
#cont.lead .list li,
#cont.lead .list li a,
#cont.lead .list li h1 {
white-space: normal;
letter-spacing: 0;
}
#cont.lead .list li a > div div,
#cont.lead .list li a > div p {
display: block;
margin-left: 0;
}
#cont.lead .date {
font-weight: 400;
}

View File

@ -198,6 +198,10 @@ h3.time
border-bottom none
margin-bottom .3rem
.list > li > a h1
font-size inherit
line-height inherit
#nav a
.list > li > a h1
border-bottom 1px solid #000
@ -217,18 +221,18 @@ h3.time
#sides a
margin-right .6rem
#nav .arow-up
#nav .arow-next
#nav .arow-prev
.arow-up
.arow-next
.arow-prev
width 0
height 0
border .4rem solid transparent
#nav .arow-up
.arow-up
border-bottom .6rem solid #000
#nav .arow-next
.arow-next
border-left .6rem solid #000
#nav .arow-prev
.arow-prev
border-right .6rem solid #000
#bred
@ -281,7 +285,6 @@ h3.time
.list li a h1 code
text-transform lowercase
border-bottom 1px solid #000
.list li a code
padding .2rem
@ -297,26 +300,6 @@ h3.time
.list h1
font-size .7rem
.list.posts
.post
margin-bottom 2rem
.post h1
text-transform none
font-size 1.6rem
line-height 1.8rem
margin-bottom 1rem
display block
.post h2
font-size .7rem
font-weight 400
line-height 1rem
margin-top 0
li.post:before
content ""
div.root
h1
margin-bottom 2rem

View File

@ -1,10 +1,9 @@
h1
&.lead
margin-top 1rem
margin-bottom 6rem
font-size 1.6rem
line-height 2rem
margin-bottom 3rem
h1.lead
margin-top 1rem
margin-bottom 6rem
font-size 1.6rem
line-height 2rem
margin-bottom 3rem
h2
margin-top 3rem
@ -12,6 +11,26 @@ h2
margin-top 0
line-height .7rem
.list.posts
.post
margin-bottom 2rem
.post h1
text-transform none
font-size 1.6rem
line-height 1.8rem
margin-bottom 1rem
display block
.post h2
font-size .7rem
font-weight 400
line-height 1rem
margin-top 0
li.post:before
content ""
#nav
#sibs
width 11rem

View File

@ -1,4 +1,4 @@
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/actions/TreeActions.coffee":[function(require,module,exports){
var TreeDispatcher, TreePersistence;
TreeDispatcher = require('../dispatcher/Dispatcher.coffee');
@ -35,7 +35,8 @@ module.exports = {
};
},{"../dispatcher/Dispatcher.coffee":14,"../persistence/TreePersistence.coffee":20}],2:[function(require,module,exports){
},{"../dispatcher/Dispatcher.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/dispatcher/Dispatcher.coffee","../persistence/TreePersistence.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/persistence/TreePersistence.coffee"}],"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/AnchorComponent.coffee":[function(require,module,exports){
var BodyComponent, CLICK, Links, TreeActions, TreeStore, a, clas, div, query, reactify, recl, ref;
clas = require('classnames');
@ -292,7 +293,8 @@ module.exports = query({
}));
},{"../actions/TreeActions.coffee":1,"../stores/TreeStore.coffee":21,"./Async.coffee":3,"./BodyComponent.coffee":4,"./Reactify.coffee":11,"classnames":16}],3:[function(require,module,exports){
},{"../actions/TreeActions.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/actions/TreeActions.coffee","../stores/TreeStore.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/stores/TreeStore.coffee","./Async.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/Async.coffee","./BodyComponent.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/BodyComponent.coffee","./Reactify.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/Reactify.coffee","classnames":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/node_modules/classnames/index.js"}],"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/Async.coffee":[function(require,module,exports){
var TreeActions, TreeStore, _load, code, div, recl, ref, span;
_load = require('./LoadComponent.coffee');
@ -395,7 +397,8 @@ module.exports = function(queries, Child, load) {
};
},{"../actions/TreeActions.coffee":1,"../stores/TreeStore.coffee":21,"./LoadComponent.coffee":10}],4:[function(require,module,exports){
},{"../actions/TreeActions.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/actions/TreeActions.coffee","../stores/TreeStore.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/stores/TreeStore.coffee","./LoadComponent.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/LoadComponent.coffee"}],"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/BodyComponent.coffee":[function(require,module,exports){
var div, query, reactify, recl;
query = require('./Async.coffee');
@ -425,7 +428,8 @@ module.exports = query({
}));
},{"./Async.coffee":3,"./Reactify.coffee":11}],5:[function(require,module,exports){
},{"./Async.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/Async.coffee","./Reactify.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/Reactify.coffee"}],"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/CodeMirror.coffee":[function(require,module,exports){
var div, recl, ref, textarea;
recl = React.createClass;
@ -448,7 +452,8 @@ module.exports = recl({
});
},{}],6:[function(require,module,exports){
},{}],"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/Components.coffee":[function(require,module,exports){
var div, recl;
recl = React.createClass;
@ -470,7 +475,8 @@ module.exports = {
};
},{"./CodeMirror.coffee":5,"./EmailComponent.coffee":7,"./KidsComponent.coffee":8,"./ListComponent.coffee":9,"./SearchComponent.coffee":12,"./TocComponent.coffee":13}],7:[function(require,module,exports){
},{"./CodeMirror.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/CodeMirror.coffee","./EmailComponent.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/EmailComponent.coffee","./KidsComponent.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/KidsComponent.coffee","./ListComponent.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/ListComponent.coffee","./SearchComponent.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/SearchComponent.coffee","./TocComponent.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/TocComponent.coffee"}],"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/EmailComponent.coffee":[function(require,module,exports){
var button, div, input, p, reactify, recl, ref;
reactify = require('./Reactify.coffee');
@ -550,7 +556,8 @@ module.exports = recl({
});
},{"./Reactify.coffee":11}],8:[function(require,module,exports){
},{"./Reactify.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/Reactify.coffee"}],"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/KidsComponent.coffee":[function(require,module,exports){
var a, div, hr, li, query, reactify, recl, ref, ul;
reactify = require('./Reactify.coffee');
@ -621,7 +628,8 @@ module.exports = query({
}));
},{"./Async.coffee":3,"./Reactify.coffee":11}],9:[function(require,module,exports){
},{"./Async.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/Async.coffee","./Reactify.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/Reactify.coffee"}],"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/ListComponent.coffee":[function(require,module,exports){
var a, clas, div, h1, li, query, reactify, recl, ref, ul;
clas = require('classnames');
@ -765,7 +773,8 @@ module.exports = query({
}));
},{"./Async.coffee":3,"./Reactify.coffee":11,"classnames":16}],10:[function(require,module,exports){
},{"./Async.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/Async.coffee","./Reactify.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/Reactify.coffee","classnames":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/node_modules/classnames/index.js"}],"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/LoadComponent.coffee":[function(require,module,exports){
var div, input, recl, ref, textarea;
recl = React.createClass;
@ -805,7 +814,8 @@ module.exports = recl({
});
},{}],11:[function(require,module,exports){
},{}],"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/Reactify.coffee":[function(require,module,exports){
var Virtual, div, load, reactify, recl, ref, rele, span, walk;
recl = React.createClass;
@ -872,7 +882,8 @@ module.exports = _.extend(reactify, {
});
},{"./LoadComponent.coffee":10}],12:[function(require,module,exports){
},{"./LoadComponent.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/LoadComponent.coffee"}],"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/SearchComponent.coffee":[function(require,module,exports){
var a, div, input, query, reactify, recl, ref,
slice = [].slice;
@ -1010,7 +1021,8 @@ module.exports = query({
}));
},{"./Async.coffee":3,"./Reactify.coffee":11}],13:[function(require,module,exports){
},{"./Async.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/Async.coffee","./Reactify.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/Reactify.coffee"}],"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/TocComponent.coffee":[function(require,module,exports){
var div, query, reactify, recl,
slice = [].slice;
@ -1138,7 +1150,8 @@ module.exports = query({
}));
},{"./Async.coffee":3,"./Reactify.coffee":11}],14:[function(require,module,exports){
},{"./Async.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/Async.coffee","./Reactify.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/Reactify.coffee"}],"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/dispatcher/Dispatcher.coffee":[function(require,module,exports){
var Dispatcher;
Dispatcher = require('flux').Dispatcher;
@ -1159,7 +1172,8 @@ module.exports = _.extend(new Dispatcher(), {
});
},{"flux":17}],15:[function(require,module,exports){
},{"flux":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/node_modules/flux/index.js"}],"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/main.coffee":[function(require,module,exports){
var rend;
rend = React.render;
@ -1305,7 +1319,8 @@ $(function() {
});
},{"./actions/TreeActions.coffee":1,"./components/AnchorComponent.coffee":2,"./components/BodyComponent.coffee":4,"./components/Components.coffee":6,"./persistence/TreePersistence.coffee":20}],16:[function(require,module,exports){
},{"./actions/TreeActions.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/actions/TreeActions.coffee","./components/AnchorComponent.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/AnchorComponent.coffee","./components/BodyComponent.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/BodyComponent.coffee","./components/Components.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/components/Components.coffee","./persistence/TreePersistence.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/persistence/TreePersistence.coffee"}],"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/node_modules/classnames/index.js":[function(require,module,exports){
/*!
Copyright (c) 2015 Jed Watson.
Licensed under the MIT License (MIT), see
@ -1355,7 +1370,7 @@ $(function() {
}
}());
},{}],17:[function(require,module,exports){
},{}],"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/node_modules/flux/index.js":[function(require,module,exports){
/**
* Copyright (c) 2014-2015, Facebook, Inc.
* All rights reserved.
@ -1367,7 +1382,7 @@ $(function() {
module.exports.Dispatcher = require('./lib/Dispatcher')
},{"./lib/Dispatcher":18}],18:[function(require,module,exports){
},{"./lib/Dispatcher":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/node_modules/flux/lib/Dispatcher.js"}],"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/node_modules/flux/lib/Dispatcher.js":[function(require,module,exports){
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
@ -1619,7 +1634,7 @@ var _prefix = 'ID_';
module.exports = Dispatcher;
},{"./invariant":19}],19:[function(require,module,exports){
},{"./invariant":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/node_modules/flux/lib/invariant.js"}],"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/node_modules/flux/lib/invariant.js":[function(require,module,exports){
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
@ -1674,7 +1689,7 @@ var invariant = function(condition, format, a, b, c, d, e, f) {
module.exports = invariant;
},{}],20:[function(require,module,exports){
},{}],"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/persistence/TreePersistence.coffee":[function(require,module,exports){
var dedup;
dedup = {};
@ -1732,7 +1747,8 @@ module.exports = {
};
},{}],21:[function(require,module,exports){
},{}],"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/stores/TreeStore.coffee":[function(require,module,exports){
var EventEmitter, MessageDispatcher, QUERIES, TreeStore, _curr, _data, _tree, clog;
EventEmitter = require('events').EventEmitter;
@ -1769,8 +1785,6 @@ TreeStore = _.extend(EventEmitter.prototype, {
return _path.split("/");
},
fulfill: function(path, query) {
console.log('fulfill');
console.log(path);
return this.fulfillAt(this.getTree(path.split('/')), path, query);
},
fulfillAt: function(tree, path, query) {
@ -1956,7 +1970,8 @@ TreeStore.dispatchToken = MessageDispatcher.register(function(payload) {
module.exports = TreeStore;
},{"../dispatcher/Dispatcher.coffee":14,"events":22}],22:[function(require,module,exports){
},{"../dispatcher/Dispatcher.coffee":"/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/dispatcher/Dispatcher.coffee","events":"/usr/local/lib/node_modules/watchify/node_modules/browserify/node_modules/events/events.js"}],"/usr/local/lib/node_modules/watchify/node_modules/browserify/node_modules/events/events.js":[function(require,module,exports){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
@ -2016,8 +2031,10 @@ EventEmitter.prototype.emit = function(type) {
er = arguments[1];
if (er instanceof Error) {
throw er; // Unhandled 'error' event
} else {
throw TypeError('Uncaught, unspecified "error" event.');
}
throw TypeError('Uncaught, unspecified "error" event.');
return false;
}
}
@ -2259,4 +2276,4 @@ function isUndefined(arg) {
return arg === void 0;
}
},{}]},{},[15]);
},{}]},{},["/Users/galen/src/urbit-dev/urb/zod/pub/tree/src/js/main.coffee"]);

View File

@ -19,8 +19,6 @@ TreeStore = _.extend EventEmitter.prototype, {
pathToArr: (_path) -> _path.split "/"
fulfill: (path,query) ->
console.log 'fulfill'
console.log path
@fulfillAt (@getTree path.split '/'),path,query
fulfillAt: (tree,path,query)->
data = @fulfillLocal path, query