Skip to content

Commit 7b6a7ee

Browse files
Initial commit
0 parents  commit 7b6a7ee

File tree

11 files changed

+3370
-0
lines changed

11 files changed

+3370
-0
lines changed

.gitignore

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
*.DS_Store
2+
.AppleDouble
3+
.LSOverride
4+
5+
# Icon must end with two \r
6+
Icon
7+
8+
9+
# Thumbnails
10+
._*
11+
12+
# Files that might appear in the root of a volume
13+
.DocumentRevisions-V100
14+
.fseventsd
15+
.Spotlight-V100
16+
.TemporaryItems
17+
.Trashes
18+
.VolumeIcon.icns
19+
.com.apple.timemachine.donotpresent
20+
21+
# Directories potentially created on remote AFP share
22+
.AppleDB
23+
.AppleDesktop
24+
Network Trash Folder
25+
Temporary Items
26+
.apdisk
27+
28+
*~
29+
30+
# temporary files which can be created if a process still has a handle open of a deleted file
31+
.fuse_hidden*
32+
33+
# KDE directory preferences
34+
.directory
35+
36+
# Linux trash folder which might appear on any partition or disk
37+
.Trash-*
38+
39+
# Windows image file caches
40+
Thumbs.db
41+
ehthumbs.db
42+
43+
# Folder config file
44+
Desktop.ini
45+
46+
# Recycle Bin used on file shares
47+
$RECYCLE.BIN/
48+
49+
# Windows Installer files
50+
*.cab
51+
*.msi
52+
*.msm
53+
*.msp
54+
55+
# Windows shortcuts
56+
*.lnk
57+
58+
# JetBrains IDEs
59+
.idea
60+
61+
# Directory for instrumented libs generated by jscoverage/JSCover
62+
lib-cov
63+
64+
# Coverage directory used by tools like istanbul
65+
coverage
66+
67+
# nyc test coverage
68+
.nyc_output
69+
70+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
71+
.grunt
72+
73+
# node-waf configuration
74+
.lock-wscript
75+
76+
# Compiled binary addons (http://nodejs.org/api/addons.html)
77+
build/Release
78+
79+
# Dependency directories
80+
node_modules
81+
jspm_packages
82+
83+
# Optional npm cache directory
84+
.npm
85+
86+
# Optional REPL history
87+
.node_repl_history
88+
89+
# Dependency directories
90+
bower_components
91+
92+
# Sass Cache
93+
.sass-cache

