Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Commit

Permalink
Removing 130% text size - draft for version 4.1.0
Browse files Browse the repository at this point in the history
viktor-sarge committed May 21, 2019
1 parent 158213e commit 77a6cbc
Showing 18 changed files with 299 additions and 96 deletions.
4 changes: 2 additions & 2 deletions build/css/components.css

Large diffs are not rendered by default.

90 changes: 45 additions & 45 deletions build/js/components.js
Original file line number Diff line number Diff line change
@@ -43,6 +43,50 @@ window.onclick = function (event) {
"use strict";
"use strict";

var acc = document.getElementsByClassName("rh-accordion");
var i;

for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function () {
this.classList.toggle("rh-accordion-active");
var panel = this.nextElementSibling;

if (panel.style.maxHeight) {
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = panel.scrollHeight + 100 + "px";
}
});
}
"use strict";

var videoPlayButton,
videoWrapper = document.getElementsByClassName('rh-video')[0],
video = document.getElementsByTagName('video')[0],
videoMethods = {
renderVideoPlayButton: function renderVideoPlayButton() {
if (videoWrapper !== undefined && videoWrapper.contains(video)) {
this.formatVideoPlayButton();
video.classList.add('has-media-controls-hidden');
videoPlayButton = document.getElementsByClassName('video-button')[0];
videoPlayButton.addEventListener('click', this.hideVideoPlayButton);
}
},
formatVideoPlayButton: function formatVideoPlayButton() {
videoWrapper.insertAdjacentHTML('beforeend', '\
<div class="video-button"><div class="video-button-content"> <i class="feather icon-play"></i> </div></div>\
');
},
hideVideoPlayButton: function hideVideoPlayButton() {
video.play();
videoPlayButton.classList.add('is-hidden');
video.classList.remove('has-media-controls-hidden');
video.setAttribute('controls', 'controls');
}
};
videoMethods.renderVideoPlayButton();
"use strict";

var acc = document.getElementsByClassName("rh-search-accordion");
var i;

@@ -152,48 +196,4 @@ function setShadow() {
cols[0].classList.add("rh-table-cell--shadow");
}
}
}
"use strict";

var acc = document.getElementsByClassName("rh-accordion");
var i;

for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function () {
this.classList.toggle("rh-accordion-active");
var panel = this.nextElementSibling;

if (panel.style.maxHeight) {
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = panel.scrollHeight + 100 + "px";
}
});
}
"use strict";

var videoPlayButton,
videoWrapper = document.getElementsByClassName('rh-video')[0],
video = document.getElementsByTagName('video')[0],
videoMethods = {
renderVideoPlayButton: function renderVideoPlayButton() {
if (videoWrapper !== undefined && videoWrapper.contains(video)) {
this.formatVideoPlayButton();
video.classList.add('has-media-controls-hidden');
videoPlayButton = document.getElementsByClassName('video-button')[0];
videoPlayButton.addEventListener('click', this.hideVideoPlayButton);
}
},
formatVideoPlayButton: function formatVideoPlayButton() {
videoWrapper.insertAdjacentHTML('beforeend', '\
<div class="video-button"><div class="video-button-content"> <i class="feather icon-play"></i> </div></div>\
');
},
hideVideoPlayButton: function hideVideoPlayButton() {
video.play();
videoPlayButton.classList.add('is-hidden');
video.classList.remove('has-media-controls-hidden');
video.setAttribute('controls', 'controls');
}
};
videoMethods.renderVideoPlayButton();
}
1 change: 0 additions & 1 deletion components/scss/_base.scss
Original file line number Diff line number Diff line change
@@ -4,7 +4,6 @@

body {
font-family: Arial;
font-size: 130%;
}

#hidden{
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Stilguide",
"version": "4.0.0",
"version": "4.1.0",
"dependencies": {
"@frctl/fractal": "^1.1.7",
"@frctl/mandelbrot": "^1.2.0",
4 changes: 2 additions & 2 deletions public/css/components.css

Large diffs are not rendered by default.

90 changes: 45 additions & 45 deletions public/js/components.js
Original file line number Diff line number Diff line change
@@ -43,50 +43,6 @@ window.onclick = function (event) {
"use strict";
"use strict";

var acc = document.getElementsByClassName("rh-accordion");
var i;

for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function () {
this.classList.toggle("rh-accordion-active");
var panel = this.nextElementSibling;

if (panel.style.maxHeight) {
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = panel.scrollHeight + 100 + "px";
}
});
}
"use strict";

var videoPlayButton,
videoWrapper = document.getElementsByClassName('rh-video')[0],
video = document.getElementsByTagName('video')[0],
videoMethods = {
renderVideoPlayButton: function renderVideoPlayButton() {
if (videoWrapper !== undefined && videoWrapper.contains(video)) {
this.formatVideoPlayButton();
video.classList.add('has-media-controls-hidden');
videoPlayButton = document.getElementsByClassName('video-button')[0];
videoPlayButton.addEventListener('click', this.hideVideoPlayButton);
}
},
formatVideoPlayButton: function formatVideoPlayButton() {
videoWrapper.insertAdjacentHTML('beforeend', '\
<div class="video-button"><div class="video-button-content"> <i class="feather icon-play"></i> </div></div>\
');
},
hideVideoPlayButton: function hideVideoPlayButton() {
video.play();
videoPlayButton.classList.add('is-hidden');
video.classList.remove('has-media-controls-hidden');
video.setAttribute('controls', 'controls');
}
};
videoMethods.renderVideoPlayButton();
"use strict";

var acc = document.getElementsByClassName("rh-search-accordion");
var i;

@@ -196,4 +152,48 @@ function setShadow() {
cols[0].classList.add("rh-table-cell--shadow");
}
}
}
}
"use strict";

var acc = document.getElementsByClassName("rh-accordion");
var i;

for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function () {
this.classList.toggle("rh-accordion-active");
var panel = this.nextElementSibling;

if (panel.style.maxHeight) {
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = panel.scrollHeight + 100 + "px";
}
});
}
"use strict";

var videoPlayButton,
videoWrapper = document.getElementsByClassName('rh-video')[0],
video = document.getElementsByTagName('video')[0],
videoMethods = {
renderVideoPlayButton: function renderVideoPlayButton() {
if (videoWrapper !== undefined && videoWrapper.contains(video)) {
this.formatVideoPlayButton();
video.classList.add('has-media-controls-hidden');
videoPlayButton = document.getElementsByClassName('video-button')[0];
videoPlayButton.addEventListener('click', this.hideVideoPlayButton);
}
},
formatVideoPlayButton: function formatVideoPlayButton() {
videoWrapper.insertAdjacentHTML('beforeend', '\
<div class="video-button"><div class="video-button-content"> <i class="feather icon-play"></i> </div></div>\
');
},
hideVideoPlayButton: function hideVideoPlayButton() {
video.play();
videoPlayButton.classList.add('is-hidden');
video.classList.remove('has-media-controls-hidden');
video.setAttribute('controls', 'controls');
}
};
videoMethods.renderVideoPlayButton();
3 changes: 3 additions & 0 deletions releases/4.1.0/css/components.css

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added releases/4.1.0/images/components/figure/bild.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 77a6cbc

Please sign in to comment.