Adds twitter account, update build deps

This commit is contained in:
Nikolai Kristiansen
2015-11-25 22:24:52 +01:00
parent 97740d30bf
commit 02e0e77fe7
8 changed files with 62 additions and 67 deletions

View File

@@ -1,3 +0,0 @@
{
"directory": "app/bower_components"
}

2
.gitignore vendored
View File

@@ -1,5 +1,5 @@
node_modules node_modules
.tmp .tmp
.sass-cache .sass-cache
app/bower_components bower_components
*.swp *.swp

View File

@@ -59,7 +59,7 @@
<li>Leder: Jonas Braathen +47 454 80 454</li> <li>Leder: Jonas Braathen +47 454 80 454</li>
<li>IRC: <a href="irc://irc.oftc.net/edb">#EDB@OFTC</a></li> <li>IRC: <a href="irc://irc.oftc.net/edb">#EDB@OFTC</a></li>
<li>M&oslash;tetid: Hver onsdag kl. 18.13.37 p&aring; KAK (<a href="https://viteboka.studentersamfundet.no/4._etasje">4. etg</a>)</li> <li>M&oslash;tetid: Hver onsdag kl. 18.13.37 p&aring; KAK (<a href="https://viteboka.studentersamfundet.no/4._etasje">4. etg</a>)</li>
<li>Twitter: <a href="http://twitter.com/KAK_DNS">@KAK_DNS</a></li> <li>Twitter: <a href="http://twitter.com/edbgjengen">@edbgjengen</a> eller <a href="http://twitter.com/KAK_DNS">@KAK_DNS</a></li>
</ul> </ul>
<div class="form-link"> <div class="form-link">

View File

