Skip to content

Commit

Permalink
Add basic files
Browse files Browse the repository at this point in the history
  • Loading branch information
singuerinc committed Jan 4, 2017
0 parents commit 2b96ade
Show file tree
Hide file tree
Showing 8 changed files with 242 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
77 changes: 77 additions & 0 deletions dist/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
html, body {
margin: 0;
padding: 0;
font-size: 20px;
overflow: hidden; }

body.playbook {
background-color: #F7F7F7; }

section#zazu {
background-color: rgba(234, 234, 234, 0.9);
background-position: 530px 5px;
background-repeat: no-repeat;
background-size: 60px;
-webkit-app-region: drag;
cursor: move; }
section#zazu input {
outline: none;
font-size: 40px;
width: 500px;
padding: 10px;
border: 0;
background-color: transparent;
-webkit-app-region: no-drag;
cursor: auto; }
section#zazu iframe#preview {
border: 0; }
section#zazu div.results {
display: flex;
flex-direction: row; }
section#zazu div.results ul {
padding: 0;
margin: 0;
border-top: 1px solid rgba(222, 222, 222, 0.9);
max-height: 333px;
overflow: hidden;
width: 50%; }
section#zazu div.results ul:last-child {
width: 100%; }
section#zazu div.results ul + div {
width: 50%; }
section#zazu div.results ul li {
display: block;
height: 45px;
line-height: 45px;
border-bottom: 1px solid rgba(222, 222, 222, 0.9);
-webkit-app-region: no-drag;
cursor: pointer;
width: 100%; }
section#zazu div.results ul li .icon {
text-align: center;
line-height: 30px;
height: 30px;
width: 30px;
margin: 7.5px;
float: left; }
section#zazu div.results ul li h2, section#zazu div.results ul li h3 {
margin: 0;
padding-left: 10px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-weight: 400;
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif; }
section#zazu div.results ul li h2 {
font-size: 20px;
line-height: 25px; }
section#zazu div.results ul li h2:last-child {
font-size: 20px;
line-height: 45px; }
section#zazu div.results ul li h3 {
font-size: 15px;
line-height: 15px; }
section#zazu div.results ul li.active {
background-color: rgba(189, 160, 203, 0.9); }
section#zazu div.results ul li:hover {
background-color: rgba(212, 193, 221, 0.9); }
9 changes: 9 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
var gulp = require('gulp');
var sass = require('gulp-sass');
var path = require('path');

gulp.task('build', function () {
return gulp.src('./sass/**/*.scss')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('./dist'));
});
Binary file added images/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "clean-theme",
"version": "1.0.0",
"description": "A clean theme for Zazu.",
"main": "gulpfile.js",
"scripts": {
"build": "gulp build"
},
"author": "Nahuel Scotti",
"license": "MIT",
"dependencies": {
"gulp": "^3.9.1",
"gulp-sass": "^2.3.1"
}
}
22 changes: 22 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## Clean Theme

A clean theme written in SASS with node/gulp.

![Screenshot](./images/screenshot.png)

## Installing

Mark `singuerinc/zazu-clean-theme` inside of your `~/.zazurc.json` file.

~~~ json
{
"theme": "singuerinc/zazu-clean-theme"
}
~~~

## Building

~~~
npm install
npm run build
~~~
111 changes: 111 additions & 0 deletions sass/main.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
$main: #F7F7F7;
$secondary: #BDA0CB;
$transparency: 0.1;

html, body {
margin: 0;
padding: 0;
font-size: 20px;
overflow: hidden;
}

body.playbook {
background-color: $main;
}

section#zazu {
background-color: transparentize(darken($main, 5%), $transparency);
background-position: 530px 5px;
background-repeat: no-repeat;
background-size: 60px;
-webkit-app-region: drag;
cursor: move;

input {
outline: none;
font-size: 40px;
width: 500px;
padding: 10px;
border: 0;
background-color: transparent;
-webkit-app-region: no-drag;
cursor: auto;
}

iframe#preview {
border: 0;
}

div.results {
display: flex;
flex-direction: row;

ul {
padding: 0;
margin: 0;
border-top: 1px solid transparentize(darken($main, 10%), $transparency);
max-height: 333px;
overflow: hidden;
width: 50%;

&:last-child {
width: 100%;
}

+ div {
width: 50%;
}

li {
display: block;
height: 45px;
line-height: 45px;
border-bottom: 1px solid transparentize(darken($main, 10%), $transparency);
-webkit-app-region: no-drag;
cursor: pointer;
width: 100%;

.icon {
text-align: center;
line-height: 30px;
height: 30px;
width: 30px;
margin: 7.5px;
float: left;
}

h2, h3 {
margin: 0;
padding-left: 10px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-weight: 400;
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}

h2 {
font-size: 20px;
line-height: 25px;
&:last-child {
font-size: 20px;
line-height: 45px;
}
}

h3 {
font-size: 15px;
line-height: 15px;
}

&.active {
background-color: transparentize($secondary, $transparency);
}

&:hover {
background-color: transparentize(lighten($secondary, 10%), $transparency);
}
}
}
}
}
7 changes: 7 additions & 0 deletions zazu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "Clean Theme",
"version": "1.0.0",
"author": "singuerinc",
"description": "A basic clean theme for Zazu",
"stylesheet": "dist/main.css"
}

0 comments on commit 2b96ade

Please sign in to comment.