xref: /plugin/mikioplugin/assets/styles.less (revision 37872a4db1b256254ac658666c7290b92bc62b8b)
1.user-select(@select: none) {
2  -webkit-user-select: @select;
3  -moz-user-select: @select;
4  -ms-user-select: @select;
5  user-select: @select;
6}
7
8.appearance(@appearance: none) {
9  -webkit-appearance: @appearance;
10  -moz-appearance: @appearance;
11}
12
13.display-flex {
14  display: -ms-flexbox;
15  display: flex;
16}
17
18.flex(@val) {
19  -ms-flex: @val;
20  flex: @val;
21}
22
23.flex-direction(@direction) {
24  -ms-flex-direction: @direction;
25  flex-direction: @direction;
26}
27
28.justify-content(@justify) {
29  -ms-flex-pack: @justify;
30  justify-content: @justify;
31}
32
33.align-items(@align) {
34  -ms-align-items: @align;
35  align-items: @align;
36}
37
38.flex-wrap(@wrap) {
39  -webkit-flex-wrap: @wrap;
40  -moz-flex-wrap: @wrap;
41  flex-wrap: @wrap;
42}
43
44.animation(@val) {
45  -webkit-animation: @val;
46  animation: @val;
47}
48
49._mikiop-btn-type(@type: 'primary') {
50  @color: '@{type}-btn-text-color';
51  @background: '@{type}-btn-bg-color';
52  @border: '@{type}-btn-border-color';
53  @hovercolor: '@{type}-btn-hover-text-color';
54  @hoverbackground: '@{type}-btn-hover-bg-color';
55  @hoverborder: '@{type}-btn-hover-border-color';
56
57  color: @@color;
58  background-color: @@background;
59  border-color: @@border;
60
61  &.mikiop-active {
62    color: @@hovercolor;
63    background-color: @@hoverbackground;
64    border-color: @@hoverborder;
65  }
66
67  &:disabled,
68  &.mikiop-disabled {
69    opacity: 0.65;
70  }
71
72  &:hover:not(.mikiop-disabled) {
73    color: @@hovercolor;
74    background-color: @@hoverbackground;
75    border-color: @@hoverborder;
76  }
77
78  &.mikiop-disabled:hover {
79    cursor: default;
80  }
81}
82
83._mikiop-btn-type(@type) when (@type = 'link') {
84  &:hover {
85    text-decoration: underline;
86  }
87}
88
89._mikiop-btn-types {
90  &.mikiop-type-primary {
91    ._mikiop-btn-type('primary');
92  }
93  &.mikiop-type-outline-primary {
94    ._mikiop-btn-type('outline-primary');
95  }
96  &.mikiop-type-secondary {
97    ._mikiop-btn-type('secondary');
98  }
99  &.mikiop-type-outline-secondary {
100    ._mikiop-btn-type('outline-secondary');
101  }
102  &.mikiop-type-success {
103    ._mikiop-btn-type('success');
104  }
105  &.mikiop-type-outline-success {
106    ._mikiop-btn-type('outline-success');
107  }
108  &.mikiop-type-danger {
109    ._mikiop-btn-type('danger');
110  }
111  &.mikiop-type-outline-danger {
112    ._mikiop-btn-type('outline-danger');
113  }
114  &.mikiop-type-warning {
115    ._mikiop-btn-type('warning');
116  }
117  &.mikiop-type-outline-warning {
118    ._mikiop-btn-type('outline-warning');
119  }
120  &.mikiop-type-info {
121    ._mikiop-btn-type('info');
122  }
123  &.mikiop-type-outline-info {
124    ._mikiop-btn-type('outline-info');
125  }
126  &.mikiop-type-light {
127    ._mikiop-btn-type('light');
128  }
129  &.mikiop-type-outline-light {
130    ._mikiop-btn-type('outline-light');
131  }
132  &.mikiop-type-dark {
133    ._mikiop-btn-type('dark');
134  }
135  &.mikiop-type-outline-dark {
136    ._mikiop-btn-type('outline-dark');
137  }
138  &.mikiop-type-link {
139    ._mikiop-btn-type('link');
140  }
141}
142
143._mikiop-btn-sizes(@padding: 1) {
144  &.mikiop-size-small {
145    font-size: 0.875em;
146    border-radius: 0.2em;
147  }
148
149  &.mikiop-size-small when (@padding = 0) {
150    padding: 0;
151  }
152
153  &.mikiop-size-small when (@padding = 1) {
154    padding: 0.25em 0.5em;
155  }
156
157  &.mikiop-size-large {
158    font-size: 1.25em;
159    border-radius: 0.3em;
160  }
161
162  &.mikiop-size-large when (@padding = 0) {
163    padding: 0;
164  }
165
166  &.mikiop-size-large when (@padding = 1) {
167    padding: 0.5em 1em;
168  }
169}
170
171._mikiop-block-type(@type: 'primary', @sel: 'btn') {
172  @color: '@{type}-@{sel}-text-color';
173  @background: '@{type}-@{sel}-bg-color';
174  @border: '@{type}-@{sel}-border-color';
175
176  color: @@color;
177  background-color: @@background;
178  border-color: @@border;
179
180  a {
181    color: @@color;
182  }
183}
184
185._mikiop-block-types {
186  &.mikiop-type-primary {
187    ._mikiop-block-type('primary');
188  }
189  &.mikiop-type-secondary {
190    ._mikiop-block-type('secondary');
191  }
192  &.mikiop-type-success {
193    ._mikiop-block-type('success');
194  }
195  &.mikiop-type-danger {
196    ._mikiop-block-type('danger');
197  }
198  &.mikiop-type-warning {
199    ._mikiop-block-type('warning');
200  }
201  &.mikiop-type-info {
202    ._mikiop-block-type('info');
203  }
204  &.mikiop-type-light {
205    ._mikiop-block-type('light');
206  }
207  &.mikiop-type-dark {
208    ._mikiop-block-type('dark');
209  }
210}
211
212._mikiop-alert-types {
213  &.mikiop-type-primary {
214    ._mikiop-block-type('primary', 'alert');
215  }
216  &.mikiop-type-secondary {
217    ._mikiop-block-type('secondary', 'alert');
218  }
219  &.mikiop-type-success {
220    ._mikiop-block-type('success', 'alert');
221  }
222  &.mikiop-type-danger {
223    ._mikiop-block-type('danger', 'alert');
224  }
225  &.mikiop-type-warning {
226    ._mikiop-block-type('warning', 'alert');
227  }
228  &.mikiop-type-info {
229    ._mikiop-block-type('info', 'alert');
230  }
231  &.mikiop-type-light {
232    ._mikiop-block-type('light', 'alert');
233  }
234  &.mikiop-type-dark {
235    ._mikiop-block-type('dark', 'alert');
236  }
237}
238
239._mikiop-col(@width) {
240  .flex(0 0 @width);
241  max-width: @width;
242}
243
244._mikiop-shadows {
245  &.mikiop-shadow {
246    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.35);
247  }
248
249  &.mikiop-shadow-small {
250    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.275);
251  }
252
253  &.mikiop-shadow-large {
254    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.375);
255  }
256}
257
258._mikiop-text-align {
259  &.mikiop-text-align-left {
260    text-align: left;
261  }
262
263  &.mikiop-text-align-center {
264    text-align: center;
265  }
266
267  &.mikiop-text-align-right {
268    text-align: right;
269  }
270}
271
272._mikiop-flex-text-align {
273  &.mikiop-text-align-left {
274    .align-items(flex-start);
275  }
276
277  &.mikiop-text-align-center {
278    .align-items(center);
279  }
280
281  &.mikiop-text-align-right {
282    .align-items(flex-end);
283  }
284}
285
286._mikiop-align {
287  &.mikiop-align-left {
288    margin-right: auto;
289  }
290
291  &.mikiop-align-center {
292    margin-left: auto;
293    margin-right: auto;
294  }
295
296  &.mikiop-align-right {
297    margin-left: auto;
298  }
299}
300
301._mikiop-vertical-align {
302  &.mikiop-vertical-align-top {
303    .justify-content(flex-start);
304  }
305
306  &.mikiop-vertical-align-middle {
307    .justify-content(center);
308  }
309
310  &.mikiop-vertical-align-bottom {
311    .justify-content(flex-end);
312  }
313}
314
315._mikiop-nowrap {
316  white-space: nowrap;
317}
318
319._mikiop-button {
320  display: inline-block;
321  text-decoration: none;
322  font-weight: 400;
323  text-align: center;
324  vertical-align: center;
325  .user-select(none);
326  .appearance(none);
327  background-color: transparent;
328  border: 1px solid transparent;
329  padding: 0.375em 0.75em;
330  font-size: 1em;
331  line-height: 1.5;
332  border-radius: 0.25em;
333  transition: all 0.15s ease-in-out;
334  margin-top: 0.25em;
335  margin-bottom: 0.25em;
336}
337
338.mikiop-tooltip-banner {
339  position: absolute;
340  z-index: 100000;
341  padding: 0.25em 0.5em;
342  background: #fcf3cf;
343  color: #333;
344  border: 1px solid #9a7d0a;
345  border-radius: 0.25em;
346  font-size: 80%;
347  box-shadow: 0 0.125em 0.25em rgba(0, 0, 0, 0.35);
348}
349
350#dokuwiki__content {
351  .mikiop-links-match a {
352    color: inherit;
353  }
354
355  .mikiop-accordian {
356    border: 1px solid rgba(0, 0, 0, 0.125);
357    border-radius: 0.25em;
358    margin-bottom: 1em;
359    overflow: hidden;
360
361    ._mikiop-shadows;
362
363    .mikiop-accordian-item {
364      ._mikiop-alert-types;
365      ._mikiop-text-align;
366
367      .mikiop-accordian-title {
368        text-decoration: none;
369        display: block;
370        padding: 0.75em 1.25em;
371        background-color: rgba(0, 0, 0, 0.03);
372        border-bottom: 1px solid rgba(0, 0, 0, 0.125);
373      }
374
375      .mikiop-accordian-body {
376        display: none;
377        min-height: 1px;
378        padding: 1.25em;
379
380        p:last-child {
381          margin: 0;
382        }
383      }
384    }
385
386    .mikiop-accordian-item.mikiop-show {
387      .mikiop-accordian-body {
388        display: block;
389      }
390    }
391
392    .mikiop-accordian-item:not(:last-child) {
393      .mikiop-accordian-body {
394        border-bottom: 1px solid rgba(0, 0, 0, 0.125);
395      }
396    }
397
398    .mikiop-accordian-item:last-child {
399      .mikiop-accordian-title {
400        border-bottom: 0;
401      }
402
403      .mikiop-accordian-body {
404        border-top: 1px solid rgba(0, 0, 0, 0.125);
405      }
406    }
407  }
408
409  .mikiop-alert {
410    .display-flex;
411    .flex-direction(row);
412    ._mikiop-alert-types;
413    ._mikiop-shadows;
414    ._mikiop-align;
415    ._mikiop-text-align;
416    padding: 0.75em 1.25em;
417    margin-bottom: 1em;
418    border: 1px solid transparent;
419    border-radius: 0.25em;
420    position: relative;
421
422    .mikiop-alert-icon {
423      padding-right: 0.5em;
424    }
425
426    &.mikiop-dismissible .mikiop-alert-content {
427      padding-right: 2em;
428    }
429
430    .mikiop-alert-content {
431      width: 100%;
432      ._mikiop-text-align;
433      ._mikiop-align;
434
435      span.curid a,
436      a {
437        text-decoration: none;
438        color: inherit;
439        font-weight: 700;
440
441        &:hover {
442          text-decoration: underline;
443        }
444      }
445
446      p:last-child {
447        margin-bottom: 0;
448      }
449
450      .mikiop-alert-close {
451        position: absolute;
452        top: 0;
453        right: 0;
454        padding: 0.5em 0.75em;
455        background-color: transparent;
456        border: 0;
457        font-size: 1.5em;
458        font-weight: 700;
459        line-height: 1;
460        opacity: 0.5;
461        text-decoration: none;
462        transition: all 0.15s ease-in-out;
463
464        &:hover {
465          opacity: 1;
466          text-decoration: none;
467        }
468      }
469
470      ul {
471        list-style: disc;
472
473        li,
474        .li {
475          color: inherit;
476        }
477      }
478    }
479  }
480
481  .mikiop-badge {
482    display: inline-block;
483    padding: 0.25em 0.4em;
484    font-size: 70%;
485    font-weight: 700;
486    line-height: 1;
487    text-align: center;
488    white-space: nowrap;
489    vertical-align: baseline;
490    border-radius: 0.25em;
491    transition: all 0.15s ease-in-out;
492    ._mikiop-block-types;
493    text-decoration: none;
494
495    &.mikiop-badge-pill {
496      padding-right: 0.6em;
497      padding-left: 0.6em;
498      border-radius: 10em;
499    }
500
501    ._mikiop-shadows;
502    ._mikiop-text-align;
503  }
504
505  .mikiop-blockquote {
506    margin-bottom: 1em;
507    padding: 0;
508    font-size: 1.25em;
509    border: 0;
510    ._mikiop-text-align;
511
512    p {
513      margin-bottom: 0;
514    }
515
516    .mikiop-blockquote-footer {
517      &:before {
518        content: '\2014\00A0';
519      }
520
521      display: block;
522      font-size: 80%;
523      color: #6c757d;
524    }
525  }
526
527  .mikiop-box {
528    position: relative;
529    .display-flex;
530    .flex-direction(column);
531    padding: 0;
532    border: 1px solid transparent;
533    margin-bottom: 1em;
534
535    ._mikiop-block-types;
536    ._mikiop-shadows;
537    ._mikiop-text-align;
538    ._mikiop-vertical-align;
539
540    p,
541    img,
542    a.media,
543    svg,
544    span.curid,
545    .mikiop-placeholder {
546      width: 100%;
547      height: 100%;
548      object-fit: cover;
549      overflow: hidden;
550      border-radius: inherit;
551      margin: 0;
552    }
553
554    p:last-child {
555      margin-bottom: 0;
556    }
557
558    .mikiop-reveal {
559      position: absolute;
560      display: flex;
561      justify-content: center;
562      align-items: center;
563      top: 0;
564      left: 0;
565      height: 100%;
566      width: 100%;
567      background-color: #868e96;
568      color: #dee2e6;
569      font-weight: 500;
570    }
571  }
572
573  a.mikiop-box {
574    text-decoration: none;
575    transition: all 0.15s ease-in-out;
576
577    &:hover {
578      background-color: rgba(0, 0, 0, 0.05);
579    }
580  }
581
582  .mikiop-button {
583    ._mikiop-button;
584    color: #212529;
585
586    &:hover {
587      color: #212529;
588      text-decoration: none;
589    }
590
591    ._mikiop-btn-types;
592    ._mikiop-btn-sizes;
593    ._mikiop-shadows;
594    ._mikiop-text-align;
595    ._mikiop-align;
596    .mikiop-nowrap {
597      ._mikiop-nowrap;
598    }
599    &.mikiop-block {
600      display: block;
601    }
602
603    .mikiop-badge {
604      position: relative;
605      top: -1px;
606    }
607  }
608
609  .mikiop-button-group {
610    ._mikiop-btn-sizes(0);
611
612    &.mikiop-shadow .mikiop-button-group-inner {
613      box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.35);
614    }
615
616    &.mikiop-shadow-small .mikiop-button-group-inner {
617      box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.275);
618    }
619
620    &.mikiop-shadow-large .mikiop-button-group-inner {
621      box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.375);
622    }
623
624    &.mikiop-align-left {
625      text-align: left;
626    }
627
628    &.mikiop-align-center {
629      text-align: center;
630    }
631
632    &.mikiop-align-right {
633      text-align: right;
634    }
635
636    &.mikiop-vertical .mikiop-button-group-inner {
637      .flex-direction(column);
638      .justify-content(center);
639
640      .mikiop-button:not(:last-child) {
641        border-bottom-left-radius: 0;
642        border-bottom-right-radius: 0;
643      }
644
645      .mikiop-button:not(:first-child) {
646        border-top-left-radius: 0;
647        border-top-right-radius: 0;
648      }
649    }
650
651    &:not(.mikiop-vertical) .mikiop-button:not(:last-child) {
652      border-top-right-radius: 0;
653      border-bottom-right-radius: 0;
654    }
655
656    &:not(.mikiop-vertical) .mikiop-button:not(:first-child) {
657      border-top-left-radius: 0;
658      border-bottom-left-radius: 0;
659    }
660
661    .mikiop-button-group-inner {
662      position: relative;
663      display: inline-flex;
664      vertical-align: middle;
665      margin-top: 0.25em;
666      margin-bottom: 0.25em;
667
668      .mikiop-button {
669        position: relative;
670        flex: 1 1 auto;
671        margin: 0;
672      }
673    }
674  }
675
676  .mikiop-card {
677    position: relative;
678    .display-flex;
679    .flex-direction(column);
680    word-wrap: break-word;
681    background-color: #fff;
682    background-clip: border-box;
683    border: 1px solid rgba(0, 0, 0, 0.125);
684    border-radius: 0.25em;
685    margin-bottom: 2em;
686    overflow: hidden;
687    margin: 0.75em;
688    .flex(1);
689
690    ._mikiop-shadows;
691    ._mikiop-block-types;
692    ._mikiop-text-align;
693
694    .mikiop-card-body {
695      .display-flex;
696      .flex(1 1 100%);
697      .flex-direction(column);
698      ._mikiop-vertical-align;
699      min-height: 1px;
700      padding: 1.25em;
701      box-sizing: border-box;
702
703      p {
704        margin-top: 0;
705      }
706    }
707
708    .mikiop-card-header {
709      padding: 0.75em 1.25em;
710      background-color: rgba(0, 0, 0, 0.03);
711      border-bottom: 1px solid rgba(0, 0, 0, 0.125);
712    }
713
714    .mikiop-card-footer {
715      padding: 0.75em 1.25em;
716      background-color: rgba(0, 0, 0, 0.03);
717      border-top: 1px solid rgba(0, 0, 0, 0.125);
718      color: #6c757d;
719
720      small {
721        font-size: 80%;
722      }
723    }
724
725    .mikiop-card-title {
726      font-size: 1.25em;
727      font-weight: 600;
728      margin-bottom: 0.75em;
729      margin-top: 0;
730    }
731
732    .mikiop-card-subtitle {
733      color: #6c757d;
734      font-weight: 600;
735      margin-top: -1em;
736      margin-bottom: 0.5em;
737    }
738
739    &.mikiop-horizontal {
740      display: grid;
741      grid-template-columns: 33.333333% 66.666667%;
742
743      .mikiop-card-horizontal-image {
744        overflow: hidden;
745        margin-bottom: -1px;
746
747        .mikiop-placeholder {
748          height: 101%;
749        }
750      }
751
752      .mikiop-card-header,
753      .mikiop-card-footer {
754        border: 0;
755        background-color: transparent;
756      }
757
758      .mikiop-card-body {
759        justify-content: center;
760        height: 100%;
761      }
762    }
763
764    &.mikiop-overlay {
765      img,
766      a.media,
767      svg,
768      span.curid,
769      .mikiop-placeholder {
770        position: absolute;
771        border-radius: inherit;
772      }
773
774      .mikiop-placeholder {
775        height: 101%;
776      }
777
778      .mikiop-card-header,
779      .mikiop-card-footer {
780        border: 0;
781        background-color: transparent;
782      }
783
784      div,
785      p {
786        z-index: 2;
787      }
788    }
789
790    p:last-child,
791    .mikiop-blockquote {
792      margin-bottom: 0;
793    }
794
795    img,
796    a.media,
797    svg,
798    span.curid,
799    .mikiop-placeholder {
800      width: 100%;
801      height: 100%;
802      object-fit: cover;
803      overflow: hidden;
804      margin: 0;
805
806      &:first-child {
807        border-top-left-radius: inherit;
808        border-top-right-radius: inherit;
809      }
810
811      &:last-child {
812        border-bottom-left-radius: inherit;
813        border-bottom-right-radius: inherit;
814      }
815    }
816
817    .mikiop-placeholder {
818      margin-top: -1px;
819      margin-left: -1px;
820      width: 101%;
821    }
822  }
823
824  .mikiop-carousel {
825    position: relative;
826    margin-bottom: 2em;
827    height: 40em;
828
829    .mikiop-carousel-inner {
830      position: relative;
831      width: 100%;
832      height: 100%;
833      overflow: hidden;
834    }
835
836    .mikiop-carousel-item {
837      display: none;
838      position: absolute;
839      top: 0;
840      left: 0;
841      bottom: 0;
842      width: 100%;
843
844      &.mikiop-active {
845        z-index: 1;
846        display: block;
847      }
848
849      .mikiop-placeholder {
850        width: 100%;
851        height: 100%;
852      }
853
854      .mikiop-carousel-caption {
855        background-color: rgba(0, 0, 0, 0.5);
856        position: absolute;
857        bottom: 0;
858        left: 0;
859        right: 0;
860        text-align: center;
861        padding: 2em;
862
863        .mikiop-carousel-caption-title,
864        .mikiop-carousel-caption-title a {
865          font-size: 1.25em;
866          margin-bottom: 0.5em;
867          font-weight: 500;
868          line-height: 1.2;
869          color: #fff;
870        }
871
872        .mikiop-carousel-caption-title a {
873          &:hover {
874            text-decoration: underline;
875          }
876        }
877
878        p {
879          color: #fff;
880          margin-bottom: 0;
881        }
882      }
883
884      img {
885        width: 100%;
886        height: 100%;
887        object-fit: cover;
888        overflow: hidden;
889      }
890    }
891
892    .mikiop-carousel-control {
893      position: absolute;
894      z-index: 1;
895      top: 40%;
896      bottom: 40%;
897      .display-flex;
898      .justify-content(center);
899      .align-items(center);
900      width: 15%;
901      text-align: center;
902      opacity: 0.5;
903      transition: all 0.15s ease;
904      background-repeat: no-repeat;
905      background-size: 2em;
906      background-position: 50%;
907
908      &.mikiop-carousel-control-prev {
909        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3e%3c/svg%3e");
910      }
911
912      &.mikiop-carousel-control-next {
913        right: 0;
914        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3e%3c/svg%3e");
915      }
916
917      &:hover {
918        opacity: 1;
919      }
920    }
921
922    .mikiop-carousel-indicators {
923      position: absolute;
924      right: 0;
925      bottom: 0;
926      left: 0;
927      z-index: 15;
928      margin: 0.5em 0 0 0;
929      padding: 0;
930      .display-flex;
931      .justify-content(center);
932      list-style: none;
933
934      .mikiop-carousel-indicator {
935        width: 30px;
936        height: 3px;
937        margin: 1em 0.25em;
938        padding: 0;
939        background-color: #fff;
940        transition: all 0.6s ease;
941        opacity: 0.5;
942
943        &.mikiop-active {
944          opacity: 1;
945        }
946      }
947    }
948  }
949
950  .mikiop-col {
951    .flex(1 0 0);
952    .display-flex;
953    .flex-direction(column);
954    .justify-content(space-between);
955    margin: 0;
956    box-sizing: border-box;
957    border-style: solid;
958    border-width: 0;
959
960    &.mikiop-col-1 {
961      ._mikiop-col(8.333333%);
962    }
963    &.mikiop-col-2 {
964      ._mikiop-col(16.666667%);
965    }
966    &.mikiop-col-3 {
967      ._mikiop-col(25%);
968    }
969    &.mikiop-col-4 {
970      ._mikiop-col(33.333333%);
971    }
972    &.mikiop-col-5 {
973      ._mikiop-col(41.666667%);
974    }
975    &.mikiop-col-6 {
976      ._mikiop-col(50%);
977    }
978    &.mikiop-col-7 {
979      ._mikiop-col(58.333333%);
980    }
981    &.mikiop-col-8 {
982      ._mikiop-col(66.666667%);
983    }
984    &.mikiop-col-9 {
985      ._mikiop-col(75%);
986    }
987    &.mikiop-col-10 {
988      ._mikiop-col(83.333333%);
989    }
990    &.mikiop-col-11 {
991      ._mikiop-col(91.666667%);
992    }
993    &.mikiop-col-12 {
994      ._mikiop-col(100%);
995    }
996
997    &:first-child {
998      padding-left: 0;
999    }
1000
1001    &:last-child {
1002      padding-right: 0;
1003    }
1004
1005    .mikiop-card {
1006      margin-bottom: 0;
1007    }
1008
1009    &.mikiop-col-full {
1010      .flex(0 0 100%);
1011    }
1012  }
1013
1014  .mikiop-grid {
1015    display: grid;
1016    box-sizing: border-box;
1017
1018    .mikiop-box {
1019      margin: 0;
1020    }
1021  }
1022
1023  .mikiop-heading {
1024    margin-top: 0;
1025    margin-bottom: 0.5em;
1026  }
1027
1028  .mikiop-hr {
1029    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
1030    border-top: 1px solid rgba(0, 0, 0, 0.1);
1031  }
1032
1033  .mikiop-list-group {
1034    .display-flex;
1035    .flex-direction(column);
1036
1037    list-style: none;
1038    border-radius: 0.25em;
1039    padding-left: 0;
1040
1041    ._mikiop-shadows;
1042
1043    .mikiop-list-group-item {
1044      .display-flex;
1045      .align-items(center);
1046      .justify-content(space-between);
1047
1048      color: inherit;
1049      padding: 0.75rem 1.25rem;
1050      margin: 0;
1051      border: 1px solid rgba(0, 0, 0, 0.125);
1052      box-sizing: border-box;
1053
1054      ._mikiop-alert-types;
1055
1056      &.mikiop-content-vertical {
1057        .flex-direction(column);
1058        .align-items(flex-start);
1059        ._mikiop-flex-text-align;
1060      }
1061
1062      & + .mikiop-list-group-item {
1063        border-top-width: 0;
1064      }
1065
1066      &:first-child {
1067        border-top-left-radius: 0.25em;
1068        border-top-right-radius: 0.25em;
1069      }
1070
1071      &:last-child {
1072        border-bottom-left-radius: 0.25em;
1073        border-bottom-right-radius: 0.25em;
1074      }
1075
1076      &.mikiop-active {
1077        ._mikiop-block-type('primary');
1078      }
1079
1080      &.mikiop-disabled {
1081        color: #6c757d;
1082        pointer-events: none;
1083      }
1084
1085      .mikiop-list-group-item-link {
1086        display: block;
1087        width: 100%;
1088        color: inherit;
1089        text-decoration: none;
1090        padding: 0.75rem 1.25rem;
1091        margin: -0.75rem -1.25rem;
1092
1093        &:hover {
1094          background-color: #f8f9fa;
1095        }
1096      }
1097
1098      &.mikiop-active,
1099      &.mikiop-type-primary,
1100      &.mikiop-type-secondary,
1101      &.mikiop-type-success,
1102      &.mikiop-type-warning,
1103      &.mikiop-type-danger,
1104      &.mikiop-type-light,
1105      &.mikiop-type-dark {
1106        .mikiop-list-group-item-link:hover {
1107          background-color: inherit;
1108        }
1109      }
1110
1111      p:last-child {
1112        margin-bottom: 0;
1113      }
1114    }
1115
1116    &.mikiop-flush {
1117      margin-bottom: 0;
1118
1119      .mikiop-list-group-item {
1120        border-left-width: 0;
1121        border-right-width: 0;
1122
1123        &:first-child {
1124          border-top-width: 0;
1125        }
1126
1127        &:last-child {
1128          border-bottom-width: 0;
1129        }
1130      }
1131    }
1132
1133    &.mikiop-horizontal {
1134      .flex-direction(row);
1135
1136      .mikiop-list-group-item {
1137        & + .mikiop-list-group-item {
1138          border-top-width: 1px;
1139          border-left-width: 0;
1140        }
1141
1142        &:first-child {
1143          border-top-left-radius: 0.25em;
1144          border-top-right-radius: 0;
1145          border-bottom-left-radius: 0.25em;
1146        }
1147
1148        &:last-child {
1149          border-top-left-radius: 0;
1150          border-top-right-radius: 0.25em;
1151          border-bottom-right-radius: 0.25em;
1152        }
1153      }
1154    }
1155  }
1156
1157  .mikiop-pagenation {
1158    text-align: center;
1159
1160    .mikiop-pagenation-inner {
1161      display: inline-block;
1162      list-style: none;
1163      padding-left: 0;
1164
1165      .mikiop-pagenation-item {
1166        display: inline-block;
1167        padding: 0;
1168        border: 1px solid #dee2e6;
1169        border-radius: 0.25em;
1170
1171        a {
1172          padding: 0.5em 0.75em;
1173          color: #007bff;
1174          text-decoration: none;
1175          display: block;
1176
1177          &:hover {
1178            text-decoration: none;
1179            background-color: #e9ecef;
1180          }
1181        }
1182
1183        &:not(:last-child) {
1184          border-right-width: 0;
1185          border-bottom-right-radius: 0;
1186          border-top-right-radius: 0;
1187        }
1188
1189        &:not(:first-child) {
1190          border-bottom-left-radius: 0;
1191          border-top-left-radius: 0;
1192        }
1193
1194        &.mikiop-active {
1195          a {
1196            background-color: #007bff;
1197            color: #fff;
1198          }
1199        }
1200
1201        &.mikiop-disabled {
1202          a {
1203            pointer-events: none;
1204            color: #6c757d;
1205          }
1206        }
1207      }
1208    }
1209  }
1210
1211  .mikiop-placeholder {
1212    display: flex;
1213
1214    svg {
1215      width: 100%;
1216      height: 100%;
1217    }
1218  }
1219
1220  .mikiop-progress {
1221    .display-flex;
1222    overflow: hidden;
1223    line-height: 0;
1224    font-size: 0.75em;
1225    background-color: #e9ecef;
1226    border-radius: 0.25em;
1227    margin-bottom: 1em;
1228  }
1229
1230  .mikiop-progress-bar {
1231    .display-flex;
1232    .flex-direction(column);
1233    .justify-content(center);
1234    text-align: center;
1235    overflow: hidden;
1236    white-space: no-wrap;
1237    ._mikiop-block-types;
1238    transition: all 0.6s ease;
1239
1240    &.mikiop-striped {
1241      background-image: linear-gradient(
1242        45deg,
1243        rgba(255, 255, 255, 0.15) 25%,
1244        transparent 25%,
1245        transparent 50%,
1246        rgba(255, 255, 255, 0.15) 50%,
1247        rgba(255, 255, 255, 0.15) 75%,
1248        transparent 75%,
1249        transparent
1250      );
1251      background-size: 1em 1em;
1252    }
1253
1254    &.mikiop-animated {
1255      .animation(progress-bar-stripes 1s linear infinite);
1256    }
1257  }
1258
1259  .mikiop-row {
1260    .display-flex;
1261
1262    margin: 0;
1263    border-style: solid;
1264    border-width: 0;
1265
1266    &:first-child {
1267      padding-top: 0;
1268    }
1269
1270    &:last-child {
1271      padding-bottom: 0;
1272      margin-bottom: 2em;
1273    }
1274
1275    .mikiop-row {
1276      margin-bottom: 0;
1277    }
1278  }
1279
1280  .mikiop-statistic {
1281    font-size: 4em;
1282    text-align: center;
1283    display: inline-block;
1284    margin: 0 0.25em;
1285
1286    .mikiop-statistic-title {
1287      font-size: 0.3em;
1288      line-height: 0.3em;
1289    }
1290  }
1291
1292  .mikiop-steps {
1293    list-style: none;
1294    padding-left: 0;
1295    display: inline-flex;
1296
1297    ._mikiop-shadows;
1298
1299    .mikiop-step {
1300      position: relative;
1301      display: flex;
1302      align-items: center;
1303      padding: 1em 2em;
1304      border-width: 1px 0 1px 1px;
1305      border-style: solid;
1306      border-color: #dee2e6;
1307      border-radius: 0.25em;
1308      margin-left: 0;
1309      color: #000;
1310      font-size: 0.9em;
1311
1312      ._mikiop-alert-types;
1313
1314      a {
1315        color: inherit;
1316      }
1317
1318      .mikiop-step-icon {
1319        margin-right: 0.5em;
1320        font-size: 2em;
1321      }
1322
1323      .mikiop-step-title {
1324        font-size: 1.25em;
1325        font-weight: 500;
1326      }
1327
1328      &.mikiop-complete {
1329        background-color: #f8f8f8;
1330
1331        &:after {
1332          background-color: inherit;
1333        }
1334      }
1335
1336      &:after {
1337        position: absolute;
1338        content: '';
1339        z-index: 2;
1340        border-width: 0 1px 1px 0;
1341        border-style: solid;
1342        border-color: #dee2e6;
1343        background-color: #fff;
1344        top: 50%;
1345        right: 0;
1346        width: 16px;
1347        height: 16px;
1348        transform: translateY(-50%) translateX(50%) rotate(-45deg);
1349      }
1350
1351      &:not(:first-of-type) {
1352        border-top-left-radius: 0;
1353        border-bottom-left-radius: 0;
1354      }
1355
1356      &:not(:last-of-type) {
1357        border-top-right-radius: 0;
1358        border-bottom-right-radius: 0;
1359      }
1360
1361      &:last-of-type {
1362        border-right-width: 1px;
1363      }
1364
1365      &:last-of-type:after {
1366        display: none;
1367      }
1368
1369      p {
1370        margin-bottom: 0;
1371      }
1372    }
1373  }
1374
1375  .mikiop-tab-group {
1376    .display-flex;
1377    .flex-wrap(wrap);
1378    margin-bottom: 0;
1379    list-style: none;
1380
1381    background-color: rgba(0, 0, 0, 0.03);
1382    border: 1px solid #dee2e6;
1383    border-top-left-radius: 0.25em;
1384    border-top-right-radius: 0.25em;
1385    padding-left: 1em;
1386    padding-top: 0.5em;
1387
1388    .mikiop-tab-item {
1389      margin-left: 0;
1390
1391      a {
1392        color: #007bff;
1393        text-decoration: none;
1394        border: 1px solid transparent;
1395        border-top-left-radius: 0.25em;
1396        border-top-right-radius: 0.25em;
1397        margin-bottom: -1px;
1398        display: block;
1399        padding: 0.5em 1em;
1400        transition: all 0.15s ease-in-out;
1401
1402        &:not(.mikiop-active):hover {
1403          border-color: #e9ecef #e9ecef #dee2e6;
1404          color: #0056b3;
1405        }
1406
1407        &.mikiop-active {
1408          border-color: #dee2e6 #dee2e6 #fff;
1409          background-color: #fff;
1410          color: #495057;
1411        }
1412      }
1413
1414      &.mikiop-disabled {
1415        a {
1416          color: #6c757d;
1417        }
1418
1419        pointer-events: none;
1420      }
1421    }
1422
1423    &.mikiop-pills {
1424      padding-bottom: 0.5em;
1425
1426      .mikiop-tab-item {
1427        a {
1428          ._mikiop-button;
1429          margin-right: 0.5em;
1430
1431          &.mikiop-active {
1432            ._mikiop-btn-type('primary');
1433          }
1434
1435          &:not(.mikiop-active):hover {
1436            border-color: transparent;
1437          }
1438        }
1439      }
1440    }
1441  }
1442
1443  .mikiop-tab-content {
1444    border-width: 0 1px 1px 1px;
1445    border-style: solid;
1446    border-color: #dee2e6;
1447    border-bottom-left-radius: 0.25em;
1448    border-bottom-right-radius: 0.25em;
1449    padding: 0.5em 1em;
1450    margin-bottom: 1em;
1451
1452    .mikiop-tab-pane {
1453      display: none;
1454
1455      &.mikiop-show {
1456        display: block;
1457      }
1458    }
1459  }
1460
1461  .mikiop-quiz {
1462    border: 1px solid rgba(0, 0, 0, 0.125);
1463    border-radius: 0.25em;
1464    margin-bottom: 2em;
1465
1466    .mikiop-quiz-item {
1467    }
1468
1469    .mikiop-quiz-button-prev {
1470      ._mikiop-btn-type('secondary');
1471    }
1472
1473    .mikiop-quiz-button-next {
1474      ._mikiop-btn-type('secondary');
1475    }
1476
1477    .mikiop-quiz-button-submit {
1478      ._mikiop-btn-type('outline-secondary');
1479    }
1480
1481    .mikiop-quiz-question {
1482      font-weight: 500;
1483      font-size: 1.25em;
1484      padding: 1.25em 0.75em 0 1.25em;
1485    }
1486
1487    p {
1488      padding: 0 1.5em;
1489      margin-bottom: 0;
1490    }
1491
1492    .mikiop-quiz-options {
1493      padding: 0.75em 1.25em;
1494      margin-bottom: 0.5em;
1495    }
1496
1497    .mikiop-quiz-result {
1498      margin-bottom: 1em;
1499    }
1500
1501    .mikiop-quiz-option {
1502      input {
1503        margin: 0 0.5em;
1504      }
1505    }
1506
1507    .mikiop-quiz-status {
1508      padding: 0.75em 1.25em;
1509      background-color: rgba(0, 0, 0, 0.03);
1510      border-top: 1px solid rgba(0, 0, 0, 0.125);
1511      color: #6c757d;
1512
1513      button {
1514        margin-left: 1em;
1515      }
1516    }
1517  }
1518}
1519
1520._mikiop-custom-type(@type) {
1521  #dokuwiki__content {
1522    .mikiop-button {
1523      &.mikiop-type-@{type} {
1524        ._mikiop-btn-type('@{type}');
1525      }
1526    }
1527
1528    .mikiop-badge,
1529    .mikiop-box,
1530    .mikiop-card,
1531    .mikiop-progress-bar {
1532      &.mikiop-type-@{type} {
1533        ._mikiop-block-type('@{type}');
1534      }
1535    }
1536
1537    .mikiop-accordian-item,
1538    .mikiop-alert,
1539    .mikiop-list-group,
1540    .mikiop-step {
1541      &.mikiop-type-@{type} {
1542        ._mikiop-block-type('@{type}', 'alert');
1543      }
1544    }
1545
1546    .mikiop-list-group-item {
1547      &.mikiop-type-@{type} {
1548        .mikiop-list-group-item-link:hover {
1549          background-color: inherit;
1550        }
1551      }
1552    }
1553  }
1554}
1555
1556@media (max-width: 768px) {
1557  #dokuwiki__content {
1558    .mikiop-row {
1559      .flex-wrap(wrap);
1560    }
1561
1562    .mikiop-col {
1563      .flex(0 0 100%);
1564      padding: 0;
1565    }
1566
1567    .mikiop-grid {
1568      .display-flex;
1569      .flex-direction(column);
1570    }
1571  }
1572}
1573