Depuración y preparación de plantilla

This commit is contained in:
2025-09-13 13:33:41 -06:00
parent 3517b1cfb2
commit 21a09f2fa9
1587 changed files with 2663 additions and 87357 deletions

View File

@ -1,48 +0,0 @@
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, main {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}

File diff suppressed because it is too large Load Diff

View File

@ -1,123 +0,0 @@
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/reset.css"> <!-- CSS reset -->
<link rel="stylesheet" href="css/style.css"> <!-- Resource style -->
<script src="js/modernizr.js"></script> <!-- Modernizr -->
<title>Animated Headlines | CodyHouse</title>
</head>
<body>
<section class="cd-title">
<h1>Animated Headlines</h1>
</section>
<section class="cd-intro">
<h1 class="cd-headline rotate-1">
<span>My favourite food is</span>
<span class="cd-words-wrapper">
<b class="is-visible">pizza</b>
<b>sushi</b>
<b>steak</b>
</span>
</h1>
</section> <!-- cd-intro -->
<section class="cd-intro">
<h1 class="cd-headline letters type">
<span>My favourite food is</span>
<span class="cd-words-wrapper waiting">
<b class="is-visible">pizza</b>
<b>sushi</b>
<b>steak</b>
</span>
</h1>
</section> <!-- cd-intro -->
<section class="cd-intro">
<h1 class="cd-headline letters rotate-2">
<span>My favourite food is</span>
<span class="cd-words-wrapper">
<b class="is-visible">pizza</b>
<b>sushi</b>
<b>steak</b>
</span>
</h1>
</section> <!-- cd-intro -->
<section class="cd-intro">
<h1 class="cd-headline loading-bar">
<span>My favourite food is</span>
<span class="cd-words-wrapper">
<b class="is-visible">pizza</b>
<b>sushi</b>
<b>steak</b>
</span>
</h1>
</section> <!-- cd-intro -->
<section class="cd-intro">
<h1 class="cd-headline slide">
<span>My favourite food is</span>
<span class="cd-words-wrapper">
<b class="is-visible">pizza</b>
<b>sushi</b>
<b>steak</b>
</span>
</h1>
</section> <!-- cd-intro -->
<section class="cd-intro">
<h1 class="cd-headline clip is-full-width">
<span>My favourite food is</span>
<span class="cd-words-wrapper">
<b class="is-visible">pizza</b>
<b>sushi</b>
<b>steak</b>
</span>
</h1>
</section> <!-- cd-intro -->
<section class="cd-intro">
<h1 class="cd-headline zoom">
<span>My favourite food is</span>
<span class="cd-words-wrapper">
<b class="is-visible">pizza</b>
<b>sushi</b>
<b>steak</b>
</span>
</h1>
</section> <!-- cd-intro -->
<section class="cd-intro">
<h1 class="cd-headline letters rotate-3">
<span>My favourite food is</span>
<span class="cd-words-wrapper">
<b class="is-visible">pizza</b>
<b>sushi</b>
<b>steak</b>
</span>
</h1>
</section> <!-- cd-intro -->
<section class="cd-intro">
<h1 class="cd-headline letters scale">
<span>My favourite food is</span>
<span class="cd-words-wrapper">
<b class="is-visible">pizza</b>
<b>sushi</b>
<b>steak</b>
</span>
</h1>
</section> <!-- cd-intro -->
<section class="cd-intro">
<h1 class="cd-headline push">
<span>My favourite food is</span>
<span class="cd-words-wrapper">
<b class="is-visible">pizza</b>
<b>sushi</b>
<b>steak</b>
</span>
</h1>
</section> <!-- cd-intro -->
<script src="js/jquery-2.1.1.js"></script>
<script src="js/main.js"></script> <!-- Resource jQuery -->
</body>
</html>

View File

@ -1,20 +0,0 @@
// breakpoints
$S: 480px;
$M: 768px;
$L: 1170px;
// media queries
@mixin MQ($canvas) {
@if $canvas == S {
@media only screen and (min-width: $S) { @content; }
}
@else if $canvas == M {
@media only screen and (min-width: $M) { @content; }
}
@else if $canvas == L {
@media only screen and (min-width: $L) { @content; }
}
}