@@ -2,7 +2,7 @@
"name": "edb-www", "name": "edb-www",
"private": true, "private": true,
"dependencies": { "dependencies": {
"bootstrap-sass": "~3.3.5" "bootstrap-sass": "~3.3.6"
}, },
"overrides": { "overrides": {
"bootstrap-sass": { "bootstrap-sass": {

2
dist/index.html vendored
View File

@@ -57,7 +57,7 @@
<li>Leder: Jonas Braathen +47 454 80 454</li> <li>Leder: Jonas Braathen +47 454 80 454</li>
<li>IRC: <a href="irc://irc.oftc.net/edb">#EDB@OFTC</a></li> <li>IRC: <a href="irc://irc.oftc.net/edb">#EDB@OFTC</a></li>
<li>M&oslash;tetid: Hver onsdag kl. 18.13.37 p&aring; KAK (<a href="https://viteboka.studentersamfundet.no/4._etasje">4. etg</a>)</li> <li>M&oslash;tetid: Hver onsdag kl. 18.13.37 p&aring; KAK (<a href="https://viteboka.studentersamfundet.no/4._etasje">4. etg</a>)</li>
<li>Twitter: <a href="http://twitter.com/KAK_DNS">@KAK_DNS</a></li> <li>Twitter: <a href="http://twitter.com/edbgjengen">@edbgjengen</a> eller <a href="http://twitter.com/KAK_DNS">@KAK_DNS</a></li>
</ul> </ul>
<div class="form-link"> <div class="form-link">

72
dist/styles/main.css vendored
View File

@@ -1,11 +1,17 @@
@charset "UTF-8";
/*! /*!
* Bootstrap v3.3.5 (http://getbootstrap.com) * Bootstrap v3.3.6 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc. * Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/ */
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */ /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
img {
border: 0;
}
body { body {
margin: 0; margin: 0;
} }
@@ -14,8 +20,6 @@ html {
font-family: sans-serif; font-family: sans-serif;
-ms-text-size-adjust: 100%; -ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
font-size: 10px;
-webkit-tap-highlight-color: transparent;
} }
header { header {
@@ -36,7 +40,6 @@ h1 {
} }
img { img {
border: 0;
vertical-align: middle; vertical-align: middle;
} }
@@ -89,16 +92,16 @@ input::-moz-focus-inner {
} }
} }
body {
background-color: #fff;
}
.btn, .btn,
.btn-primary:active, .btn-primary:active,
.btn:active { .btn:active {
background-image: none; background-image: none;
} }
body {
background-color: #fff;
}
@font-face { @font-face {
font-family: 'Glyphicons Halflings'; font-family: 'Glyphicons Halflings';
src: url(../bower_components/bootstrap-sass/assets/fonts/bootstrap/glyphicons-halflings-regular.eot); src: url(../bower_components/bootstrap-sass/assets/fonts/bootstrap/glyphicons-halflings-regular.eot);
@@ -111,6 +114,11 @@ body {
box-sizing: border-box; box-sizing: border-box;
} }
html {
font-size: 10px;
-webkit-tap-highlight-color: transparent;
}
body { body {
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
font-size: 14px; font-size: 14px;
@@ -167,10 +175,6 @@ h4 {
font-size: 18px; font-size: 18px;
} }
.btn {
text-align: center;
}
.page-header { .page-header {
padding-bottom: 9px; padding-bottom: 9px;
margin: 40px 0 20px; margin: 40px 0 20px;
@@ -185,36 +189,36 @@ ul {
margin-bottom: 10px; margin-bottom: 10px;
} }
@media (min-width:768px) {
.container {
width: 750px;
}
}
.container:after, .container:after,
.row:after, .row:after,
[class*=block-grid-]:after { [class*=block-grid-]:after {
clear: both; clear: both;
} }
.container:after,
.container:before,
.row:after,
.row:before {
display: table;
content: " ";
}
.container { .container {
margin-right: auto; margin-right: auto;
margin-left: auto; margin-left: auto;
} }
.container:after,
.container:before,
.row:after,
.row:before {
content: " ";
display: table;
}
.container { .container {
padding-left: 15px; padding-left: 15px;
padding-right: 15px; padding-right: 15px;
} }
@media (min-width:768px) {
.container {
width: 750px;
}
}
@media (min-width:992px) { @media (min-width:992px) {
.container { .container {
width: 970px; width: 970px;
@@ -258,10 +262,16 @@ ul {
color: #999; color: #999;
} }
.form-control::-ms-expand {
border: 0;
background-color: transparent;
}
.btn { .btn {
display: inline-block; display: inline-block;
margin-bottom: 0; margin-bottom: 0;
font-weight: 400; font-weight: 400;
text-align: center;
vertical-align: middle; vertical-align: middle;
touch-action: manipulation; touch-action: manipulation;
cursor: pointer; cursor: pointer;
@@ -381,6 +391,10 @@ ul {
.block-grid-sm-3>.block-grid-item:nth-of-type(3n+1) { .block-grid-sm-3>.block-grid-item:nth-of-type(3n+1) {
clear: both; clear: both;
} }
.form-link {
display: none;
}
} }
@media (min-width:992px) { @media (min-width:992px) {
@@ -414,12 +428,6 @@ h3 {
font-weight: 700; font-weight: 700;
} }
@media (min-width:768px) {
.form-link {
display: none;
}
}
.join-us-title { .join-us-title {
margin-top: 40px; margin-top: 40px;
margin-bottom: 0; margin-bottom: 0;

View File

@@ -28,15 +28,11 @@ gulp.task('scripts', function () {
}); });
gulp.task('html', ['styles', 'scripts'], function () { gulp.task('html', ['styles', 'scripts'], function () {
var assets = $.useref.assets({searchPath: '{.tmp,app}'})
return gulp.src('app/*.html') return gulp.src('app/*.html')
.pipe(assets) .pipe($.useref({searchPath: '{.tmp,app}'}))
.pipe($.if('*.js', $.uglify())) .pipe($.if('*.js', $.uglify()))
.pipe($.if('*.css', $.minifyCss({compatibility: '*'}))) .pipe($.if('*.css', $.minifyCss({compatibility: '*'})))
.pipe($.if('*.css', $.uncss(({html: ['app/index.html']})))) .pipe($.if('*.css', $.uncss(({html: ['app/index.html']}))))
.pipe(assets.restore())
.pipe($.useref())
.pipe(gulp.dest('dist')); .pipe(gulp.dest('dist'));
}); });
@@ -63,7 +59,7 @@ gulp.task('extras', function () {
}); });
gulp.task('clean', function (cb) { gulp.task('clean', function (cb) {
del(['.tmp', 'dist'], cb); return del(['.tmp', 'dist'], cb);
}); });
gulp.task('build', ['html', 'images', 'fonts', 'extras'], function() { gulp.task('build', ['html', 'images', 'fonts', 'extras'], function() {
@@ -80,9 +76,6 @@ gulp.task('serve', ['styles'], function () {
port: 9000, port: 9000,
server: { server: {
baseDir: ['.tmp', 'app'], baseDir: ['.tmp', 'app'],
routes: {
'/bower_components': 'bower_components'
}
} }
}); });
}); });
@@ -93,21 +86,19 @@ gulp.task('wiredep', function () {
gulp.src('app/styles/*.scss') gulp.src('app/styles/*.scss')
.pipe(wiredep({ .pipe(wiredep({
directory: 'app/bower_components' directory: 'bower_components'
})) }))
.pipe(gulp.dest('app/styles')); .pipe(gulp.dest('app/styles'));
gulp.src('app/*.html') gulp.src('app/*.html')
.pipe(wiredep({ .pipe(wiredep({
directory: 'app/bower_components', directory: 'bower_components',
exclude: ['bootstrap-sass'] exclude: ['bootstrap-sass']
})) }))
.pipe(gulp.dest('app')); .pipe(gulp.dest('app'));
}); });
gulp.task('watch', ['connect', 'serve'], function () { gulp.task('watch', ['serve'], function () {
var server = $.livereload();
// watch for changes // watch for changes
gulp.watch([ gulp.watch([
@@ -115,9 +106,7 @@ gulp.task('watch', ['connect', 'serve'], function () {
'.tmp/styles/**/*.css', '.tmp/styles/**/*.css',
'app/scripts/**/*.js', 'app/scripts/**/*.js',
'app/images/**/*' 'app/images/**/*'
]).on('change', function (file) { ]).on('change', reload);
server.changed(file.path);
});
gulp.watch('app/styles/**/*.scss', ['styles']); gulp.watch('app/styles/**/*.scss', ['styles']);
gulp.watch('app/scripts/**/*.js', ['scripts']); gulp.watch('app/scripts/**/*.js', ['scripts']);

View File

@@ -6,27 +6,28 @@
"devDependencies": { "devDependencies": {
"browser-sync": "^2.7.13", "browser-sync": "^2.7.13",
"connect": "^3.4.0", "connect": "^3.4.0",
"del": "^1.2.0", "del": "^2.1.0",
"gulp": "^3.9.0", "gulp": "^3.9.0",
"gulp-autoprefixer": "^2.3.1", "gulp-autoprefixer": "^3.1.0",
"gulp-csso": "^1.0.0", "gulp-csso": "^1.0.0",
"gulp-filter": "^2.0.2", "gulp-filter": "^3.0.1",
"gulp-flatten": "^0.0.4", "gulp-flatten": "^0.2.0",
"gulp-if": "^1.2.5", "gulp-if": "^2.0.0",
"gulp-imagemin": "^2.3.0", "gulp-imagemin": "^2.3.0",
"gulp-jshint": "^1.11.0", "gulp-jshint": "^2.0.0",
"gulp-load-plugins": "^1.0.0-rc", "gulp-load-plugins": "^1.0.0-rc",
"gulp-minify-css": "^1.2.0", "gulp-minify-css": "^1.2.0",
"gulp-plumber": "~1.0.1", "gulp-plumber": "~1.0.1",
"gulp-sass": "~2.0.3", "gulp-sass": "~2.1.0",
"gulp-size": "^1.2.2", "gulp-size": "^2.0.0",
"gulp-uglify": "^1.2.0", "gulp-uglify": "^1.2.0",
"gulp-uncss": "^1.0.1", "gulp-uncss": "^1.0.1",
"gulp-useref": "^1.2.0", "gulp-useref": "^3.0.3",
"jshint": "^2.8.0",
"jshint-stylish": "^2.0.1", "jshint-stylish": "^2.0.1",
"main-bower-files": "^2.8.2", "main-bower-files": "^2.8.2",
"opn": "^2.0.1", "opn": "^3.0.3",
"wiredep": "^2.2.2" "wiredep": "^3.0.0-beta"
}, },
"engines": { "engines": {
"node": ">=0.10.0" "node": ">=0.10.0"