new index

fixed some browser sync settings
new index file
This commit is contained in:
Stephan Hagedorn 2017-09-27 08:27:36 +02:00
parent a4a1fbc14d
commit 010c8953c2
12 changed files with 116 additions and 18 deletions

1
.gitignore vendored
View file

@ -187,4 +187,5 @@ typings/
# https://interaktionsweise.de/
###################
###################
build/
art/

View file

@ -90,6 +90,9 @@ textarea:not([disabled]):focus {
.height_basic {
height: 1024px; }
.height_full {
height: 100vh; }
.txt_center {
text-align: center !important; }
@ -413,9 +416,6 @@ ul li {
figure {
margin: 16px 2em; }
.box__page {
height: 100vh; }
.box__info {
padding: 16px 2em;
border-right: 8px solid rgba(82, 190, 209, 0.6);
@ -1252,6 +1252,25 @@ nav li {
.demo__query_example:after {
content: '1920px'; } }
.wrap {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
height: 100%;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center; }
.hello {
-webkit-box-flex: 0;
-ms-flex: 0 1 auto;
flex: 0 1 auto;
padding: 1em 5em;
background-color: rgba(0, 0, 0, 0.25); }
.test li::after {
content: "";
display: block;

File diff suppressed because one or more lines are too long

4
build/js/all.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -20,7 +20,7 @@
</head>
<body>
<div class="box__page">
<div class="height_full">
<div class="flex__wrap">
<button class="demo__button_32"></button>
<button class="demo__button_32"></button>

View file

@ -20,7 +20,7 @@
</head>
<body>
<div class="box__page">
<div class="height_full">
<div class="slides">
<section>Start</section>
<section>Seite 2</section>

View file

@ -1,5 +1,7 @@
// Setup project
var source = {
markup: '*.html',
watch: 'source/style/**/*.scss',
styles: 'source/style/example.scss',
scripts: ['source/code/variables.js', 'source/code/functions.js', 'source/code/global.js', 'source/code/**/*.coffee', '!source/vendor/**/*', ],
images: 'source/art/**/*'
@ -85,18 +87,18 @@ gulp.task('images', function() {
// Watch for file changes
gulp.task('watch', ['clean', 'styles', 'scripts'], function() {
browsersync.init({
server: ".",
server: "./",
// proxy: "http://verser.vrt/virtual/"
});
gulp.watch(source.styles, ['styles']);
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("./*.html").on('change', browsersync.reload);
gulp.watch(source.markup).on('change', browsersync.reload);
// gulp.watch(['build/**']).on('change', browsersync.reload);
// gulp.watch(source.images, ['images']);
});

61
index.html Normal file
View file

@ -0,0 +1,61 @@
<!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>

View file

@ -1,7 +1,7 @@
var w = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
var h = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
var full_view_hover = false;
var full_view_hover = true;
var doc_pos_y = 0;
var basic_ease = 600;

View file

@ -164,10 +164,6 @@ div {
}
.box__page {
height: 100vh;
}
.box__info {
padding: $double_space $basic_indent;
border-right: $basic_space solid rgba($echo_color, .6);

View file

@ -41,6 +41,10 @@
height: 1024px;
}
.height_full {
height: 100vh;
}
.txt_center {
text-align: center !important;
}

View file

@ -174,3 +174,18 @@
background-color: rgba($basic_front_color, .2);
}
}
// Index
// -----------------------------------------------------------------------------
.wrap {
display: flex;
height: 100%;
align-items: center;
justify-content: center;
}
.hello {
flex: 0 1 auto;
padding: 1em 5em;
background-color: rgba(black, .25);
}