Skip to content

Commit

Permalink
Changed: moved non-structural styling to docs/style.css. Closes visio…
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Feb 4, 2012
1 parent a4dd583 commit 97a0466
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 81 deletions.
2 changes: 1 addition & 1 deletion Readme.md
@@ -1,7 +1,7 @@

![UIKit JavaScript component framework](http://f.cl.ly/items/2j0m3D1l1T041S1k463L/Grab.png)

UIKit is a small (4kb minified / gzipped) collection of flexible, cohesive, decoupled components for the modern web. With an emphasis on (mostly) structure-only styling making it simple to apply application specific styling. UIKit is _not_ a replacement for larger UI frameworks, nor is it a CSS framework such as Bootstrap. UIKit is still a work in progress, check the [Issues](https://github.com/visionmedia/uikit/issues).
UIKit is a small (4kb minified / gzipped) collection of flexible, cohesive, decoupled components for the modern web. With an emphasis on structure-only styling making it simple to apply application specific styling. UIKit is _not_ a replacement for larger UI frameworks, nor is it a CSS framework such as Bootstrap. UIKit is still a work in progress, check the [Issues](https://github.com/visionmedia/uikit/issues).

## Components

Expand Down
39 changes: 0 additions & 39 deletions build/ui.css
Expand Up @@ -5,9 +5,6 @@
max-width: 600px;
min-width: 250px;
border: 1px solid #eee;
border-bottom-color: #cacaca;
-webkit-border-radius: 3px;
-webkit-box-shadow: 0 1px 4px 0 #ddd;
background: white;
z-index: 1000;
}
Expand All @@ -28,36 +25,6 @@
font-size: .9em;
}

#dialog .actions button {
padding: 5px;
background: transparent;
border: none;
outline: none;
cursor: pointer;
}

#dialog .actions button:hover {
text-decoration: underline;
}

#dialog .actions button.main {
padding: 5px 15px;
background: -webkit-linear-gradient(top, #fff 20%, #eee);
border: 1px solid #eee;
border-bottom-color: #cacaca;
-webkit-border-radius: 3px;
outline: none;
}

#dialog .actions button.main:hover {
text-decoration: none;
background: -webkit-linear-gradient(top, #fff 50%, #eee);
}

#dialog .actions button.main:active {
background: -webkit-linear-gradient(bottom, #fff 20%, #eee);
}

#dialog.modal {
-webkit-box-shadow: 0 1px 8px 0 black;
}
Expand Down Expand Up @@ -159,9 +126,6 @@
max-width: 600px;
min-width: 250px;
border: 1px solid #eee;
border-bottom-color: #cacaca;
-webkit-border-radius: 3px;
-webkit-box-shadow: 0 1px 4px 0 #ddd;
background: white;
z-index: 100;
}
Expand Down Expand Up @@ -255,10 +219,7 @@
margin: 0;
padding: 0;
background: white;
-webkit-border-radius: 5px;
font-size: 12px;
border: 1px solid rgba(0,0,0,0.2);
-webkit-box-shadow: 0 10px 30px 0 rgba(0,0,0,0.1), 0 2px 6px 0 rgba(0,0,0,0.2);
}

#context-menu li {
Expand Down
2 changes: 1 addition & 1 deletion build/ui.js
Expand Up @@ -644,7 +644,7 @@ ColorPicker.prototype.spectrumEvents = function(){
, down;

function update(e) {
var color = self.hueAt(e.offsetY);
var color = self.hueAt(e.offsetY - 4);
self.hue(color.toString());
self.emit('change', color);
self._huePos = e.offsetY;
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Expand Up @@ -216,7 +216,7 @@ <h1>UI<strong>kit</strong></h1>
<span>Modern UI components for the modern web</span>
</div>

<p>UIKit is a small collection of flexible, decoupled components for the modern web. With an emphasis on structure-only styling making it it simple to apply application specific styling.</p>
<p>UIKit is a small collection of flexible, decoupled jQuery JavaScript components for the modern web. With an emphasis on structure-only styling making it it simple to apply application specific styling.</p>

<section>
<h2 id="dialog-section"><a href="#">Dialog</a></h2>
Expand Down
46 changes: 46 additions & 0 deletions docs/style.css
Expand Up @@ -24,12 +24,58 @@ body {
#card .wrapper .front {
line-height: 150px;
}
#dialog {
border-bottom-color: #cacaca;
border-radius: 3px;
box-shadow: 0 1px 4px 0 #ddd;
}
#dialog .card p {
text-align: center;
line-height: 100px;
font-weight: bold;
font-size: 22px;
}
#dialog .actions button {
padding: 5px;
background: transparent;
border: none;
outline: none;
cursor: pointer;
}
#dialog .actions button:hover {
text-decoration: underline;
}
#dialog .actions button.main {
padding: 5px 15px;
background: -webkit-linear-gradient(top, #fff 20%, #eee);
border: 1px solid #eee;
border-bottom-color: #cacaca;
border-radius: 3px;
outline: none;
}
#dialog .actions button.main:hover {
text-decoration: none;
background: -webkit-linear-gradient(top, #fff 50%, #eee);
}
#dialog .actions button.main:active {
background: -webkit-linear-gradient(bottom, #fff 20%, #eee);
}
#context-menu {
font-size: 12px;
-webkit-border-radius: 5px;
-webkit-box-shadow: 0 10px 30px 0 rgba(0,0,0,0.1), 0 2px 6px 0 rgba(0,0,0,0.2);
}
#context-menu li:first-child a {
-webkit-border-radius: 5px 5px 0 0;
}
#context-menu li:last-child a {
-webkit-border-radius: 0 0 5px 5px;
}
.notification {
border-bottom-color: #cacaca;
-webkit-border-radius: 3px;
-webkit-box-shadow: 0 1px 4px 0 #ddd;
}
#wrapper > section {
margin: 30px 0;
width: 350px;
Expand Down
3 changes: 0 additions & 3 deletions lib/components/context-menu/context-menu.css
Expand Up @@ -7,10 +7,7 @@
margin: 0;
padding: 0;
background: white;
border-radius: 5px;
font-size: 12px;
border: 1px solid rgba(0,0,0,0.2);
box-shadow: 0 10px 30px 0 rgba(0,0,0,0.1), 0 2px 6px 0 rgba(0,0,0,0.2);
}

#context-menu li {
Expand Down
33 changes: 0 additions & 33 deletions lib/components/dialog/dialog.css
Expand Up @@ -5,9 +5,6 @@
max-width: 600px;
min-width: 250px;
border: 1px solid #eee;
border-bottom-color: #cacaca;
border-radius: 3px;
box-shadow: 0 1px 4px 0 #ddd;
background: white;
z-index: 1000;
}
Expand All @@ -28,36 +25,6 @@
font-size: .9em;
}

#dialog .actions button {
padding: 5px;
background: transparent;
border: none;
outline: none;
cursor: pointer;
}

#dialog .actions button:hover {
text-decoration: underline;
}

#dialog .actions button.main {
padding: 5px 15px;
background: linear-gradient(top, #fff 20%, #eee);
border: 1px solid #eee;
border-bottom-color: #cacaca;
border-radius: 3px;
outline: none;
}

#dialog .actions button.main:hover {
text-decoration: none;
background: linear-gradient(top, #fff 50%, #eee);
}

#dialog .actions button.main:active {
background: linear-gradient(bottom, #fff 20%, #eee);
}

#dialog.modal {
box-shadow: 0 1px 8px 0 black;
}
Expand Down
3 changes: 0 additions & 3 deletions lib/components/notification/notification.css
Expand Up @@ -15,9 +15,6 @@
max-width: 600px;
min-width: 250px;
border: 1px solid #eee;
border-bottom-color: #cacaca;
border-radius: 3px;
box-shadow: 0 1px 4px 0 #ddd;
background: white;
z-index: 100;
}
Expand Down

0 comments on commit 97a0466

Please sign in to comment.