Gruntfile.js

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
module.exports = function (grunt) {
2+
grunt.loadNpmTasks('grunt-contrib-sass');
3+
grunt.loadNpmTasks('grunt-contrib-concat');
4+
grunt.loadNpmTasks('grunt-contrib-connect');
5+
grunt.loadNpmTasks('grunt-contrib-clean');
6+
grunt.loadNpmTasks('grunt-contrib-watch');
7+
grunt.loadNpmTasks('grunt-postcss');
8+
9+
// Project configuration.
10+
grunt.initConfig({
11+
pkg: grunt.file.readJSON('package.json'),
12+
buildDir: 'dist',
13+
outputFile: '<%= buildDir %>/csh-material-bootstrap.min.css',
14+
banner: '/*!\n' +
15+
' * <%= pkg.name %> v<%= pkg.version %>\n' +
16+
' * Homepage: <%= pkg.homepage %>\n' +
17+
' * Copyright 2012-<%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
18+
' * Licensed under <%= pkg.license %>\n' +
19+
' * Based on Bootstrap\n' +
20+
'*/\n',
21+
clean: {
22+
all: {
23+
src: ['sass/build.scss', '<%= outputFile %>*']
24+
},
25+
build: {
26+
src: ['sass/build.scss']
27+
}
28+
},
29+
concat: {
30+
options: {
31+
banner: '<%= banner %>',
32+
stripBanners: false
33+
},
34+
dist: {
35+
src: 'sass/csh-material-bootstrap.scss',
36+
dest: 'sass/build.scss'
37+
}
38+
},
39+
sass: {
40+
dist: {
41+
files: {
42+
'<%= outputFile %>': ['sass/build.scss']
43+
},
44+
options: {
45+
style: 'expanded',
46+
precision: 8,
47+
'unix-newlines': true
48+
}
49+
}
50+
},
51+
postcss: {
52+
options: {
53+
map: true,
54+
processors: [
55+
require('pixrem')(),
56+
require('autoprefixer')({
57+
browsers: [
58+
"Android 2.3",
59+
"Android >= 4",
60+
"Chrome >= 20",
61+
"Firefox >= 24",
62+
"Explorer >= 8",
63+
"iOS >= 6",
64+
"Opera >= 12",
65+
"Safari >= 6"
66+
]
67+
}),
68+
require('css-mqpacker')(),
69+
require('cssnano')({
70+
autoprefixer: false,
71+
safe: true,
72+
sourcemap: false
73+
})
74+
]
75+
},
76+
dist: {
77+
src: '<%= outputFile %>'
78+
}
79+
},
80+
watch: {
81+
files: ['sass/csh-material-bootstrap.scss', 'sass/variables.scss', 'index.html'],
82+
tasks: 'build',
83+
options: {
84+
livereload: true,
85+
nospawn: true
86+
}
87+
},
88+
connect: {
89+
base: {
90+
options: {
91+
port: 3000,
92+
livereload: true,
93+
open: true
94+
}
95+
},
96+
keepalive: {
97+
options: {
98+
port: 3000,
99+
livereload: true,
100+
keepalive: true,
101+
open: true
102+
}
103+
}
104+
}
105+
});
106+
107+
grunt.registerTask('build', ['clean:all', 'concat', 'sass:dist', 'postcss', 'clean:build']);
108+
109+
grunt.event.on('watch', function (action) {
110+
var path = require('path');
111+
});
112+
113+
grunt.registerTask('server', 'connect:keepalive');
114+
115+
grunt.registerTask('default', ['connect:base', 'watch']);
116+
};

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Computer Science House
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
CSH Material Bootstrap
2+
=======================
3+
4+
A material theme for [Bootstrap](http://getbootstrap.com) for use on [Computer Science House](http://csh.rit.edu) websites.
5+
6+
Usage
7+
------
8+
Download `dist/csh-material-bootstrap.min.css` and replace Bootstrap's default stylesheet. You must still include Bootstrap's JavaScript file to have functional dropdowns, modals, etc.
9+
10+
You can import a theme into your styles using SASS.
11+
12+
```
13+
@import "csh-material-bootstrap/variables";
14+
@import "bootstrap-sass/assets/stylesheets/bootstrap";
15+
@import "csh-material-bootstrap/csh-material-bootstrap";
16+
```
17+
18+
Development
19+
------------
20+
You must have Node and Grunt CLI installed. To install Grunt CLI, run: `npm install -g grunt-cli`. Once you have those tools installed, clone this repo and run the following commands to install dependencies:
21+
22+
```
23+
npm install
24+
bower install
25+
```
26+
27+
Once all of the dependencies are installed, run `grunt build` to build the theme (artifacts will be dropped in `./dist`), or simply `grunt` to start a live reload server for development.
28+
29+
30+
Contributing
31+
-------------
32+
**Issues:** Provide a detailed report of any bugs you encounter and open an issue on [GitHub](https://github.com/ComputerScienceHouse/csh-material-bootstrap/issues). Screenshots are appreciated!
33+
34+
**Code:** Fork this repo, make a fix, and submit it as a pull request.

bower.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "csh-material-bootstrap",
3+
"description": "A material design Bootstrap theme for Computer Science House.",
4+
"author": "Computer Science House",
5+
"homepage": "http://csh.rit.edu/",
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/ComputerScienceHouse/csh-material-bootstrap.git"
9+
},
10+
"license": "MIT",
11+
"ignore": [
12+
"bower_components",
13+
".gitignore",
14+
"Gruntfile.js",
15+
"index.html",
16+
"package.json",
17+
"*/index.html"
18+
],
19+
"devDependencies": {
20+
"bootstrap-sass": "bootstrap-sass-official#^3.3.6"
21+
}
22+
}

dist/csh-material-bootstrap.min.css

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/csh-material-bootstrap.min.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)