View File

@ -1,21 +0,0 @@
// center vertically and/or horizontally an absolute positioned element
@mixin center($xy:xy) {
@if $xy == xy {
left: 50%;
top: 50%;
bottom: auto;
right: auto;
@include transform(translateX(-50%) translateY(-50%));
}
@else if $xy == x {
left: 50%;
right: auto;
@include transform(translateX(-50%));
}
@else if $xy == y {
top: 50%;
bottom: auto;
@include transform(translateY(-50%));
}
}

View File

@ -1,9 +0,0 @@
// colors
$color-1: #aebcb9; // Tower Gray
$color-2: #0096a7; // Bondi Blue
$color-3: #0d0d0d; // Cod Gray
// fonts
$primary-font: 'Source Sans Pro', sans-serif;

View File

@ -1,755 +0,0 @@
@import 'bourbon'; // http://bourbon.io/
@import '../partials/variables'; // colors, fonts etc...
@import '../partials/mixins'; // custom mixins
@import '../partials/layout'; // responsive grid and media queries
/* --------------------------------
Primary style
-------------------------------- */
*, *::after, *::before {
@include box-sizing(border-box);
}
html * {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
html {
font-size: 62.5%;
}
body {
font: {
size: 1.6rem;
family: $primary-font; // variables inside partials > _variables.scss
}
color: $color-1;
background-color: $color-3;
}
a {
text-decoration: none;
}
.cd-title {
position: relative;
height: 160px;
line-height: 230px;
text-align: center;
h1 {
font-size: 2.4rem;
font-weight: 700;
}
@include MQ(M) {
line-height: 250px;
}
@include MQ(L) {
height: 200px;
line-height: 300px;
h1 {
font-size: 3rem;
}
}
}
.cd-intro {
width: 90%;
max-width: $M;
text-align: center;
}
.cd-intro {
margin: 4em auto;
@include MQ(M) {
margin: 5em auto;
}
@include MQ(L) {
margin: 6em auto;
}
}
.cd-headline {
font-size: 3rem;
line-height: 1.2;
@include MQ(M) {
font-size: 4.4rem;
font-weight: 300;
}
@include MQ(L) {
font-size: 6rem;
}
}
.cd-words-wrapper {
display: inline-block;
position: relative;
text-align: left;
b {
display: inline-block;
position: absolute;
white-space: nowrap;
left: 0;
top: 0;
&.is-visible {
position: relative;
}
}
.no-js & b {
opacity: 0;
&.is-visible {
opacity: 1;
}
}
}
/* --------------------------------
xrotate-1
-------------------------------- */
.cd-headline.rotate-1 {
.cd-words-wrapper {
@include perspective(300px);
}
b {
opacity: 0;
@include transform-origin(50% 100%);
@include transform(rotateX(180deg));
&.is-visible {
opacity: 1;
@include transform(rotateX(0deg));
@include animation(cd-rotate-1-in 1.2s);
}
&.is-hidden {
@include transform(rotateX(180deg));
@include animation(cd-rotate-1-out 1.2s);
}
}
}
@include keyframes(cd-rotate-1-in) {
0% {
@include transform(rotateX(180deg));
opacity: 0;
}
35% {
@include transform(rotateX(120deg));
opacity: 0;
}
65% {
opacity: 0;
}
100% {
@include transform(rotateX(360deg));
opacity: 1;
}
}
@include keyframes(cd-rotate-1-out) {
0% {
@include transform(rotateX(0deg));
opacity: 1;
}
35% {
@include transform(rotateX(-40deg));
opacity: 1;
}
65% {
opacity: 0;
}
100% {
@include transform(rotateX(180deg));
opacity: 0;
}
}
/* --------------------------------
xtype
-------------------------------- */
.cd-headline.type {
.cd-words-wrapper {
vertical-align: top;
overflow: hidden;
&::after {
/* vertical bar */
content: '';
position: absolute;
right: 0;
@include center(y);
height: 90%;
width: 1px;
background-color: $color-1;
}
&.waiting::after {
@include animation(cd-pulse 1s infinite);
}
&.selected {
background-color: $color-1;
&::after {
visibility: hidden;
}
b {
color: $color-3;
}
}
}
b {
visibility: hidden;
&.is-visible {
visibility: visible;
}
}
i {
position: absolute;
visibility: hidden;
&.in {
position: relative;
visibility: visible;
}
}
}
@include keyframes(cd-pulse) {
0% {
@include transform(translateY(-50%) scale(1));
opacity: 1;
}
40% {
@include transform(translateY(-50%) scale(0.9));
opacity: 0;
}
100% {
@include transform(translateY(-50%) scale(0));
opacity: 0;
}
}
/* --------------------------------
xrotate-2
-------------------------------- */
.cd-headline.rotate-2 {
.cd-words-wrapper {
@include perspective(300px);
}
i, em {
display: inline-block;
@include backface-visibility(hidden);
}
b {
opacity: 0;
}
i {
@include transform-style(preserve-3d);
@include transform(translateZ(-20px) rotateX(90deg));
opacity: 0;
.is-visible & {
opacity: 1;
}
&.in {
@include animation(cd-rotate-2-in .4s forwards);
}
&.out {
@include animation(cd-rotate-2-out .4s forwards);
}
}
em {
@include transform(translateZ(20px));
}
}
.no-csstransitions .cd-headline.rotate-2 i {
@include transform(rotateX(0deg));
opacity: 0;
em {
@include transform(scale(1));
}
}
.no-csstransitions .cd-headline.rotate-2 .is-visible i {
opacity: 1;
}
@include keyframes(cd-rotate-2-in) {
0% {
opacity: 0;
@include transform(translateZ(-20px) rotateX(90deg));
}
60% {
opacity: 1;
@include transform(translateZ(-20px) rotateX(-10deg));
}
100% {
opacity: 1;
@include transform(translateZ(-20px) rotateX(0deg));
}
}
@include keyframes(cd-rotate-2-out) {
0% {
opacity: 1;
@include transform(translateZ(-20px) rotateX(0));
}
60% {
opacity: 0;
@include transform(translateZ(-20px) rotateX(-100deg));
}
100% {
opacity: 0;
@include transform(translateZ(-20px) rotateX(-90deg));
}
}
/* --------------------------------
xloading-bar
-------------------------------- */
.cd-headline.loading-bar {
span {
display: inline-block;
padding: .2em 0;
}
.cd-words-wrapper {
overflow: hidden;
vertical-align: top;
&::after {
/* loading bar */
content: '';
position: absolute;
left: 0;
bottom: 0;
height: 3px;
width: 0;
background: $color-2;
z-index: 2;
@include transition(width .3s -0.1s);
}
&.is-loading::after {
width: 100%;
@include transition(width 3s);
}
}
b {
top: .2em;
opacity: 0;
@include transition(opacity .3s);
&.is-visible {
opacity: 1;
top: 0;
}
}
}
/* --------------------------------
xslide
-------------------------------- */
.cd-headline.slide {
span {
display: inline-block;
padding: .2em 0;
}
.cd-words-wrapper {
overflow: hidden;
vertical-align: top;
}
b {
opacity: 0;
top: .2em;
&.is-visible {
top: 0;
opacity: 1;
@include animation(slide-in .6s);
}
&.is-hidden {
@include animation(slide-out .6s);
}
}
}
@include keyframes(slide-in) {
0% {
opacity: 0;
@include transform(translateY(-100%));
}
60% {
opacity: 1;
@include transform(translateY(20%));
}
100% {
opacity: 1;
@include transform(translateY(0));
}
}
@include keyframes(slide-out) {
0% {
opacity: 1;
@include transform(translateY(0));
}
60% {
opacity: 0;
@include transform(translateY(120%));
}
100% {
opacity: 0;
@include transform(translateY(100%));
}
}
/* --------------------------------
xclip
-------------------------------- */
.cd-headline.clip {
span {
display: inline-block;
padding: .2em 0;
}
.cd-words-wrapper {
overflow: hidden;
vertical-align: top;
&::after {
/* line */
content: '';
position: absolute;
top: 0;
right: 0;
width: 2px;
height: 100%;
background-color: $color-1;
}
}
b {
opacity: 0;
&.is-visible {
opacity: 1;
}
}
}
/* --------------------------------
xzoom
-------------------------------- */
.cd-headline.zoom {
.cd-words-wrapper {
@include perspective(300px);
}
b {
opacity: 0;
&.is-visible {
opacity: 1;
@include animation(zoom-in .8s);
}
&.is-hidden {
@include animation(zoom-out .8s);
}
}
}
@include keyframes(zoom-in) {
0% {
opacity: 0;
@include transform(translateZ(100px));
}
100% {
opacity: 1;
@include transform(translateZ(0));
}
}
@include keyframes(zoom-out) {
0% {
opacity: 1;
@include transform(translateZ(0));
}
100% {
opacity: 0;
@include transform(translateZ(-100px));
}
}
/* --------------------------------
xrotate-3
-------------------------------- */
.cd-headline.rotate-3 {
.cd-words-wrapper {
@include perspective(300px);
}
b {
opacity: 0;
}
i {
display: inline-block;
@include transform(rotateY(180deg));
@include backface-visibility(hidden);
.is-visible & {
@include transform(rotateY(0deg));
}
&.in {
@include animation(cd-rotate-3-in .6s forwards);
}
&.out {
@include animation(cd-rotate-3-out .6s forwards);
}
}
}
.no-csstransitions .cd-headline.rotate-3 i {
@include transform(rotateY(0deg));
opacity: 0;
}
.no-csstransitions .cd-headline.rotate-3 .is-visible i {
opacity: 1;
}
@include keyframes(cd-rotate-3-in) {
0% {
@include transform(rotateY(180deg));
}
100% {
@include transform(rotateY(0deg));
}
}
@include keyframes(cd-rotate-3-out) {
0% {
@include transform(rotateY(0));
}
100% {
@include transform(rotateY(-180deg));
}
}
/* --------------------------------
xscale
-------------------------------- */
.cd-headline.scale {
b {
opacity: 0;
}
i {
display: inline-block;
opacity: 0;
@include transform(scale(0));
.is-visible & {
opacity: 1;
}
&.in {
@include animation(scale-up .6s forwards);
}
&.out {
@include animation(scale-down .6s forwards);
}
}
}
.no-csstransitions .cd-headline.scale i {
@include transform(scale(1));
opacity: 0;
}
.no-csstransitions .cd-headline.scale .is-visible i {
opacity: 1;
}
@include keyframes(scale-up) {
0% {
@include transform(scale(0));
opacity: 0;
}
60% {
@include transform(scale(1.2));
opacity: 1;
}
100% {
@include transform(scale(1));
opacity: 1;
}
}
@include keyframes(scale-down) {
0% {
@include transform(scale(1));
opacity: 1;
}
60% {
@include transform(scale(0));
opacity: 0;
}
}
/* --------------------------------
xpush
-------------------------------- */
.cd-headline.push {
b {
opacity: 0;
&.is-visible {
opacity: 1;
@include animation(push-in .6s);
}
&.is-hidden {
@include animation(push-out .6s);
}
}
}
@include keyframes(push-in) {
0% {
opacity: 0;
@include transform(translateX(-100%));
}
60% {
opacity: 1;
@include transform(translateX(10%));
}
100% {
opacity: 1;
@include transform(translateX(0));
}
}
@include keyframes(push-out) {
0% {
opacity: 1;
@include transform(translateX(0));
}
60% {
opacity: 0;
@include transform(translateX(110%));
}
100% {
opacity: 0;
@include transform(translateX(100%));
}
}