gulp tasks and nunjucks templating
- reworked nearly all gulp tasks - added html templating with nunjucks - replaced some old html files - started correction of scss and js files according to lint results
This commit is contained in:
parent
6e4b8cf94b
commit
b8733af03c
37 changed files with 3911 additions and 200 deletions
3
.bowerrc
Normal file
3
.bowerrc
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"directory": "source/bower_components/"
|
||||
}
|
||||
3
.jscsrc
Normal file
3
.jscsrc
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"preset": "google"
|
||||
}
|
||||
92
.jshintrc
92
.jshintrc
|
|
@ -1,7 +1,91 @@
|
|||
{
|
||||
"undef": true,
|
||||
"unused": true,
|
||||
"globals": {
|
||||
// JSHint Default Configuration File (as on JSHint website)
|
||||
// See http://jshint.com/docs/ for more details
|
||||
|
||||
}
|
||||
"maxerr" : 50, // {int} Maximum error before stopping
|
||||
|
||||
// Enforcing
|
||||
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
|
||||
"camelcase" : false, // true: Identifiers must be in camelCase
|
||||
"curly" : true, // true: Require {} for every new block or scope
|
||||
"eqeqeq" : true, // true: Require triple equals (===) for comparison
|
||||
"forin" : true, // true: Require filtering for..in loops with obj.hasOwnProperty()
|
||||
"freeze" : true, // true: prohibits overwriting prototypes of native objects such as Array, Date etc.
|
||||
"immed" : false, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`
|
||||
"latedef" : false, // true: Require variables/functions to be defined before being used
|
||||
"newcap" : false, // true: Require capitalization of all constructor functions e.g. `new F()`
|
||||
"noarg" : true, // true: Prohibit use of `arguments.caller` and `arguments.callee`
|
||||
"noempty" : true, // true: Prohibit use of empty blocks
|
||||
"nonbsp" : true, // true: Prohibit "non-breaking whitespace" characters.
|
||||
"nonew" : false, // true: Prohibit use of constructors for side-effects (without assignment)
|
||||
"plusplus" : false, // true: Prohibit use of `++` and `--`
|
||||
"quotmark" : false, // Quotation mark consistency:
|
||||
// false : do nothing (default)
|
||||
// true : ensure whatever is used is consistent
|
||||
// "single" : require single quotes
|
||||
// "double" : require double quotes
|
||||
"undef" : true, // true: Require all non-global variables to be declared (prevents global leaks)
|
||||
"unused" : true, // Unused variables:
|
||||
// true : all variables, last function parameter
|
||||
// "vars" : all variables only
|
||||
// "strict" : all variables, all function parameters
|
||||
"strict" : true, // true: Requires all functions run in ES5 Strict Mode
|
||||
"maxparams" : false, // {int} Max number of formal params allowed per function
|
||||
"maxdepth" : false, // {int} Max depth of nested blocks (within functions)
|
||||
"maxstatements" : false, // {int} Max number statements per function
|
||||
"maxcomplexity" : false, // {int} Max cyclomatic complexity per function
|
||||
"maxlen" : false, // {int} Max number of characters per line
|
||||
"varstmt" : false, // true: Disallow any var statements. Only `let` and `const` are allowed.
|
||||
|
||||
// Relaxing
|
||||
"asi" : false, // true: Tolerate Automatic Semicolon Insertion (no semicolons)
|
||||
"boss" : false, // true: Tolerate assignments where comparisons would be expected
|
||||
"debug" : false, // true: Allow debugger statements e.g. browser breakpoints.
|
||||
"eqnull" : false, // true: Tolerate use of `== null`
|
||||
"esversion" : 5, // {int} Specify the ECMAScript version to which the code must adhere.
|
||||
"moz" : false, // true: Allow Mozilla specific syntax (extends and overrides esnext features)
|
||||
// (ex: `for each`, multiple try/catch, function expression…)
|
||||
"evil" : false, // true: Tolerate use of `eval` and `new Function()`
|
||||
"expr" : false, // true: Tolerate `ExpressionStatement` as Programs
|
||||
"funcscope" : false, // true: Tolerate defining variables inside control statements
|
||||
"globalstrict" : false, // true: Allow global "use strict" (also enables 'strict')
|
||||
"iterator" : false, // true: Tolerate using the `__iterator__` property
|
||||
"lastsemic" : false, // true: Tolerate omitting a semicolon for the last statement of a 1-line block
|
||||
"laxbreak" : false, // true: Tolerate possibly unsafe line breakings
|
||||
"laxcomma" : false, // true: Tolerate comma-first style coding
|
||||
"loopfunc" : false, // true: Tolerate functions being defined in loops
|
||||
"multistr" : false, // true: Tolerate multi-line strings
|
||||
"noyield" : false, // true: Tolerate generator functions with no yield statement in them.
|
||||
"notypeof" : false, // true: Tolerate invalid typeof operator values
|
||||
"proto" : false, // true: Tolerate using the `__proto__` property
|
||||
"scripturl" : false, // true: Tolerate script-targeted URLs
|
||||
"shadow" : false, // true: Allows re-define variables later in code e.g. `var x=1; x=2;`
|
||||
"sub" : false, // true: Tolerate using `[]` notation when it can still be expressed in dot notation
|
||||
"supernew" : false, // true: Tolerate `new function () { ... };` and `new Object;`
|
||||
"validthis" : false, // true: Tolerate using this in a non-constructor function
|
||||
|
||||
// Environments
|
||||
"browser" : true, // Web Browser (window, document, etc)
|
||||
"browserify" : false, // Browserify (node.js code in the browser)
|
||||
"couch" : false, // CouchDB
|
||||
"devel" : true, // Development/debugging (alert, confirm, etc)
|
||||
"dojo" : false, // Dojo Toolkit
|
||||
"jasmine" : false, // Jasmine
|
||||
"jquery" : true, // jQuery
|
||||
"mocha" : true, // Mocha
|
||||
"mootools" : false, // MooTools
|
||||
"node" : false, // Node.js
|
||||
"nonstandard" : false, // Widely adopted globals (escape, unescape, etc)
|
||||
"phantom" : false, // PhantomJS
|
||||
"prototypejs" : false, // Prototype and Scriptaculous
|
||||
"qunit" : false, // QUnit
|
||||
"rhino" : false, // Rhino
|
||||
"shelljs" : false, // ShellJS
|
||||
"typed" : false, // Globals for typed array constructions
|
||||
"worker" : false, // Web Workers
|
||||
"wsh" : false, // Windows Scripting Host
|
||||
"yui" : false, // Yahoo User Interface
|
||||
|
||||
// Custom Globals
|
||||
"globals" : {} // additional predefined global variables
|
||||
}
|
||||
23
bower.json
Normal file
23
bower.json
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"name": "hippie",
|
||||
"description": "Hippie interweaves preeminent personal interface elements",
|
||||
"main": "gulpfile.js",
|
||||
"authors": [
|
||||
"Interaktionsweise"
|
||||
],
|
||||
"license": "ISC",
|
||||
"homepage": "https://github.com/sthag/hippie",
|
||||
"private": true,
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
"node_modules",
|
||||
"bower_components",
|
||||
"build/bower_components",
|
||||
"test",
|
||||
"tests"
|
||||
],
|
||||
"dependencies": {
|
||||
"jquery": "^3.2.1",
|
||||
"normalize-css": "^7.0.0"
|
||||
}
|
||||
}
|
||||
|
|
@ -1,35 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>HIPPIE Dummy</title>
|
||||
|
||||
<meta name="author" content="Interaktionsweise">
|
||||
<meta name="description" content="hippie example">
|
||||
<meta name="generator" content="Notepad++, Atom">
|
||||
<meta name="robots" content="noindex">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge;chrome=1" />
|
||||
<link rel="icon" href="favicon.ico" type="image/vnd.microsoft.icon">
|
||||
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
|
||||
|
||||
<!-- <link href='https://fonts.googleapis.com/css?family=Roboto:400,300,400italic,500,500italic,700' rel='stylesheet' type='text/css'>-->
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./build/css/example.min.css"/>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<script
|
||||
src="https://code.jquery.com/jquery-3.2.1.min.js"
|
||||
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
|
||||
crossorigin="anonymous"></script>
|
||||
<script src="./build/js/all.min.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
// Page specific
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
261
gulpfile.js
261
gulpfile.js
|
|
@ -1,59 +1,144 @@
|
|||
// Setup project
|
||||
var source = {
|
||||
markup: '*.html',
|
||||
watch: 'source/style/**/*.scss',
|
||||
styles: 'source/style/example.scss',
|
||||
watch: ['source/style/**/*.scss', 'source/templates/**/*.+(html|nunjucks)', 'source/pages/**/*.+(html|nunjucks)'],
|
||||
styles: ['source/style/example.scss', 'source/style/maintenance.scss'],
|
||||
scripts: ['source/code/variables.js', 'source/code/functions.js', 'source/code/global.js', 'source/code/**/*.coffee', '!source/vendor/**/*', ],
|
||||
images: 'source/art/**/*'
|
||||
images: 'source/art/**/*',
|
||||
pages: 'source/pages/**/*.+(html|nunjucks)',
|
||||
vendor: 'vendor/**/*'
|
||||
};
|
||||
var build = {
|
||||
styles: 'build/css',
|
||||
scripts: 'build/js',
|
||||
images: 'build/art'
|
||||
images: 'build/art',
|
||||
vendor: 'build/vendor',
|
||||
root: 'build'
|
||||
}
|
||||
|
||||
// Load plugins
|
||||
const gulp = require('gulp'),
|
||||
rename = require('gulp-rename'),
|
||||
del = require('del');
|
||||
concat = require('gulp-concat'),
|
||||
pump = require('pump'),
|
||||
sourcemap = require('gulp-sourcemaps'),
|
||||
prefix = require('gulp-autoprefixer'),
|
||||
sass = require('gulp-ruby-sass'),
|
||||
cssnano = require('gulp-cssnano'),
|
||||
jshint = require('gulp-jshint'),
|
||||
uglifyjs = require('uglify-es'),
|
||||
composer = require('gulp-uglify/composer'),
|
||||
// imagemin = require('gulp-imagemin'),
|
||||
cache = require('gulp-cached'),
|
||||
remember = require('gulp-remember'),
|
||||
changed = require('gulp-changed'),
|
||||
notify = require('gulp-notify'),
|
||||
browsersync = require('browser-sync').create();
|
||||
rename = require('gulp-rename'),
|
||||
del = require('del');
|
||||
gulpif = require('gulp-if');
|
||||
sequencer = require('run-sequence');
|
||||
concat = require('gulp-concat'),
|
||||
pump = require('pump'),
|
||||
sourcemap = require('gulp-sourcemaps'),
|
||||
prefix = require('gulp-autoprefixer'),
|
||||
testsass = require('gulp-sass'),
|
||||
sass = require('gulp-ruby-sass'),
|
||||
nunjucks = require('gulp-nunjucks-render');
|
||||
cssnano = require('gulp-cssnano'),
|
||||
jshint = require('gulp-jshint'),
|
||||
jscs = require('gulp-jscs'),
|
||||
uglifyjs = require('uglify-es'),
|
||||
composer = require('gulp-uglify/composer'),
|
||||
// imagemin = require('gulp-imagemin'),
|
||||
spritesmith = require('gulp.spritesmith'),
|
||||
cache = require('gulp-cached'),
|
||||
remember = require('gulp-remember'),
|
||||
changed = require('gulp-changed'),
|
||||
newer = require('gulp-newer'),
|
||||
plumber = require('gulp-plumber'),
|
||||
notify = require('gulp-notify'),
|
||||
browsersync = require('browser-sync').create();
|
||||
|
||||
var minify = composer(uglifyjs, console);
|
||||
|
||||
// TEST - Tasks
|
||||
gulp.task('test', function() {
|
||||
return gulp.src('source/style/**/*.+(scss|sass)')
|
||||
.pipe(plumbError('Error Running Sass'))
|
||||
.pipe(sourcemap.init())
|
||||
.pipe(testsass({
|
||||
includePaths: ['source/bower_components']
|
||||
}))
|
||||
.pipe(prefix(['>= 4%', 'last 2 version']))
|
||||
.pipe(sourcemap.write())
|
||||
.pipe(gulp.dest('build/css'))
|
||||
.pipe(browsersync.reload({
|
||||
stream: true
|
||||
}))
|
||||
});
|
||||
|
||||
gulp.task('testsync', function() {
|
||||
browsersync.init({
|
||||
open: false,
|
||||
server: 'build',
|
||||
// proxy: "http://verser.vrt/virtual/"
|
||||
});
|
||||
});
|
||||
|
||||
gulp.task('testnunjucks', function() {
|
||||
return gulp.src('source/pages/**/*.+(html|nunjucks)')
|
||||
.pipe(plumbError('Error Running Nunjucks'))
|
||||
.pipe(nunjucks({
|
||||
path: ['source/templates'],
|
||||
envOptions: {
|
||||
trimBlocks: true
|
||||
}
|
||||
}))
|
||||
.pipe(gulp.dest('build'))
|
||||
.pipe(browsersync.reload({
|
||||
stream: true
|
||||
}))
|
||||
});
|
||||
|
||||
gulp.task('sprites', function() {
|
||||
gulp.src('source/art/sprites/**/*')
|
||||
.pipe(spritesmith({
|
||||
cssName: '_sprites.scss',
|
||||
imgName: 'sprites.png'
|
||||
}))
|
||||
.pipe(gulpif('*.png', gulp.dest('build/images')))
|
||||
.pipe(gulpif('*.scss', gulp.dest('source/style/modules/media')));
|
||||
});
|
||||
|
||||
gulp.task('lint:js', function() {
|
||||
return gulp.src('source/code/**/*.js')
|
||||
.pipe(plumbError('JSHint Error'))
|
||||
.pipe(jshint())
|
||||
.pipe(jshint.reporter('jshint-stylish'))
|
||||
.pipe(jshint.reporter('fail', {
|
||||
ignoreWarning: true,
|
||||
ignoreInfo: true
|
||||
}))
|
||||
.pipe(jscs({
|
||||
fix: false,
|
||||
configPath: '.jscsrc'
|
||||
}))
|
||||
// .pipe(jscs.reporter());
|
||||
});
|
||||
|
||||
gulp.task('clean:dev', function() {
|
||||
del.sync([
|
||||
'build/css',
|
||||
'build/*.html'
|
||||
]);
|
||||
});
|
||||
|
||||
|
||||
|
||||
// Task - Clean build directory
|
||||
gulp.task('clean', function() {
|
||||
return del([build.scripts, build.styles, 'build/**']);
|
||||
return del([build.scripts, build.styles, build.images]);
|
||||
});
|
||||
|
||||
// Task - Styles
|
||||
gulp.task('styles', () =>
|
||||
sass(source.styles, {sourcemap: true})
|
||||
.on('error', sass.logError)
|
||||
.pipe(prefix('last 2 version'))
|
||||
.pipe(gulp.dest(build.styles))
|
||||
.pipe(rename({suffix: '.min'}))
|
||||
.pipe(cssnano())
|
||||
.pipe(sourcemap.write('.', {
|
||||
includeContent: false,
|
||||
sourceRoot: 'source'
|
||||
}))
|
||||
.pipe(gulp.dest(build.styles))
|
||||
.pipe(browsersync.stream({match: '**/*.css'}))
|
||||
// .pipe(notify({message: 'Style task complete'}))
|
||||
gulp.task('styles', () => sass(source.styles, {sourcemap: true})
|
||||
.on('error', sass.logError)
|
||||
// .pipe(newer({dest: build.styles, ext: '.css'}))
|
||||
.pipe(prefix('last 2 version'))
|
||||
.pipe(gulp.dest(build.styles))
|
||||
.pipe(rename({suffix: '.min'}))
|
||||
.pipe(cssnano())
|
||||
.pipe(sourcemap.write('.', {
|
||||
includeContent: false,
|
||||
sourceRoot: 'source'
|
||||
}))
|
||||
.pipe(gulp.dest(build.styles))
|
||||
.pipe(browsersync.stream({match: '**/*.css'}))
|
||||
// .pipe(notify({message: 'Style task complete'}))
|
||||
);
|
||||
|
||||
// Task - Scripts
|
||||
|
|
@ -76,34 +161,108 @@ gulp.task('scripts', function(cb) {
|
|||
// Task - Images
|
||||
gulp.task('images', function() {
|
||||
return gulp.src(source.images)
|
||||
.pipe(changed(cache(imagemin({
|
||||
optimizationLevel: 3,
|
||||
progressive: true,
|
||||
interlaced: true })))
|
||||
)
|
||||
.pipe(changed(build.images))
|
||||
// .pipe(cache(imagemin({
|
||||
// optimizationLevel: 3,
|
||||
// progressive: true,
|
||||
// interlaced: true })))
|
||||
// )
|
||||
.pipe(gulp.dest(build.images))
|
||||
.pipe(notify({ message: 'Images task complete' }))
|
||||
// .pipe(notify({ message: 'Images task complete' }))
|
||||
;
|
||||
});
|
||||
|
||||
// Task - Vendor
|
||||
gulp.task('vendor', function() {
|
||||
return gulp.src(source.vendor)
|
||||
.pipe(plumbError())
|
||||
.pipe(gulp.dest(build.vendor))
|
||||
;
|
||||
});
|
||||
|
||||
//Task - Nunjucks
|
||||
gulp.task('nunjucks', function() {
|
||||
return gulp.src(source.pages)
|
||||
// .pipe(changed(build.root))
|
||||
.pipe(nunjucks({
|
||||
path: ['source/templates'],
|
||||
envOptions: {
|
||||
trimBlocks: true
|
||||
}
|
||||
}))
|
||||
.pipe(gulp.dest(build.root))
|
||||
});
|
||||
|
||||
// a task that ensures the other task is complete before reloading browsers
|
||||
gulp.task('overwatch', ['nunjucks', 'styles'], function(done) {
|
||||
browsersync.reload();
|
||||
done();
|
||||
});
|
||||
|
||||
|
||||
|
||||
// TEST - Watch
|
||||
gulp.task('watch-js', ['lint:js'], browsersync.reload);
|
||||
|
||||
gulp.task('testwatch', function() {
|
||||
gulp.watch('source/code/**/*.js', ['watch-js'])
|
||||
gulp.watch('source/style/**/*.+(scss|sass)', ['test']);
|
||||
gulp.watch([
|
||||
'source/templates/**/*',
|
||||
'source/pages/**/*.+(html|nunjucks)'
|
||||
], ['testnunjucks']);
|
||||
});
|
||||
|
||||
|
||||
|
||||
// Watch for file changes
|
||||
gulp.task('watch', ['clean', 'styles', 'scripts'], function() {
|
||||
browsersync.init({
|
||||
server: "./",
|
||||
// proxy: "http://verser.vrt/virtual/"
|
||||
gulp.task('watch', ['styles', 'scripts', 'nunjucks'], function() {
|
||||
browsersync.init({
|
||||
open: false,
|
||||
server: build.root,
|
||||
// proxy: "http://verser.vrt/virtual/"
|
||||
});
|
||||
|
||||
gulp.watch(source.watch, ['styles']);
|
||||
gulp.watch(source.scripts, ['scripts']).on('change', function(event) {
|
||||
if (event.type === 'deleted') {
|
||||
delete cache.caches['scripts'][event.path];
|
||||
remember.forget('scripts', event.path);
|
||||
}
|
||||
});
|
||||
gulp.watch(source.markup).on('change', browsersync.reload);
|
||||
// gulp.watch(['build/**']).on('change', browsersync.reload);
|
||||
// gulp.watch(source.watch, ['overwatch']);
|
||||
gulp.watch(source.watch, ['styles', 'nunjucks']).on('change', browsersync.reload);
|
||||
// gulp.watch(source.images, ['images']);
|
||||
});
|
||||
|
||||
// The default task (called when you run `gulp` from cli)
|
||||
gulp.task('default', ['clean', 'styles', 'scripts']);
|
||||
gulp.task('olddefault', ['clean', 'styles', 'scripts', 'images', 'nunjucks']);
|
||||
|
||||
gulp.task('default', function(callback) {
|
||||
sequencer(
|
||||
'clean:dev',
|
||||
['sprites', 'lint:js'],
|
||||
['test', 'testnunjucks'],
|
||||
['testsync', 'testwatch'],
|
||||
callback
|
||||
)
|
||||
});
|
||||
|
||||
|
||||
|
||||
// function errorHandler(err) {
|
||||
// // Logs out error in the command line
|
||||
// console.log(err.toString());
|
||||
// // Ends the current pipe, so Gulp watch doesn't break
|
||||
// this.emit('end');
|
||||
// }
|
||||
|
||||
function plumbError(errTitle) {
|
||||
return plumber({
|
||||
errorHandler: notify.onError({
|
||||
// Customizing error title
|
||||
title: errTitle || "Error running Gulp",
|
||||
message: "Error: <%= error.message %>",
|
||||
sound: true
|
||||
})
|
||||
});
|
||||
}
|
||||
|
|
|
|||
61
index.html
61
index.html
|
|
@ -1,61 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>HIPPIE Index</title>
|
||||
|
||||
<meta name="author" content="Interaktionsweise">
|
||||
<meta name="description" content="hippie example">
|
||||
<meta name="generator" content="Notepad++, Atom">
|
||||
<meta name="robots" content="noindex">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge;chrome=1" />
|
||||
<link rel="icon" href="favicon.ico" type="image/vnd.microsoft.icon">
|
||||
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
|
||||
|
||||
<!-- <link href='https://fonts.googleapis.com/css?family=Roboto:400,300,400italic,500,500italic,700' rel='stylesheet' type='text/css'>-->
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./build/css/example.min.css"/>
|
||||
</head>
|
||||
|
||||
<body class="height_full">
|
||||
<div id="js_tph" class="layer__hover"></div>
|
||||
|
||||
<div class="wrap">
|
||||
<ul class="list__link hello">
|
||||
<li><a href="demo-index.html">Index</a></li>
|
||||
<li><a href="demo-raw.html">Raw</a></li>
|
||||
<li><a href="demo-explorer.html">Explorer</a></li>
|
||||
<li><a href="demo-presentation.html">Presentation</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<script
|
||||
src="https://code.jquery.com/jquery-3.2.1.min.js"
|
||||
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
|
||||
crossorigin="anonymous"></script>
|
||||
<script src="./vendor/jq-sticky-anything.min.js" type="text/javascript"></script>
|
||||
<script src="./build/js/all.min.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
// Page specific
|
||||
// ------------------------------------------------------------------------------
|
||||
$( document ).ready(function() {
|
||||
// jq-sticky-anything
|
||||
$('#js_demo_fix').stickThis({
|
||||
pushup: '#js_demo_stop'
|
||||
});
|
||||
});
|
||||
|
||||
// $(window).scroll(function(){
|
||||
// var windowTopPos = $(window).scrollTop();
|
||||
// var footerTopPos = $('#js_demo_stop').offset().top;
|
||||
// var navBottomPos = $('#js_demo_fix').offset().top + $('#js_demo_fix').outerHeight();
|
||||
//
|
||||
// if(navBottomPos >= footerTopPos) {
|
||||
// $('#js_demo_fix').css('position', 'absolute');
|
||||
// }
|
||||
// });
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
2524
package-lock.json
generated
2524
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -25,15 +25,24 @@
|
|||
"gulp-changed": "^3.1.0",
|
||||
"gulp-concat": "^2.6.1",
|
||||
"gulp-cssnano": "^2.1.2",
|
||||
"gulp-if": "^2.0.2",
|
||||
"gulp-jscs": "^4.0.0",
|
||||
"gulp-jshint": "^2.0.4",
|
||||
"gulp-newer": "^1.3.0",
|
||||
"gulp-notify": "^3.0.0",
|
||||
"gulp-nunjucks-render": "^2.2.1",
|
||||
"gulp-plumber": "^1.1.0",
|
||||
"gulp-remember": "^0.3.1",
|
||||
"gulp-rename": "^1.2.2",
|
||||
"gulp-ruby-sass": "^2.1.1",
|
||||
"gulp-sass": "^3.1.0",
|
||||
"gulp-sourcemaps": "^2.6.1",
|
||||
"gulp-uglify": "^3.0.0",
|
||||
"gulp.spritesmith": "^6.5.1",
|
||||
"jshint": "^2.9.5",
|
||||
"jshint-stylish": "^2.2.1",
|
||||
"pump": "^1.0.2",
|
||||
"run-sequence": "^2.2.0",
|
||||
"uglify-es": "^3.1.2"
|
||||
},
|
||||
"dependencies": {}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
'use strict';
|
||||
|
||||
function setup() {
|
||||
if($('#js_tph').length && full_view_hover) {
|
||||
// $('body').prepend("<div id=\"js_tph\" class=\"layer__hover hover_full_view_change\"></div>");
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
'use strict';
|
||||
|
||||
// DOM ready
|
||||
// ------------------------------------------------------------------------------
|
||||
$( document ).ready(function() {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
'use strict';
|
||||
|
||||
var w = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
|
||||
var h = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
|
||||
|
||||
|
|
|
|||
22
source/pages/404.nunjucks
Normal file
22
source/pages/404.nunjucks
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<!-- index.nunjucks -->
|
||||
{% set pageId = "404" %}
|
||||
|
||||
{% extends "maintenance.nunjucks" %}
|
||||
|
||||
{% block title %}index{% endblock %}
|
||||
{% block head %}
|
||||
{{ super() }}
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/maintenance.css"/>
|
||||
{% endblock %}
|
||||
|
||||
{% block body_content %}
|
||||
<div class="main_center">
|
||||
<h1>404</h1>
|
||||
<p>Hier ist nichts.</p>
|
||||
<blockquote cite="https://de.wikipedia.org/wiki/HTTP-Statuscode#4xx_.E2.80.93_Client-Fehler">
|
||||
<p>Die angeforderte Ressource wurde nicht gefunden. Dieser Statuscode kann ebenfalls verwendet werden, um eine Anfrage ohne näheren Grund abzuweisen. Links, welche auf solche Fehlerseiten verweisen, werden auch als Tote Links bezeichnet.</p>
|
||||
<p class="quote_source"><a href="https://de.wikipedia.org/wiki/HTTP-Statuscode#4xx_.E2.80.93_Client-Fehler">Wikipedia</a></p>
|
||||
</blockquote>
|
||||
</div>
|
||||
{% include "partials/footer-status.nunjucks" %}
|
||||
{% endblock %}
|
||||
6
source/pages/demo-blank.nunjucks
Normal file
6
source/pages/demo-blank.nunjucks
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<!-- index.nunjucks -->
|
||||
{% extends "index.nunjucks" %}
|
||||
|
||||
{% block body_content %}
|
||||
|
||||
{% endblock %}
|
||||
668
source/pages/demo-index.nunjucks
Normal file
668
source/pages/demo-index.nunjucks
Normal file
|
|
@ -0,0 +1,668 @@
|
|||
<!-- index.nunjucks -->
|
||||
{% set pageId = "demo" %}
|
||||
|
||||
{% extends "index.nunjucks" %}
|
||||
|
||||
{% block title %}demo{% endblock %}
|
||||
{% block head %}
|
||||
{{ super() }}
|
||||
{% endblock %}
|
||||
|
||||
{% block body_content %}
|
||||
{% include "partials/page-hover.nunjucks" %}
|
||||
<div class="temp__layer">
|
||||
<!-- <div class="exp_overlay_btn exp_help_btn">
|
||||
<span class="span__solo">?</span>
|
||||
</div> -->
|
||||
<nav class="nav__page_meta">
|
||||
<ul>
|
||||
<li class="magic"><a href="#begin" id="js_scrolltop" class="a_button_meta"><img src="./art/up.png" alt="" width="32" height="64"></a></li>
|
||||
<li><button class="a_button_meta">Show Meta Information</button></li>
|
||||
<li><a href="#end" id="js_scrolldown" class="a_button_meta"><img src="./art/down.png" alt="" width="32" height="32"></a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div id="begin" class="demo__intro">
|
||||
Dies ist einfach nur Text.<br>Weniger wäre Nichts, denn dieser Text ist nicht durch ein spezifisches Element umschlossen.
|
||||
<p>Es wirken nur die Eigenschaften des <code><body></code> Elements. Dieses Element umschließt den gesamten Inhalt des Dokumentes und kommt daher nur einmal vor. Inhalte sind normalerweise durch Elemente definiert. Grundlegende Elemente teilen das Dokument zunächst in Abschnitte.</p>
|
||||
<h1>Bereiche</h1>
|
||||
<article>
|
||||
<section>
|
||||
<p>Einen Abschnitt, welcher für sich alleine stehen kann, definiert sich durch <code><article></code>. Solch ein Element wird oft detailliert gestaltet, kommt aber auch ohne jegliche Gestaltung aus.</p>
|
||||
<p>Noch allgemeiner ist das <code><section></code> Element. Es schafft Bereiche um Inhalte zu strukturieren.</p>
|
||||
<p>Bestimmte Bereiche haben einen vorgegebene Zweck.<br>Folgende Bereiche sind vorgegeben:</p>
|
||||
</section>
|
||||
<!-- <div class="overflow"> -->
|
||||
<aside class="left">
|
||||
<p>Ein Bereich, der tangential zum hauptsächlichen Inhalt verläuft, wird mit <code><aside></code> markiert.</p>
|
||||
</aside>
|
||||
<section>
|
||||
<header>
|
||||
<p>Um einleitenden Inhalt festzuhalten, wird das <code><header></code> Element eingesetzt. Es beinhaltet häufig auch Navigationselemente. Dabei bezieht es sich auf den nächsten, umgebenden Abschnitt.</p>
|
||||
<nav>
|
||||
<p>Das Element <code><nav></code> umfasst Elemente, die zur Navigation innerhalb des Dokumentes dienen.</p>
|
||||
</nav>
|
||||
</header>
|
||||
<footer>
|
||||
<p>Auch abschließender Inhalt kann für einen Abschnitt definiert werden. Dazu wird <code><footer></code> eingesetzt.</p>
|
||||
</footer>
|
||||
</section>
|
||||
<!-- </div> -->
|
||||
</article>
|
||||
<p>Zur feineren Strukturierung und Gliederung von Texten sind einige weitere Elemente verfügbar. Diese werden nun der Reihe nach aufgeführt. Zu Beginn die Überschriften, da sie noch zu den Abschnitten gehören. Das kommt vermutlich daher, da Abschnitte häufig eine kennzeichnende Überschrift beinhalten.</p>
|
||||
<h1>Überschrift 1</h1>
|
||||
<p>Eine Überschrift erster Ordnung <code><h1></code> ist sehr groß und steht daher oft außerhalb eines Textflusses. Sie schafft eine deutliche Trennung sowohl inhaltlich wie auch optisch. Sie erzeugt einen Abstand gleich der horizontalen Linie über sich.</p>
|
||||
<h2>Überschrift 2</h2>
|
||||
<p>Die weiteren Überschriften <code><h2></code> bis <code><h6></code> gliedern Text und werden auch als Titel für andere Elemente eingesetzt.</p>
|
||||
<h3>Überschrift 3 ist in Großbuchstaben gesetzt</h3>
|
||||
<h4>Überschrift 4 verwendet normale Buchstaben und gleicht ansonsten Überschrift 3</h4>
|
||||
<h5>Überschrift 5 ist Überschrift 5</h5>
|
||||
<h6>Überschrift 6</h6>
|
||||
<p>Schließlich eine Überschrift in der Größe des Fließtextes. Allerdings in fett.</p>
|
||||
<h1>Gruppierung</h1>
|
||||
<p>Ein Absatz <code><p></code>. Zugegeben ein kurzer.</p>
|
||||
<p>Aus mehreren Absätzen wird ein ganzer Text. Solche Texte haben gelegentlich großen informativen oder unterhaltsamen Charakter.<br>Einfache Zeilenumbrüche werden darin mit <code><br></code> erreicht.</p>
|
||||
<p>Die Unterteilung in Absätze ist eine von vielen Möglichkeiten Texte zu gruppieren und ihnen Struktur zu verleihen. In diesem Dokument flattert Text normalerweise von Links daher. Er ist schwarz und in einer serifenlosen Schrift gesetzt. Zu weiteren Formatierungen, die eher auf einer Ebene der Zeichen einzuordnen ist, wird im Verlauf näher eingegangen. Zunächst die Struktur:</p>
|
||||
<p class="txt_center js_pop">Text sitzt gerne auch mal zentriert.</p><div class="exp_pop"><code class="code__solo">p.txt_center</code></div>
|
||||
<p class="txt_right js_pop">Rechtsbündig ist schon eher eine Ausnahme bzw. Besonderheit.</p><div class="exp_pop"><code class="code__solo">p.txt_right</code></div>
|
||||
<p>Texte können auf verschiedene Arten unterteilt werden. Dafür werden unterschiedlich formatierte <code><hr></code> Elemente verwendet. Die horizontale Linie ist die Ausgangsformatierung, daher auch der abgekürzte Name des Elements. Eine Linie ist schwarz und durchgezogen.</p>
|
||||
<hr/>
|
||||
<p>Es ist auch eine unsichtbare Unterteilung möglich:</p>
|
||||
<hr class="hr__hidden js_pop"/><div class="exp_pop"><code class="code__solo">hr.hr__hidden</code></div>
|
||||
<p>Die Linie darf auch gepunkted sein. Zudem sind verschiedene Längen möglich. Diese sind immer ein Prozentwert der verfügbaren Breite. Hier in gleicher Reihenfolge 100%, 50% und 25%:</p>
|
||||
<hr class="hr__dotted js_pop" emmet/><div class="exp_pop"><code class="code__solo">hr.hr__dotted</code></div><!--hr.hr__dotted-->
|
||||
<hr class="center_50 js_pop"/><div class="exp_pop"><code class="code__solo">hr.center_50</code></div>
|
||||
<hr class="hr__dotted center_25 js_pop"/><div class="exp_pop"><code class="code__solo">hr.hr__dotted.center_25</code></div>
|
||||
<p class="block__column_2 js_pop">Zur horizontalen Unterteilung kommt natürlich auch eine vertikale Trennung hinzu. Text kann so zum Beispiel in mehrere Spalten unterteilt werden. Dies ist hilfreich, wenn ein Text durch eine breite Fläche sehr lange Zeilen bekommen würde. Es ist dann schwer den neuen Zeilanfang zu finden. Die vertikale Trennung dient in erster Linie dazu, diesem Umstand zu begegnen. Auch hier kann die Unterteilung viele Formen annehmen.</p><div class="exp_pop"><code class="code__solo">p.block__column_2</code></div>
|
||||
<p class="block__column_3 block__column_line js_pop">Drei Spalten gilt es jetzt also zu Füllen. Dann erst wird die Trennung der Spalten durch eine Linie sichtbar.</p><div class="exp_pop"><code class="code__solo">p.block__column_3.block__column_line</code></div>
|
||||
<p class="block__column_3 block__column_line">Ist der Text nicht lang genug bleibt eventuell eine Spalte leer. Diesmal wird dies aber nicht passieren, denn das Anschauungsbeispiel ist ja nun durch den vorherigen Absatz schon gegeben.<br>Oft ist es sinnvoll, Absätze mit mehreren Spalten deutlich von nachfolgenden Absätzen zu trennen. Da der Textfluss spaltenweise verläuft, liest man eventuell an der falschen Stelle weiter. Ach das ziegen diese beiden Absätze ganz gut.</p>
|
||||
<p>Es gibt die Möglichkeit vorformatierten Text darzustellen <code><pre></code>.</p>
|
||||
<pre>Dadurch<br> bleiben<br> Einrückungen<br> durch<br> Tabulatoren<br> erhalten.</pre>
|
||||
<p>Text bekommt durch Listen besondere optische wie auch inhaltliche Struktur. Es gibt ungeordnete <code><ul></code> und geordnete Listen <code><ol></code> sowie Beschreibungslisten <code><dl></code>. Die beiden ersten Varianten beinhalten das Listenelement <code><li></code>. Beschreibungslisten beinhalten jeweils das Paar von Ausdruck <code><dt></code> und Beschreibung <code><dd></code>. Im Folgenden eine Liste der Listen in ihrer Ausgangskonfiguration:</p>
|
||||
<ul>
|
||||
<li>Ungeordnete</li>
|
||||
<li>Listen</li>
|
||||
</ul>
|
||||
<ul class="list__dash">
|
||||
<li>Verschiedener</li>
|
||||
<li>Art</li>
|
||||
</ul>
|
||||
<ol>
|
||||
<li>Geordnete</li>
|
||||
<li>Liste</li>
|
||||
</ol>
|
||||
<dl>
|
||||
<dt>Beschreibungsliste</dt>
|
||||
<dd>Auch Definitionslisten genannt</dd>
|
||||
<dt>Ausdruck</dt>
|
||||
<dd>Beschreibung</dd>
|
||||
</dl>
|
||||
<p>Wird Bezug auf fremde Inhalte genommen, kommt ein Zitat <code><blockquote></code> zur Anwendung. Es besteht aus der Aussage und der Quelle.</p>
|
||||
<blockquote class="js_pop" cite="https://de.wikipedia.org/wiki/Zitat/">
|
||||
<p>Ein Zitat (das, lateinisch citatum „Angeführtes, Aufgerufenes“ zu lat. citāre „in Bewegung setzen, vorladen“, vgl. „jemanden vor Gericht zitieren“) ist eine wörtlich übernommene Stelle aus einem Text oder ein Hinweis auf eine bestimmte Textstelle.</p>
|
||||
<p class="quote__source"><a href="https://de.wikipedia.org/wiki/Zitat/">Wikipedia</a></p>
|
||||
</blockquote>
|
||||
<div class="exp_pop"><code class="code__solo">blockquote>p+p.quote__source</code></div>
|
||||
<p>Auch Inhalte, die nicht in Textform sind, können durch einen Bezug integriert werden. Wie diese Fahne werden sie mit <code><figure></code> umschlossen und tragen eine Bezeichnung.</p>
|
||||
<figure class="js_pop">
|
||||
<figcaption>Fahne</figcaption>
|
||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="10%" height="10%" viewBox="0 0 1920 1200" preserveAspectRatio="xMinYMax slice" alt="Background flag">
|
||||
<rect id="triangle-5" y="0" fill="#273F8B" width="1920" height="1200"/>
|
||||
<polygon id="triangle-6" fill="#8E1F68" points="0,1200 1920,458.25 1920,1200 "/>
|
||||
<polygon id="triangle-7" fill="#D30A51" points="0,1200 1920,522.75 1920,1200 "/>
|
||||
<polygon id="triangle-8" fill="#F2AF13" points="0,1200 1920,741.75 1920,1200 "/>
|
||||
<polygon id="triangle-9" fill="#FAD803" points="0,1200 1920,787.5 1920,1200 "/>
|
||||
<polygon id="triangle-4" fill="#3C579A" points="0,1200 0,0 733.5,0 "/>
|
||||
<polygon id="triangle-3" fill="#B7E0F0" points="0,1200 0,0 688.5,0 "/>
|
||||
<polygon id="triangle-2" fill="#6BC7D9" points="0,1200 0,0 453,0 "/>
|
||||
<polygon id="triangle-1" fill="#52BED1" points="0,1200 0,0 370.5,0 "/>
|
||||
</svg>
|
||||
</figure>
|
||||
<div class="exp_pop"><code class="code__solo">figure>figcaption+{element}</code></div>
|
||||
<p>Eine von sich aus undefinierte Möglichkeit zur Gruppierung von Text besteht durch <code><div></code>. Dieses Element hat, ohne weitere Klassifizierung keine Auswirkungen auf die Erscheinung oder die inhaltliche Aussage. Daher der allgemeine Einsatz.</p>
|
||||
<div class="box__info"><p>Es wird allerdings häufig eingesetzt und bekommt vielfältige Funktionen zugeordnet wie diese hervorgehobene Information zeigt.</p></div>
|
||||
<p>Eine sehr klar definierte Gruppierung stellt das Element <code><main></code> dar. Es umschließt den hauptsächlichen Inhalt des Dokumentes.</p>
|
||||
<h1 id="textlevel">Textebene</h1>
|
||||
<h2>Verweise</h2>
|
||||
<p>Ein wesentlicher Bestandteil von Hypertext sind Verweise <code><a></code>. Sie dienen als Sprungmarken innerhalb des Netzwerks. Es kann grob zwischen internen und externen Verweisen unterschieden werden. <a class="a__line js_pop" href="#links">Interne Verweise</a><span class="exp_pop"><code class="code__solo">a.a__line</code></span> können Verknüpfungen innerhalb des aktuellen Dokumentes sein oder auch Funktionen aktivieren. <a class="a__line" href="http://de.wikipedia.org">Externe Verweise</a> verknüpfen Inhalte über das gesamte Netzwerk hinweg. Sie können auch auf E-Mail Adressen oder Dateien zeigen.</p>
|
||||
<p>Nicht nur Text kann als Verweis verwendet werden. Auch andere Elemente wie Bilder können verknüpft werden. Abhängig von ihrer Funktion und ihrem Zweck, werden Verweise unterschiedlich formatiert. <a href="#">Farbige</a> oder <a class="a__line" href="#">unterstrichene Varianten</a> sind möglich.</p>
|
||||
<p>Wird der Verweis innerhalb eines <code><nav></code> Elementes notiert, bekommt er die spezielle Bedeutung eines Navigationsverweises innerhalb des Dokumentes oder der Anwendung. Auf diese Verwendung wird im Folgenden genauer eingegangen <span class="wip_txt">...</span></p>
|
||||
<h2>Formatierungen</h2>
|
||||
<p>Texte, Wörter oder Zeichen können vielfältig formatiert werden. Sie können <b>fett</b> <code><b></code> oder <i>kursiv</i> <code><i></code> geschrieben sein. <b><i>Auch beides ist möglich!</i>?</b>! Sollen sie nicht nur anders <b>aussehen</b>, sondern auch <i>eine besondere inhaltliche Bedeutung</i> bekommen, werden sie mit <code><strong></code> und <code><em></code> ausgezeichnet.</p>
|
||||
<p>Gerade bei wörtlichen Zitierungen kommt häufig das Anführungszeichen zum Einsatz. Es kann durch die Formatierung automatisch ergänzt werden.</p>
|
||||
<blockquote class="quote__mark js_pop" cite="">
|
||||
<p>Das kannst du schon so machen aber dann isses halt Kacke.</p>
|
||||
<p class="quote__source">o. V.</p>
|
||||
</blockquote>
|
||||
<div class="exp_pop"><code class="code__solo">blockquote.quote__mark>p+p.quote__source</code></div>
|
||||
<p>Ein besonderer inhaltlicher Bezug ist der Titel eines Werkes. Sowas kann mit <code><cite></code> ausgezeichnet werden. <cite>Pulp Fiction</cite>, super Film - zum Beispiel.</p>
|
||||
<p>Auch die Auszeichnung <code><code></code> wurde bis hier hin schon verwendet. Sie markiert Maschinensprache. Für zusammenhängende Blöcke wird die Auszeichnung oft in Kombination mit dem Element <code><pre></code> verwendet:</p>
|
||||
<pre class="pre__code"><code><html><br> <head><br> <title>Hyper Text Markup Language</title><br> </head><br> <body id="root"><br> <!-- Content goes here --><br> <p class="example">Just like this.</p><br> </body><br></html></code></pre>
|
||||
<p>Dabei bleiben vorhandene Textformatierungen wie Zeilenumbrüche und Einrückung erhalten.</p>
|
||||
<p>Die Zeichen in Absätzen bis hin zu ganzen Texten können, mit einem geeigneten Eingabegerät, markiert werden. Dies stellt sich wie folgt dar:</p>
|
||||
<p class="txt_center">Bei<mark class="mark__cursor">spiel zum mark</mark>ieren ^^.</p>
|
||||
<p>Eine Markierung kann, mittels <code><mark></code>, auch durch den Autor geschehen. Diese stellt sich ein wenig anders dar: <mark>Diese Worte sind markiert.</mark></p>
|
||||
|
||||
<h2>Änderungen</h2>
|
||||
|
||||
<h1>Eingebundene Inhalte</h1>
|
||||
|
||||
|
||||
|
||||
<h1>Tabellen</h1>
|
||||
<p>Tabellen bieten besonders geordnete Struktur. Häufig werden in ihnen Text und Daten kombiniert dargestellt. Dies erfordert individuelle Formatierungen. Einige grundlegende Eigenschaften werden im folgenden aufgezeigt. Tabellen sind in ihrer Größe entweder vordefiniert oder richten sich nach ihrem Inhalt. Das gilt auch für die einzelnen Zellen.<span class="wip_txt">...</span></p>
|
||||
<table class="width_full js_pop">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Eine</td>
|
||||
<td>einfache</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">Tabelle</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="exp_pop"><code class="code__solo">table.width_full>tbody>tr>td*2^tr>td[colspan=2]</code></div>
|
||||
<div class="overflow">
|
||||
<table class="float_space_left js_pop">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Eine</td>
|
||||
<td>fließende</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">Tabelle</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="exp_pop"><code class="code__solo">table>tbody>tr>td*2^tr>td[colspan=2]</code></div>
|
||||
<table class="table__blank float_space_left js_pop">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Mit</td>
|
||||
<td>ohne</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">Linien</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="exp_pop"><code class="code__solo">table.table__blank>tbody>tr>td*2^tr>td[colspan=2]</code></div>
|
||||
</div>
|
||||
<p>Die nächste Tabelle verwendet alle zur Auszeichnung verfügbaren Elemente und hat eine starre Zellverteilung:</p>
|
||||
<table class="width_full table__fix js_pop">
|
||||
<caption>Beschreibung bzw. Zusammenhang der Tabelle</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Kopfzeile</th>
|
||||
<th>A</th>
|
||||
<th>B</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td>Fußzeile</td>
|
||||
<td>A</td>
|
||||
<td>B</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Tabelle</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>mit</td>
|
||||
<td>Titel</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>Kopf-</td>
|
||||
<td>und</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>Fußzeile</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="exp_pop"><code class="code__solo">table.width_full.table__fix>caption+thead>tr>th*3^^tfoot>tr>td*3^^tbody>(tr>td*3)*3</code></div>
|
||||
<hr class="hr__hidden">
|
||||
<p>Viele weitere Formate sind möglich <span class="wip_txt">...</span></p>
|
||||
<table class="width_full js_pop">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="precol"></th>
|
||||
<th>Kopfzeile</th>
|
||||
<th>A</th>
|
||||
<th>B</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="precol">Vorspalte</td>
|
||||
<td>Eine</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="precol">1</td>
|
||||
<td></td>
|
||||
<td>erweiterte</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="precol">2</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>Tabelle</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="exp_pop"><code class="code__solo">table.width_full>thead>tr>th.precol+th[colspan=2]^^tbody>tr>td.precol+td*2^tr>td.precol+td[colspan=2]</code></div>
|
||||
<table class="width_full table__stripe table__free">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Kopfzeile</th>
|
||||
<th>A</th>
|
||||
<th>B</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Tabelle</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>ohne</td>
|
||||
<td>Rahmen</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>jedoch</td>
|
||||
<td>mit</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>Streifen</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table__fix">
|
||||
<caption>Beschreibung bzw. Zusammenhang der Tabelle</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Kopfzeile</th>
|
||||
<th>1</th>
|
||||
<th>>9000</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td>Fußzeile</td>
|
||||
<td>-</td>
|
||||
<td>-</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Alpha</td>
|
||||
<td>0</td>
|
||||
<td>9000</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Bravo</td>
|
||||
<td>1</td>
|
||||
<td>9001</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Charlie</td>
|
||||
<td>0</td>
|
||||
<td>9000</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<h1>Formulare</h1>
|
||||
<p>Spätestens hier werden Betrachter zu Benutzern. Texteingabefelder und verschiedene Bedienelemente geben Möglichkeiten zur Interaktion. Diese Elemente sind in vielerlei Hinsicht besonders. Werden sie nicht explizit gestaltet, ist ihre Erscheinung system- bzw. browserabhängig. <span class="wip_txt">(Vielleicht ist das auch scheiße, hier darauf einzugehen) ...</span> Üblicherweise stehen alle Formularelemente innerhalb eines <code><form></code> Elementes. Dieses ist notwendig um Angaben zur Kommunikation mit dem Server zu setzen. Es hat normalerweise keine gestalterische Funktion.</p>
|
||||
<p>Grundlegend ist das Element <code><input></code>. Es hat viele Attribute um den Typ der Eingabe anzupassen. Ist es undefiniert nimmt es jegliche textbasierte Information auf und erhält eine Standardgröße.</p>
|
||||
<p><input value="Undefiniert"/></p>
|
||||
<p>Ein spezieller Typ des Eingabefeldes verändert seine Funktion zu einer Schaltfläche <code><input[type="button"]></code>. Es gibt allerdings auch ein eigenes Element <code><button></code> dafür.
|
||||
<p><input type="button" value="Input Button"><button>Button</button></p>
|
||||
<p>Interaktive Elemente können durch das Attribut <code><readonly></code> nur lesbar gemacht werden oder mittels <code><disabled></code> gänzlich deaktiviert werden.</p>
|
||||
<p><input type="text" value="Read Only Text" readonly><input type="text" value="Disabled Text" disabled><button disabled>Button</button></p>
|
||||
<p>Das Element <code><label></code> ergänzt interaktive Elemente um eine Beschriftung. Wichtig ist hier, dass die Beziehung beider Elemente zu einander deutlich ist.</p>
|
||||
<div class="overflow">
|
||||
<div class="float_half_size">
|
||||
<label for="demo__input">Beschriftung:</label><input type="text" id="demo__input">
|
||||
</div>
|
||||
<div class="float_half_size">
|
||||
<input type="text" id="demo__input" class="input__label_right"><label for="demo__input">Beschriftung</label>
|
||||
</div>
|
||||
</div>
|
||||
<p>Zusätzlich zur Beschriftung einzelner Elemente gibt es auch die Möglichkeit Gruppierungen zu schaffen. Diese werden mit <code><fieldset></code> realisiert.</p>
|
||||
<fieldset>
|
||||
<label for="demo__output">Beschriftung:</label><input type="text" readonly id="demo__output">
|
||||
</fieldset>
|
||||
<p>Sie können mittels <code><legend></code> auch eine eigene Beschriftung erhalten.</p>
|
||||
<fieldset>
|
||||
<legend>Einfache Eingabefelder</legend>
|
||||
<label>Texteingabe<input type="text" placeholder="Text"></label>
|
||||
<label>Schaltfläche<input type="button" value="Senden"></label>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend>Weitere Zeicheneingabefelder</legend>
|
||||
<p>Innerhalb einer Gruppe können nicht nur Ein- und Ausgabefelder platziert werden. Andere Elemente ergänzen Information oder lockern das Erscheinungsbild auf. Hier nun eine Liste aller möglichen Arten von Eingabefeldern.</p>
|
||||
<pre class="pre__code"><code>ul>(li>label>input[type="text"])</code></pre>
|
||||
</fieldset>
|
||||
<label>Einfache Datumseingabe<input type="date"></label>
|
||||
<label>Einfache Zahleneingabe<input type="number"></label>
|
||||
<input type="checkbox"/>
|
||||
<input type="color"/>
|
||||
<input type="datetime"/>
|
||||
<input type="email"/>
|
||||
<input type="file"/>
|
||||
<input type="image"/>
|
||||
<input type="month"/>
|
||||
<input type="number"/>
|
||||
<textarea></textarea>
|
||||
|
||||
|
||||
|
||||
<h2>Interaktive Elemente</h2>
|
||||
|
||||
|
||||
|
||||
<h1>Struktur</h1>
|
||||
<div class="box__placeholder"></div>
|
||||
<hr class="hr__hidden"/>
|
||||
<div class="box__placeholder">
|
||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%" height="100%">
|
||||
<line x1='0' y1='0' x2='100%' y2='100%' stroke='#000' stroke-width='.5'/>
|
||||
<line x1='0' y1='100%' x2='100%' y2='0' stroke='#000' stroke-width='.5'/>
|
||||
</svg>
|
||||
</div>
|
||||
<hr class="hr__hidden"/>
|
||||
<div class="box__placeholder_bkg"></div>
|
||||
<h1>Medien</h1>
|
||||
<h1>Druck</h1>
|
||||
|
||||
<section>
|
||||
<header class="header__txt">
|
||||
<h1>Ende der Einführung</h1>
|
||||
<p>Dies war eine Übersicht der grundlegenden Elemente. Nun folgen weitere Elemente mit besonderen Formatierungen.</p>
|
||||
</header>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<section class="sec__main_center">
|
||||
<header>
|
||||
<h1>HIPPIE Erklärung</h1>
|
||||
<p>Aufbau, Standardwerte</p>
|
||||
</header>
|
||||
<article>
|
||||
<p>…</p>
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section class="sec__main_center">
|
||||
<header class="header__txt">
|
||||
<h1>Medienformat Abfragen</h1>
|
||||
</header>
|
||||
<article>
|
||||
<div class="demo__query_example">Umbruch bei </div>
|
||||
<div class="demo__queries">
|
||||
<p class="query__phoneUp">Telefone und größer</p>
|
||||
<p class="query__phoneOnly">Nur Telefone</p>
|
||||
<p class="query__tabletPortaitOnly"Nur >Schreibtafeln hochkant</p>
|
||||
<p class="query__tabletPortraitUp">Schreibtafeln und größer</p>
|
||||
<p class="query__tabletLandscapeOnly">Schreibtafeln im Querformat</p>
|
||||
<p class="query__tabletLandscapeUp">Schreibtafeln quer und größer</p>
|
||||
<p class="query__desktopOnly">Nur Arbeitsplatzrechner</p>
|
||||
<p class="query__desktopUp">Arbeitsplatzrechner und größer</p>
|
||||
<p class="query__bigDesktopUp">Richtige Monitore und größer</p>
|
||||
</div>
|
||||
</article>
|
||||
</section>
|
||||
<section class="sec__main_center">
|
||||
<header class="header__txt">
|
||||
<h1>Sammlung formatierter Elemente</h1>
|
||||
<p>Die Elemente werden fortlaufend komplexer</p>
|
||||
</header>
|
||||
<article>
|
||||
<pre class="pre__code"><code>h3.txt_light_color+p</code></pre>
|
||||
<h3 class="txt_light_color">Helle Überschrift</h3>
|
||||
<p>Mit normalem Textabsatz</p>
|
||||
<pre class="pre__code"><code>a>h4</code></pre>
|
||||
<a href="">
|
||||
<h4>Überschrift als Block-Verweis</h4>
|
||||
</a>
|
||||
<pre class="pre__code"><code>section>div.box__inline_left>img^p+p</code></pre>
|
||||
<section class="overflow">
|
||||
<div class="box__inline_left demo__avatar"><img src="./art/bullet.gif" width="256" height="256" alt="Avatar"></div>
|
||||
<p>Vorname Name<br>Straße 1, 01234 Stadt</p><p>+49 (0)123 1337 0000<br><a class="lineLink" href="mailto:name@domain.tld">name@domain.tld</a></p>
|
||||
</section>
|
||||
<pre class="pre__code"><code>div.box__main_indent</code></pre>
|
||||
<div class="box__main_indent">
|
||||
<hr/>
|
||||
<p>Eingerückter Inhalt</p>
|
||||
<hr/>
|
||||
</div>
|
||||
<pre class="pre__code"><code>nav>ul>(li>a.a__button{Punkt $})*4
|
||||
nav>ul>(li>a.a__button_border{Stufe $})*4</code></pre>
|
||||
<div class="overflow">
|
||||
<nav class="float_space_left">
|
||||
<ul>
|
||||
<li><a href="" class="a__button">Punkt 1</a></li>
|
||||
<li><a href="" class="a__button">Punkt 2</a></li>
|
||||
<li><a href="" class="a__button">Punkt 3</a></li>
|
||||
<li><a href="" class="a__button">Punkt 4</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="" class="a__button_border">Stufe 1</a></li>
|
||||
<li><a href="" class="a__button_border">Stufe 2</a></li>
|
||||
<li><a href="" class="a__button_border">Stufe 3</a></li>
|
||||
<li><a href="" class="a__button_border">Stufe 4</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
<pre class="pre__code"><code>nav.nav__horizontal>ul>(li>a.a__button{Abschnitt $})*4
|
||||
nav.nav__center_old>ul>(li>a.a__button{Typ $})*4</code></pre>
|
||||
<nav class="nav__horizontal">
|
||||
<ul>
|
||||
<li><a href="" class="a__button">Abschnitt 1</a></li>
|
||||
<li><a href="" class="a__button">Abschnitt 2</a></li>
|
||||
<li><a href="" class="a__button">Abschnitt 3</a></li>
|
||||
<li><a href="" class="a__button">Abschnitt 4</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="overflow">
|
||||
<nav class="nav__center_old">
|
||||
<ul>
|
||||
<li><a href="" class="a__button">Typ 1</a></li>
|
||||
<li><a href="" class="a__button">Typ 2</a></li>
|
||||
<li><a href="" class="a__button">Typ 3</a></li>
|
||||
<li><a href="" class="a__button">Typ 4</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
<pre class="pre__code x_long"><code>header.header__page>h1+p+nav.nav__separate_right>ul>(li>a.a__button{Nav $})*4^+nav.nav__right>ul>(li>a.a__button{Nav $})*4</code></pre>
|
||||
<header class="header__page demo__header header__fancy">
|
||||
<h1>Aufmacher</h1>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis nec consectetur diam. Sed nisl odio, volutpat nec nisi sit amet, commodo faucibus est. Donec lacinia vestibulum sapien. Morbi porttitor nibh quis imperdiet scelerisque. Praesent rutrum quam eu sodales luctus.</p>
|
||||
<nav class="nav__separate_right">
|
||||
<ul>
|
||||
<li><a href="" class="a__button">Mensch</a></li>
|
||||
<li><a href="" class="a__button">Pflanze</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<nav class="nav__right">
|
||||
<ul>
|
||||
<li><a href="" class="a__button">Blau</a></li>
|
||||
<li><a href="" class="a__button">Gelb</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
<pre class="pre__code"><code>header.header__page>nav.nav__right>ul>(li>a.a__button{Nav $})*4</code></pre>
|
||||
<div class="box__space height_basic">
|
||||
<header id="js_demo_fix" class="header__page demo__header header__fix">
|
||||
<nav class="nav__right">
|
||||
<ul>
|
||||
<li><a href="" class="a__button">Eins</a></li>
|
||||
<li><a href="" class="a__button">Zwei</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
<div class="pos_abs pin_bottom width_full">
|
||||
<pre class="pre__code"><code>footer.pos_abs.pin_bottom>nav.nav__column>ul>(li>a.a__button_text)*4</code></pre>
|
||||
<footer id="js_demo_stop" class="demo__footer">
|
||||
<nav class="nav__column nav__separate">
|
||||
<ul>
|
||||
<li><a href="" class="a__button_text">Alpha</a></li>
|
||||
<li><a href="" class="a__button_text">Bravo</a></li>
|
||||
<li><a href="" class="a__button_text">Charlie</a></li>
|
||||
<li><a href="" class="a__button_text">Delta</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<p class="txt_center demo__credits"><i class="i__bright">👨💻</i> mit <i class="i__bright">❤</i> von <a href="https://interaktionsweise.de">Interaktionsweise</a></p>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="flex__child"></div>
|
||||
<div class="flex__child"></div>
|
||||
<div class="flex__child"></div>
|
||||
<div class="flex__child"></div>
|
||||
<div class="flex__child"></div>
|
||||
</div>
|
||||
<div class="flex__column_wrap">
|
||||
<div class="column"><input value="Undefiniert"/></div>
|
||||
<div class="column"><input type="text" size="8" value="Text"/></div>
|
||||
<div class="column"><input type="text" size="8" value="Deaktiviert" disabled/></div>
|
||||
<div class="column"><input type="button" value="Auswählen"></div>
|
||||
<div class="column"><input type="submit" value="Senden" disabled/></div>
|
||||
</div>
|
||||
|
||||
<h2>Gruppierung</h2>
|
||||
<pre class="pre__code"><code>ul.list__link>(li>a>img)*2+li>a</code></pre>
|
||||
<ul class="list__link">
|
||||
<li><a href=""><img src="./art/letter.gif" alt="">name@domain.tld</a></li>
|
||||
<li><a href=""><img src="./art/bullet.gif" alt="">Work</a></li>
|
||||
<li><a href="">Projects</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Tabellen</h2>
|
||||
<pre class="pre__code x_long"><code>table.table__link>thead>tr>th{&nbsp;}+th{Ab / Zy}+th{Neu / Alt}^^(tbody>tr>td.cell__icon[rowspan="2"]>img[width=16 height=16]^+td.cell__link>a[target=_blank]{Name}+a[target=_blank]{URL}^+td.cell__date[rowspan="2"]{YYY-MM-DD}^tr>td.cell__text>div.shorten{Beschreibung})*2</code></pre>
|
||||
<table class="table__link js_pop">
|
||||
<thead>
|
||||
<tr>
|
||||
<th> </th>
|
||||
<th>Ab / Zy</th>
|
||||
<th>Neu / Alt</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="cell__icon" rowspan="2"><img src="" alt="" width="16" height="16"></td>
|
||||
<td class="cell__link"><a href="" target="_blank">Name</a><a href="" target="_blank">URL</a></td>
|
||||
<td class="cell__date" rowspan="2">YYYY-MM-DD</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="cell__text">
|
||||
<div class="shorten">Beschreibung</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="cell__icon" rowspan="2"><img src="" alt="" width="16" height="16"></td>
|
||||
<td class="cell__link"><a href="" target="_blank">Name</a><a href="" target="_blank">URL</a></td>
|
||||
<td class="cell__date" rowspan="2">YYYY-MM-DD</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="cell__text">
|
||||
<div class="shorten">Beschreibung</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h2>Eingebettet</h2>
|
||||
<div class="box__full_width demo__flag">
|
||||
<svg version="1.1" id="vector" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%" height="100%" viewBox="0 0 1920 1200" preserveAspectRatio="xMinYMax slice" alt="Background flag">
|
||||
<rect id="triangle-5" y="0" fill="#273F8B" width="1920" height="1200"></rect>
|
||||
<polygon id="triangle-6" fill="#8E1F68" points="0,1200 1920,458.25 1920,1200 "></polygon>
|
||||
<polygon id="triangle-7" fill="#D30A51" points="0,1200 1920,522.75 1920,1200 "></polygon>
|
||||
<polygon id="triangle-8" fill="#F2AF13" points="0,1200 1920,741.75 1920,1200 "></polygon>
|
||||
<polygon id="triangle-9" fill="#FAD803" points="0,1200 1920,787.5 1920,1200 "></polygon>
|
||||
<polygon id="triangle-4" fill="#3C579A" points="0,1200 0,0 733.5,0 "></polygon>
|
||||
<polygon id="triangle-3" fill="#B7E0F0" points="0,1200 0,0 688.5,0 "></polygon>
|
||||
<polygon id="triangle-2" fill="#6BC7D9" points="0,1200 0,0 453,0 "></polygon>
|
||||
<polygon id="triangle-1" fill="#52BED1" points="0,1200 0,0 370.5,0 "></polygon>
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
|
||||
</article>
|
||||
</section>
|
||||
<section>
|
||||
<header class="sec__main_center header__txt">
|
||||
<h1>Autarke Seiten</h1>
|
||||
<p>Diese Elemente repräsentieren jeweils eine eigene Seite.</p>
|
||||
</header>
|
||||
<article>
|
||||
<section class="sec_main_status demo__status">
|
||||
<div class="main_center">
|
||||
<h1>404</h1>
|
||||
<p>Hier ist nichts.</p>
|
||||
<blockquote cite="https://de.wikipedia.org/wiki/HTTP-Statuscode#4xx_.E2.80.93_Client-Fehler">
|
||||
<p>Die angeforderte Ressource wurde nicht gefunden. Dieser Statuscode kann ebenfalls verwendet werden, um eine Anfrage ohne näheren Grund abzuweisen. Links, welche auf solche Fehlerseiten verweisen, werden auch als Tote Links bezeichnet.</p>
|
||||
<p class="quote_source"><a href="https://de.wikipedia.org/wiki/HTTP-Statuscode#4xx_.E2.80.93_Client-Fehler">Wikipedia</a></p>
|
||||
</blockquote>
|
||||
</div>
|
||||
{% include "partials/footer-status.nunjucks" %}
|
||||
</section>
|
||||
<section class="sec_main_status demo__status">
|
||||
<div class="main_center">
|
||||
<h1>403</h1>
|
||||
<p>Nicht erlaubt! <dfn>Forbidden</dfn></p>
|
||||
<blockquote>
|
||||
<p>Die Anfrage wurde mangels Berechtigung des Clients nicht durchgeführt, bspw. weil der authentifizierte Benutzer nicht berechtigt ist, oder eine als HTTPS konfigurierte URL nur mit HTTP aufgerufen wurde.</p>
|
||||
<p class="quote_source"><a href="https://de.wikipedia.org/wiki/HTTP-Statuscode#4xx_.E2.80.93_Client-Fehler">Wikipedia</a></p>
|
||||
</blockquote>
|
||||
</div>
|
||||
{% include "partials/footer-status.nunjucks" %}
|
||||
</section>
|
||||
<section class="sec_main_status demo__status">
|
||||
<div class="main_center">
|
||||
<h1>400</h1>
|
||||
<p>Fehlerhafte Anfrage! <dfn>Bad Request</dfn></p>
|
||||
<blockquote>
|
||||
<p>Die Anfrage-Nachricht war fehlerhaft aufgebaut.</p>
|
||||
<p class="quote_source"><a href="https://de.wikipedia.org/wiki/HTTP-Statuscode#4xx_.E2.80.93_Client-Fehler">Wikipedia</a></p>
|
||||
</blockquote>
|
||||
</div>
|
||||
{% include "partials/footer-status.nunjucks" %}
|
||||
</section>
|
||||
</article>
|
||||
</section>
|
||||
{% include "partials/footer.nunjucks" %}
|
||||
{% endblock %}
|
||||
|
||||
{% block script %}
|
||||
<script type="text/javascript">
|
||||
// Page specific
|
||||
// ------------------------------------------------------------------------------
|
||||
$( document ).ready(function() {
|
||||
console.log('HIPPIE');
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
32
source/pages/index.nunjucks
Normal file
32
source/pages/index.nunjucks
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<!-- index.nunjucks -->
|
||||
{% set pageId = "index" %}
|
||||
|
||||
{% extends "index.nunjucks" %}
|
||||
|
||||
{% block title %}index{% endblock %}
|
||||
{% block head %}
|
||||
{{ super() }}
|
||||
{% endblock %}
|
||||
|
||||
{% block body_content %}
|
||||
{% include "partials/page-hover.nunjucks" %}
|
||||
<div class="wrap">
|
||||
<ul class="list__link hello">
|
||||
<li><a href="demo-index.html">Index</a></li>
|
||||
<li><a href="demo-blank.html">Blank</a></li>
|
||||
<li><a href="demo-explorer.html">Explorer</a></li>
|
||||
<li><a href="demo-presentation.html">Presentation</a></li>
|
||||
<li><a href="404.html">404</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block script %}
|
||||
<script type="text/javascript">
|
||||
// Page specific
|
||||
// ------------------------------------------------------------------------------
|
||||
$( document ).ready(function() {
|
||||
console.log( 'HIPPIE' );
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
|
@ -4,7 +4,8 @@
|
|||
// Paragraph
|
||||
p {
|
||||
@extend %basic;
|
||||
margin: $basic_space 0;
|
||||
margin-top: $basic_space;
|
||||
margin-bottom: $basic_space;
|
||||
code {
|
||||
padding: $tiny_space $half_space;
|
||||
font-size: 1em;
|
||||
|
|
@ -14,7 +15,9 @@ p {
|
|||
|
||||
// Address
|
||||
address {
|
||||
|
||||
@extend %basic;
|
||||
margin-top: $double_space;
|
||||
margin-bottom: $double_space;
|
||||
}
|
||||
|
||||
// Line
|
||||
|
|
@ -124,7 +127,7 @@ ul {
|
|||
color: $basic_font_color;
|
||||
img {
|
||||
margin-right: $basic_space;
|
||||
padding-bottom: .2em;
|
||||
padding-bottom: 0.2em;
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
&:active,
|
||||
|
|
@ -168,8 +171,8 @@ div {
|
|||
|
||||
.box__info {
|
||||
padding: $double_space $basic_indent;
|
||||
border-right: $basic_space solid rgba($echo_color, .6);
|
||||
background-color: rgba($echo_color, .1) !important;
|
||||
border-right: $basic_space solid rgba($echo_color, 0.6);
|
||||
background-color: rgba($echo_color, 0.1) !important;
|
||||
}
|
||||
|
||||
.box__main_indent {
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ tfoot {
|
|||
}
|
||||
|
||||
tr:nth-child(even) td {
|
||||
background-color: rgba($brightest_color, .1);
|
||||
background-color: rgba($brightest_color, 0.1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -80,10 +80,6 @@ dfn {
|
|||
|
||||
}
|
||||
|
||||
address {
|
||||
|
||||
}
|
||||
|
||||
abbr {
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -149,17 +149,17 @@
|
|||
|
||||
.pos_full_view {
|
||||
@extend %full_viewport;
|
||||
background-color: rgba($alpha_color, .5);
|
||||
background-color: rgba($alpha_color, 0.5);
|
||||
}
|
||||
|
||||
.pos_full_page {
|
||||
@extend %full_parent;
|
||||
background-color: rgba($charlie_color, .25);
|
||||
background-color: rgba($charlie_color, 0.25);
|
||||
}
|
||||
|
||||
.hover_back_change {
|
||||
background-color: darken($basic_back_color, 10%);
|
||||
transition: background-color .2s ease-in-out;
|
||||
transition: background-color 0.2s ease-in-out;
|
||||
|
||||
&:hover {
|
||||
background-color: $basic_back_color;
|
||||
|
|
@ -169,8 +169,8 @@
|
|||
.hover_full_view_change {
|
||||
@extend %full_viewport;
|
||||
z-index: $z_heaven;
|
||||
background-color: transparentize($darkest_color, .5);
|
||||
transition: background-color .2s ease-in-out;
|
||||
background-color: transparentize($darkest_color, 0.5);
|
||||
transition: background-color 0.2s ease-in-out;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
|
|
@ -216,13 +216,13 @@
|
|||
%default_button {
|
||||
display: inline-block;
|
||||
padding: $basic_padding;
|
||||
background-color: transparentize($basic_link_color, .8);
|
||||
background-color: transparentize($basic_link_color, 0.8);
|
||||
border-radius: $basic_corner;
|
||||
|
||||
&:active,
|
||||
&:focus,
|
||||
&:hover {
|
||||
background-color: rgba($basic_highlight_color, .1);
|
||||
background-color: rgba($basic_highlight_color, 0.1);
|
||||
color: $basic_highlight_color;
|
||||
border-color: transparent;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -103,13 +103,13 @@ $basic_action_color: $foxtrot_color !default;
|
|||
$basic_border_color: $basic_front_color !default;
|
||||
|
||||
// default shadow colors
|
||||
// $shadow_color: fade-out($medium_color, .5);
|
||||
// $shadow_color: fade-out($medium_color, 0.5);
|
||||
|
||||
$basic_color_list: ();
|
||||
|
||||
@each $key, $value in $color_palette {
|
||||
$map: ();
|
||||
$map: map-merge($map, ($key: createColorMap($value, 15%, .5)) );
|
||||
$map: map-merge($map, ($key: createColorMap($value, 15%, 0.5)) );
|
||||
$basic_color_list: map-merge($basic_color_list, $map);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,8 @@
|
|||
// Reset
|
||||
// Use a file outside of hippie i.e. vendor/normalize.css
|
||||
// -----------------------------------------------------------------------------
|
||||
@import "../../vendor/normalizecss/normalize.css";
|
||||
@import "../bower_components/normalize-css/normalize.css";
|
||||
// @import "normalize-css/normalize.css";
|
||||
// @import "vendor/YOUR-FILES.css";
|
||||
|
||||
|
||||
|
|
@ -91,7 +92,7 @@
|
|||
|
||||
|
||||
// Demonstration
|
||||
@import "modules/demo/demo_module";
|
||||
@import "modules/maintenance/maintenance_module";
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -13,6 +13,12 @@
|
|||
margin-top: 0;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
@media (max-height: 512px) {
|
||||
.pos_abs {
|
||||
position: static !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.demo__header {
|
||||
|
|
@ -27,18 +33,18 @@
|
|||
}
|
||||
|
||||
.header__fancy {
|
||||
background-color: transparentize($bravo_color, .4);
|
||||
background-color: transparentize($bravo_color, 0.4);
|
||||
|
||||
nav {
|
||||
|
||||
a {
|
||||
background-color: transparentize($alpha_color, .4);
|
||||
background-color: transparentize($alpha_color, 0.4);
|
||||
color: $alpha_color;
|
||||
|
||||
&:active,
|
||||
&:focus,
|
||||
&:hover {
|
||||
background-color: rgba($brightest_color, .2);
|
||||
background-color: rgba($brightest_color, 0.2);
|
||||
color: $brightest_color;
|
||||
}
|
||||
}
|
||||
|
|
@ -50,7 +56,7 @@
|
|||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
background-color: transparentize($charlie_color, .4);
|
||||
background-color: transparentize($charlie_color, 0.4);
|
||||
|
||||
nav {
|
||||
|
||||
|
|
@ -59,7 +65,7 @@
|
|||
&:active,
|
||||
&:focus,
|
||||
&:hover {
|
||||
background-color: rgba($brightest_color, .2);
|
||||
background-color: rgba($brightest_color, 0.2);
|
||||
color: $brightest_color;
|
||||
}
|
||||
}
|
||||
|
|
@ -114,39 +120,39 @@
|
|||
}
|
||||
|
||||
.query__phoneUp {
|
||||
background-color: rgba($basic_front_color, .2);
|
||||
background-color: rgba($basic_front_color, 0.2);
|
||||
}
|
||||
|
||||
.query__phoneOnly {
|
||||
@include forPhoneOnly { background-color: rgba($basic_front_color, .2); }
|
||||
@include forPhoneOnly { background-color: rgba($basic_front_color, 0.2); }
|
||||
}
|
||||
|
||||
.query__tabletPortaitOnly {
|
||||
@include forTabletPortraitOnly { background-color: rgba($basic_front_color, .2); }
|
||||
@include forTabletPortraitOnly { background-color: rgba($basic_front_color, 0.2); }
|
||||
}
|
||||
|
||||
.query__tabletPortraitUp {
|
||||
@include forTabletPortraitUp { background-color: rgba($basic_front_color, .2); }
|
||||
@include forTabletPortraitUp { background-color: rgba($basic_front_color, 0.2); }
|
||||
}
|
||||
|
||||
.query__tabletLandscapeOnly {
|
||||
@include forTabletLandscapeOnly { background-color: rgba($basic_front_color, .2); }
|
||||
@include forTabletLandscapeOnly { background-color: rgba($basic_front_color, 0.2); }
|
||||
}
|
||||
|
||||
.query__tabletLandscapeUp {
|
||||
@include forTabletLandscapeUp { background-color: rgba($basic_front_color, .2); }
|
||||
@include forTabletLandscapeUp { background-color: rgba($basic_front_color, 0.2); }
|
||||
}
|
||||
|
||||
.query__desktopOnly {
|
||||
@include forDesktopOnly { background-color: rgba($basic_front_color, .2); }
|
||||
@include forDesktopOnly { background-color: rgba($basic_front_color, 0.2); }
|
||||
}
|
||||
|
||||
.query__desktopUp {
|
||||
@include forDesktopUp { background-color: rgba($basic_front_color, .2); }
|
||||
@include forDesktopUp { background-color: rgba($basic_front_color, 0.2); }
|
||||
}
|
||||
|
||||
.query__bigDesktopUp {
|
||||
@include forBigDesktopUp { background-color: rgba($basic_front_color, .2); }
|
||||
@include forBigDesktopUp { background-color: rgba($basic_front_color, 0.2); }
|
||||
}
|
||||
|
||||
.demo__query_example {
|
||||
|
|
@ -180,7 +186,7 @@
|
|||
content: '< 768px';
|
||||
padding: $basic_padding;
|
||||
border-radius: $basic_corner_radius;
|
||||
background-color: rgba($basic_front_color, .2);
|
||||
background-color: rgba($basic_front_color, 0.2);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -196,5 +202,5 @@
|
|||
.hello {
|
||||
flex: 0 1 auto;
|
||||
padding: 1em 5em;
|
||||
background-color: rgba(black, .25);
|
||||
background-color: rgba(black, 0.25);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@
|
|||
// ------------------------------------------------------------------------------
|
||||
|
||||
%wip {
|
||||
border-right: $basic_space solid rgba(crimson, .8);
|
||||
background-color: rgba(crimson, .1) !important;
|
||||
border-right: $basic_space solid rgba(crimson, 0.8);
|
||||
background-color: rgba(crimson, 0.1) !important;
|
||||
}
|
||||
.wip {
|
||||
@extend %wip;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
content: "";
|
||||
display: block;
|
||||
height: 48px;
|
||||
background-color: rgba($delta_color, .1) !important;
|
||||
background-color: rgba($delta_color, 0.1) !important;
|
||||
}
|
||||
}
|
||||
%expose_before {
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
content: "";
|
||||
display: block;
|
||||
height: 48px;
|
||||
background-color: rgba($delta_color, .1) !important;
|
||||
background-color: rgba($delta_color, 0.1) !important;
|
||||
}
|
||||
}
|
||||
%expose {
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
content: "";
|
||||
display: block;
|
||||
height: 48px;
|
||||
background-color: rgba($delta_color, .1) !important;
|
||||
background-color: rgba($delta_color, 0.1) !important;
|
||||
}
|
||||
}
|
||||
%exp {
|
||||
|
|
@ -85,7 +85,7 @@
|
|||
display: table;
|
||||
right: $double_space;
|
||||
bottom: $double_space;
|
||||
background-color: rgba($darkest_color, .4);
|
||||
background-color: rgba($darkest_color, 0.4);
|
||||
&:hover {
|
||||
background-color: $brightest_color;
|
||||
> .span__solo {
|
||||
|
|
@ -94,7 +94,7 @@
|
|||
}
|
||||
.span__solo {
|
||||
display: table-cell;
|
||||
color: rgba($brightest_color, .8);
|
||||
color: rgba($brightest_color, 0.8);
|
||||
font-family: $monospace_font_family;
|
||||
font-size: 1.4em;
|
||||
text-align: center;
|
||||
|
|
@ -110,6 +110,6 @@
|
|||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background-color: rgba($delta_color, .1) !important;
|
||||
@include vendor-prefix(transition, height .5s ease);
|
||||
background-color: rgba($delta_color, 0.1) !important;
|
||||
@include vendor-prefix(transition, height 0.5s ease);
|
||||
}
|
||||
|
|
|
|||
11
source/style/modules/maintenance/_maintenance_module.scss
Normal file
11
source/style/modules/maintenance/_maintenance_module.scss
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#root {
|
||||
@extend .sec__main_status;
|
||||
position: relative;
|
||||
height: 100%;
|
||||
border-color: $foxtrot_color;
|
||||
|
||||
h1:first-of-type {
|
||||
margin-top: 0;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
3
source/style/modules/media/_media_module.scss
Normal file
3
source/style/modules/media/_media_module.scss
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
.up {
|
||||
@include sprite($up);
|
||||
}
|
||||
101
source/style/modules/media/_sprites.scss
Normal file
101
source/style/modules/media/_sprites.scss
Normal file
|
|
@ -0,0 +1,101 @@
|
|||
// SCSS variables are information about icon's compiled state, stored under its original file name
|
||||
//
|
||||
// .icon-home {
|
||||
// width: $icon-home-width;
|
||||
// }
|
||||
//
|
||||
// The large array-like variables contain all information about a single icon
|
||||
// $icon-home: x y offset_x offset_y width height total_width total_height image_path;
|
||||
//
|
||||
// At the bottom of this section, we provide information about the spritesheet itself
|
||||
// $spritesheet: width height image $spritesheet-sprites;
|
||||
$down-name: 'down';
|
||||
$down-x: 32px;
|
||||
$down-y: 0px;
|
||||
$down-offset-x: -32px;
|
||||
$down-offset-y: 0px;
|
||||
$down-width: 32px;
|
||||
$down-height: 32px;
|
||||
$down-total-width: 64px;
|
||||
$down-total-height: 64px;
|
||||
$down-image: 'sprites.png';
|
||||
$down: (32px, 0px, -32px, 0px, 32px, 32px, 64px, 64px, 'sprites.png', 'down', );
|
||||
$up-name: 'up';
|
||||
$up-x: 0px;
|
||||
$up-y: 0px;
|
||||
$up-offset-x: 0px;
|
||||
$up-offset-y: 0px;
|
||||
$up-width: 32px;
|
||||
$up-height: 64px;
|
||||
$up-total-width: 64px;
|
||||
$up-total-height: 64px;
|
||||
$up-image: 'sprites.png';
|
||||
$up: (0px, 0px, 0px, 0px, 32px, 64px, 64px, 64px, 'sprites.png', 'up', );
|
||||
$spritesheet-width: 64px;
|
||||
$spritesheet-height: 64px;
|
||||
$spritesheet-image: 'sprites.png';
|
||||
$spritesheet-sprites: ($down, $up, );
|
||||
$spritesheet: (64px, 64px, 'sprites.png', $spritesheet-sprites, );
|
||||
|
||||
// The provided mixins are intended to be used with the array-like variables
|
||||
//
|
||||
// .icon-home {
|
||||
// @include sprite-width($icon-home);
|
||||
// }
|
||||
//
|
||||
// .icon-email {
|
||||
// @include sprite($icon-email);
|
||||
// }
|
||||
//
|
||||
// Example usage in HTML:
|
||||
//
|
||||
// `display: block` sprite:
|
||||
// <div class="icon-home"></div>
|
||||
//
|
||||
// To change `display` (e.g. `display: inline-block;`), we suggest using a common CSS class:
|
||||
//
|
||||
// // CSS
|
||||
// .icon {
|
||||
// display: inline-block;
|
||||
// }
|
||||
//
|
||||
// // HTML
|
||||
// <i class="icon icon-home"></i>
|
||||
@mixin sprite-width($sprite) {
|
||||
width: nth($sprite, 5);
|
||||
}
|
||||
|
||||
@mixin sprite-height($sprite) {
|
||||
height: nth($sprite, 6);
|
||||
}
|
||||
|
||||
@mixin sprite-position($sprite) {
|
||||
$sprite-offset-x: nth($sprite, 3);
|
||||
$sprite-offset-y: nth($sprite, 4);
|
||||
background-position: $sprite-offset-x $sprite-offset-y;
|
||||
}
|
||||
|
||||
@mixin sprite-image($sprite) {
|
||||
$sprite-image: nth($sprite, 9);
|
||||
background-image: url(#{$sprite-image});
|
||||
}
|
||||
|
||||
@mixin sprite($sprite) {
|
||||
@include sprite-image($sprite);
|
||||
@include sprite-position($sprite);
|
||||
@include sprite-width($sprite);
|
||||
@include sprite-height($sprite);
|
||||
}
|
||||
|
||||
// The `sprites` mixin generates identical output to the CSS template
|
||||
// but can be overridden inside of SCSS
|
||||
//
|
||||
// @include sprites($spritesheet-sprites);
|
||||
@mixin sprites($sprites) {
|
||||
@each $sprite in $sprites {
|
||||
$sprite-name: nth($sprite, 10);
|
||||
.#{$sprite-name} {
|
||||
@include sprite($sprite);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -154,7 +154,7 @@ nav {
|
|||
&:active,
|
||||
&:focus,
|
||||
&:hover {
|
||||
background-color: rgba($basic_font_color, .2);
|
||||
background-color: rgba($basic_font_color, 0.2);
|
||||
color: $basic_font_color;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
55
source/templates/demo.nunjucks
Normal file
55
source/templates/demo.nunjucks
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
<!-- layout.nunjucks -->
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
{% block head %}
|
||||
<title>{% block title %}{% endblock %} - HIPPIE</title>
|
||||
|
||||
<!--[if lte IE 9]>
|
||||
<script src="https://cdn.jsdelivr.net/html5shiv/3.7.3/html5shiv.min.js"></script>
|
||||
<![endif]-->
|
||||
<!--[if lte IE 9]>
|
||||
<script src="https://cdn.jsdelivr.net/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
|
||||
<![endif]-->
|
||||
<!--Local alternative: <script src="./code/html5shiv.min.js"></script>-->
|
||||
<!--Only use one of the above!-->
|
||||
|
||||
<meta name="author" content="Interaktionsweise">
|
||||
<meta name="description" content="hippie example">
|
||||
<meta name="generator" content="Notepad++, Atom">
|
||||
<meta name="robots" content="noindex">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge;chrome=1" />
|
||||
|
||||
<link rel="icon" href="./favicon.ico" type="image/vnd.microsoft.icon">
|
||||
<link rel="shortcut icon" type="image/x-icon" href="./favicon.ico" />
|
||||
|
||||
<!-- <link href='https://fonts.googleapis.com/css?family=Roboto:400,300,400italic,500,500italic,700' rel='stylesheet' type='text/css'> -->
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/example.css"/>
|
||||
<!-- <link rel="stylesheet" type="text/css" media="print" href="./css/print.css"/> -->
|
||||
{% endblock %}
|
||||
</head>
|
||||
|
||||
<body class="{{ pageId }}_body">
|
||||
<div id="root">
|
||||
<header id="js_head" class="header_site">
|
||||
{% block body_header %}
|
||||
<!-- super stuff -->
|
||||
{% endblock %}
|
||||
</header>
|
||||
<main class="main_site">
|
||||
{% block body_content %}{% endblock %}
|
||||
</main>
|
||||
</div>
|
||||
<script
|
||||
src="https://code.jquery.com/jquery-3.2.1.min.js"
|
||||
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
|
||||
crossorigin="anonymous"></script>
|
||||
<script src="../vendor/jq-sticky-anything.min.js" type="text/javascript"></script>
|
||||
<script src="./js/all.min.js" type="text/javascript"></script>
|
||||
{% block script %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
33
source/templates/index.nunjucks
Normal file
33
source/templates/index.nunjucks
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
<!-- layout.nunjucks -->
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
{% block head %}
|
||||
<title>{% block title %}{% endblock %} - HIPPIE</title>
|
||||
|
||||
<meta name="author" content="Interaktionsweise">
|
||||
<meta name="description" content="hippie example">
|
||||
<meta name="generator" content="Notepad++, Atom">
|
||||
<meta name="robots" content="noindex">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge;chrome=1" />
|
||||
|
||||
<link rel="icon" href="./favicon.ico" type="image/vnd.microsoft.icon">
|
||||
<link rel="shortcut icon" type="image/x-icon" href="./favicon.ico" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/example.css"/>
|
||||
<!-- <link rel="stylesheet" type="text/css" media="print" href="./css/print.css"/> -->
|
||||
{% endblock %}
|
||||
</head>
|
||||
|
||||
<body id="{{ pageId }}" class="height_full">
|
||||
{% block body_content %}{% endblock %}
|
||||
<script src="bower_components/jquery/dist/jquery.js"></script>
|
||||
<script src="../vendor/jq-sticky-anything.min.js" type="text/javascript"></script>
|
||||
<script src="./js/all.min.js" type="text/javascript"></script>
|
||||
{% block script %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
18
source/templates/macros/nav-macro.nunjucks
Normal file
18
source/templates/macros/nav-macro.nunjucks
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{% set item = [['mateladen', 'shop'], ['zubereitung', 'preparation'], ['wissen', 'knowledge'], ['blog', 'blog'], ['kontakt', 'contact']] %}
|
||||
{% macro active(activePage='') %}<!-- nav.macro -->
|
||||
<nav class="nav_site">
|
||||
<span id="js_nav_tog" class="nav_site_toggle"><img src="./art/more.svg" width="22" height="22"/></span>
|
||||
<ul class="nav_site_main">
|
||||
{% for a, b in item -%}
|
||||
<li{%if activePage == a %} class="active_txt"{% endif %}>{%if activePage == a %}{{ a }}{%else%}<a href="{{ b }}.html">{{ a }}</a>{% endif %}</li>
|
||||
{% endfor -%}
|
||||
</ul>
|
||||
<ul class="nav_site_add">
|
||||
<li><a href="dummy.html"><img src="./art/search.svg" width="22" height="22"/></a></li>
|
||||
<li><img src="./art/cart.svg" width="22" height="22"/></li>
|
||||
</ul>
|
||||
</nav>
|
||||
{%- endmacro %}
|
||||
{% macro top() %}<!-- top.macro -->
|
||||
<div id="js_top" class="overlay_btn hidden"><span class="span_solo"><img src="./art/top.svg" width="44" height="44"/></span></div>
|
||||
{%- endmacro %}
|
||||
5
source/templates/macros/top-macro.nunjucks
Normal file
5
source/templates/macros/top-macro.nunjucks
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{% macro field(name, value='', type='text') %}
|
||||
<div class="field">
|
||||
<input type="{{ type }}" name="{{ name }}" value="{{ value | escape }}" />
|
||||
</div>
|
||||
{% endmacro %}
|
||||
28
source/templates/maintenance.nunjucks
Normal file
28
source/templates/maintenance.nunjucks
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<!-- layout.nunjucks -->
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
{% block head %}
|
||||
<title>{% block title %}{% endblock %}</title>
|
||||
|
||||
<meta name="author" content="Interaktionsweise">
|
||||
<meta name="description" content="hippie example">
|
||||
<meta name="generator" content="Notepad++, Atom">
|
||||
<meta name="robots" content="noindex">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge;chrome=1" />
|
||||
|
||||
<link rel="icon" href="./favicon.ico" type="image/vnd.microsoft.icon">
|
||||
<link rel="shortcut icon" type="image/x-icon" href="./favicon.ico" />
|
||||
{% endblock %}
|
||||
</head>
|
||||
|
||||
<body id="{{ pageId }}" class="height_full">
|
||||
<div id="root">
|
||||
{% block body_content %}{% endblock %}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
4
source/templates/partials/footer-status.nunjucks
Normal file
4
source/templates/partials/footer-status.nunjucks
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<!-- footer-status.partial -->
|
||||
<footer class="pos_abs pin_bottom width_full">
|
||||
<address class="txt_center"><a class="lineLink" href="mailto:admin@domain.tld">admin@domain.tld</a> * Server Application/ver.s.ion (System Name) serving domain.tld:port</address>
|
||||
</footer>
|
||||
2
source/templates/partials/footer.nunjucks
Normal file
2
source/templates/partials/footer.nunjucks
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!-- footer.partial -->
|
||||
<div id="end"></div>
|
||||
2
source/templates/partials/page-hover.nunjucks
Normal file
2
source/templates/partials/page-hover.nunjucks
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<!-- page-hover.partial -->
|
||||
<div id="js_tph" class="layer__hover"></div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue