adhesiones-jekyll-theme 0.2.0 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/_sass/snap.scss ADDED
@@ -0,0 +1,58 @@
1
+ $snap-types: (none, mandatory, proximity);
2
+ $snap-directions: (y, x);
3
+ $snap-points: (start, end, center, none);
4
+
5
+ // TODO: Escribir un mixin
6
+ @each $snap-type in $snap-types {
7
+ @each $snap-direction in $snap-directions {
8
+ // El contenedor indica la dirección y obligatoriedad del snap
9
+ .snap-#{$snap-type}-#{$snap-direction} {
10
+ scroll-snap-points-#{$snap-direction}: repeat(100%);
11
+ scroll-snap-destination: 0 0;
12
+ @each $prefix in $vendor-prefixes {
13
+ #{$prefix}scroll-snap-type: #{$snap-direction} #{$snap-type};
14
+ #{$prefix}scroll-snap-type: #{$snap-type};
15
+ }
16
+
17
+ // Lxs hijxs directos se alinean al contenedor
18
+ @each $snap-point in $snap-points {
19
+ & > .snap-#{$snap-point} {
20
+ scroll-snap-align: #{$snap-point};
21
+ }
22
+ }
23
+
24
+ // Poder modificar el snap según el punto de corte
25
+ @each $grid-breakpoint, $_ in $grid-breakpoints {
26
+ @include media-breakpoint-up($grid-breakpoint) {
27
+ @each $snap-point in $snap-points {
28
+ & > .snap-#{$grid-breakpoint}-#{$snap-point} {
29
+ scroll-snap-align: #{$snap-point};
30
+ }
31
+ }
32
+ }
33
+ }
34
+ }
35
+
36
+ @each $grid-breakpoint, $_ in $grid-breakpoints {
37
+ @include media-breakpoint-up($grid-breakpoint) {
38
+ .snap-#{$snap-type}-#{$grid-breakpoint}-#{$snap-direction} {
39
+ // XXX: Esto está duplicado porque SCSS no nos deja extender
40
+ // dentro de un @include.
41
+ // @extend .snap-#{$snap-type}-#{$snap-direction};
42
+ scroll-snap-points-#{$snap-direction}: repeat(100%);
43
+ scroll-snap-destination: 0 0;
44
+ @each $prefix in $vendor-prefixes {
45
+ #{$prefix}scroll-snap-type: #{$snap-direction} #{$snap-type};
46
+ #{$prefix}scroll-snap-type: #{$snap-type};
47
+ }
48
+
49
+ @each $snap-point in $snap-points {
50
+ .snap-#{$snap-point} {
51
+ scroll-snap-align: #{$snap-point};
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
57
+ }
58
+ }
data/_sass/toggler.scss CHANGED
@@ -58,6 +58,15 @@ input.toggler {
58
58
  height: auto;
59
59
  }
60
60
  }
61
+
62
+ &.btn {
63
+ &,
64
+ &:hover,
65
+ &:focus,
66
+ &:active {
67
+ background-color: $redpink
68
+ }
69
+ }
61
70
  }
62
71
 
63
72
  & + label {
@@ -2,6 +2,23 @@
2
2
  # Ponemos un frontmatter porque queremos que Jekyll procese este archivo
3
3
  ---
4
4
 
5
+ $debug: {{ jekyll.environment | not: 'production' }};
6
+ $vendor-prefixes: ("", "-webkit-", "-ms-", "-o-", "-moz-");
7
+ $bezier: cubic-bezier(0.75, 0, 0.25, 1);
8
+
9
+ $colors: (
10
+ "black": black
11
+ );
12
+
13
+ $opacities: (
14
+ 0: -100%,
15
+ 1: -80%,
16
+ 2: -60%,
17
+ 3: -40%,
18
+ 4: -20%,
19
+ 5: 0%
20
+ );
21
+
5
22
  $font-family-sans-serif: Saira, sans-serif;
6
23
  $redpink: #ff3f56;
7
24
  $pink: #f31a69;
@@ -19,22 +36,19 @@ $theme-colors: (
19
36
  $border-width: 0.3rem;
20
37
  $border-color: $pink;
21
38
 
22
- @each $name, $color in $theme-colors {
23
- .#{$name} {
24
- color: $color !important;
25
- }
26
- }
27
-
28
39
  .font-bigger {
29
40
  font-size: 2rem !important;
30
41
  }
31
42
 
43
+ /*
44
+ * Redefinir variables de Boostrap acá. Se las puede ver en
45
+ * node_modules/bootstrap/scss/_variables.scss
46
+ */
47
+
32
48
  /*
33
49
  * XXX: Solo importar los archivos necesarios de bootstrap para
34
50
  * facilitar la reducción de CSS. Por ahora pedimos todo para poder
35
51
  * empezar a trabajar en el HTML sin pensar en CSS.
36
- *
37
- * Los archivos se encuentran en node_modules/bootstrap/scss
38
52
  */
39
53
  @import "font";
40
54
  @import "bootstrap/scss/bootstrap";
@@ -43,6 +57,10 @@ $border-color: $pink;
43
57
  @import "helpers";
44
58
  @import "toggler";
45
59
  @import "share_box";
60
+ @import "embed";
61
+ @import "snap";
62
+ @import "editor";
63
+ @import "menu";
46
64
 
47
65
  .callout {
48
66
  padding: 15px;
@@ -81,3 +99,11 @@ $border-color: $pink;
81
99
  }
82
100
  }
83
101
  }
102
+
103
+ @if $debug {
104
+ /*
105
+ * Mostrar un borde alrededor de todos los elementos para poder
106
+ * trabajar.
107
+ */
108
+ * { outline: 1px solid pink; }
109
+ }