xref: /plugin/mikioplugin/assets/styles.less (revision 062e27261056bc3be0a09046ff5c29e5d913dd66)
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: contain;
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      &.mikiop-image-cover {
817        object-fit: cover;
818      }
819    }
820
821    .mikiop-placeholder {
822      margin-top: -1px;
823      margin-left: -1px;
824      width: 101%;
825    }
826  }
827
828  .mikiop-carousel {
829    position: relative;
830    margin-bottom: 2em;
831    height: 40em;
832
833    &.mikiop-image-cover {
834      .mikiop-carousel-inner img {
835        object-fit: cover;
836      }
837    }
838
839    .mikiop-carousel-inner {
840      position: relative;
841      width: 100%;
842      height: 100%;
843      overflow: hidden;
844    }
845
846    .mikiop-carousel-item {
847      display: none;
848      position: absolute;
849      top: 0;
850      left: 0;
851      bottom: 0;
852      width: 100%;
853
854      &.mikiop-active {
855        z-index: 1;
856        display: block;
857      }
858
859      .mikiop-placeholder {
860        width: 100%;
861        height: 100%;
862      }
863
864      .mikiop-carousel-caption {
865        background-color: rgba(0, 0, 0, 0.5);
866        position: absolute;
867        bottom: 0;
868        left: 0;
869        right: 0;
870        text-align: center;
871        padding: 2em;
872
873        .mikiop-carousel-caption-title,
874        .mikiop-carousel-caption-title a {
875          font-size: 1.25em;
876          margin-bottom: 0.5em;
877          font-weight: 500;
878          line-height: 1.2;
879          color: #fff;
880        }
881
882        .mikiop-carousel-caption-title a {
883          &:hover {
884            text-decoration: underline;
885          }
886        }
887
888        p {
889          color: #fff;
890          margin-bottom: 0;
891        }
892      }
893
894      img {
895        width: 100%;
896        height: 100%;
897        object-fit: contain;
898        overflow: hidden;
899      }
900    }
901
902    .mikiop-carousel-control {
903      position: absolute;
904      z-index: 1;
905      top: 40%;
906      bottom: 40%;
907      .display-flex;
908      .justify-content(center);
909      .align-items(center);
910      width: 15%;
911      text-align: center;
912      opacity: 0.5;
913      transition: all 0.15s ease;
914      background-repeat: no-repeat;
915      background-size: 2em;
916      background-position: 50%;
917
918      &.mikiop-carousel-control-prev {
919        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");
920      }
921
922      &.mikiop-carousel-control-next {
923        right: 0;
924        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");
925      }
926
927      &:hover {
928        opacity: 1;
929      }
930    }
931
932    .mikiop-carousel-indicators {
933      position: absolute;
934      right: 0;
935      bottom: 0;
936      left: 0;
937      z-index: 15;
938      margin: 0.5em 0 0 0;
939      padding: 0;
940      .display-flex;
941      .justify-content(center);
942      list-style: none;
943
944      .mikiop-carousel-indicator {
945        width: 30px;
946        height: 3px;
947        margin: 1em 0.25em;
948        padding: 0;
949        background-color: #fff;
950        transition: all 0.6s ease;
951        opacity: 0.5;
952
953        &.mikiop-active {
954          opacity: 1;
955        }
956      }
957    }
958  }
959
960  .mikiop-col {
961    .flex(1 0 0);
962    .display-flex;
963    .flex-direction(column);
964    .justify-content(space-between);
965    margin: 0;
966    box-sizing: border-box;
967    border-style: solid;
968    border-width: 0;
969
970    &.mikiop-col-1 {
971      ._mikiop-col(8.333333%);
972    }
973    &.mikiop-col-2 {
974      ._mikiop-col(16.666667%);
975    }
976    &.mikiop-col-3 {
977      ._mikiop-col(25%);
978    }
979    &.mikiop-col-4 {
980      ._mikiop-col(33.333333%);
981    }
982    &.mikiop-col-5 {
983      ._mikiop-col(41.666667%);
984    }
985    &.mikiop-col-6 {
986      ._mikiop-col(50%);
987    }
988    &.mikiop-col-7 {
989      ._mikiop-col(58.333333%);
990    }
991    &.mikiop-col-8 {
992      ._mikiop-col(66.666667%);
993    }
994    &.mikiop-col-9 {
995      ._mikiop-col(75%);
996    }
997    &.mikiop-col-10 {
998      ._mikiop-col(83.333333%);
999    }
1000    &.mikiop-col-11 {
1001      ._mikiop-col(91.666667%);
1002    }
1003    &.mikiop-col-12 {
1004      ._mikiop-col(100%);
1005    }
1006
1007    &:first-child {
1008      padding-left: 0;
1009    }
1010
1011    &:last-child {
1012      padding-right: 0;
1013    }
1014
1015    .mikiop-card {
1016      margin-bottom: 0;
1017    }
1018
1019    &.mikiop-col-full {
1020      .flex(0 0 100%);
1021    }
1022  }
1023
1024  .mikiop-grid {
1025    display: grid;
1026    box-sizing: border-box;
1027
1028    .mikiop-box {
1029      margin: 0;
1030    }
1031  }
1032
1033  .mikiop-heading {
1034    margin-top: 0;
1035    margin-bottom: 0.5em;
1036  }
1037
1038  .mikiop-hr {
1039    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
1040    border-top: 1px solid rgba(0, 0, 0, 0.1);
1041  }
1042
1043  .mikiop-list-group {
1044    .display-flex;
1045    .flex-direction(column);
1046
1047    list-style: none;
1048    border-radius: 0.25em;
1049    padding-left: 0;
1050
1051    ._mikiop-shadows;
1052
1053    .mikiop-list-group-item {
1054      .display-flex;
1055      .align-items(center);
1056      .justify-content(space-between);
1057
1058      color: inherit;
1059      padding: 0.75rem 1.25rem;
1060      margin: 0;
1061      border: 1px solid rgba(0, 0, 0, 0.125);
1062      box-sizing: border-box;
1063
1064      ._mikiop-alert-types;
1065
1066      &.mikiop-content-vertical {
1067        .flex-direction(column);
1068        .align-items(flex-start);
1069        ._mikiop-flex-text-align;
1070      }
1071
1072      & + .mikiop-list-group-item {
1073        border-top-width: 0;
1074      }
1075
1076      &:first-child {
1077        border-top-left-radius: 0.25em;
1078        border-top-right-radius: 0.25em;
1079      }
1080
1081      &:last-child {
1082        border-bottom-left-radius: 0.25em;
1083        border-bottom-right-radius: 0.25em;
1084      }
1085
1086      &.mikiop-active {
1087        ._mikiop-block-type('primary');
1088      }
1089
1090      &.mikiop-disabled {
1091        color: #6c757d;
1092        pointer-events: none;
1093      }
1094
1095      .mikiop-list-group-item-link {
1096        display: block;
1097        width: 100%;
1098        color: inherit;
1099        text-decoration: none;
1100        padding: 0.75rem 1.25rem;
1101        margin: -0.75rem -1.25rem;
1102
1103        &:hover {
1104          background-color: #f8f9fa;
1105        }
1106      }
1107
1108      &.mikiop-active,
1109      &.mikiop-type-primary,
1110      &.mikiop-type-secondary,
1111      &.mikiop-type-success,
1112      &.mikiop-type-warning,
1113      &.mikiop-type-danger,
1114      &.mikiop-type-light,
1115      &.mikiop-type-dark {
1116        .mikiop-list-group-item-link:hover {
1117          background-color: inherit;
1118        }
1119      }
1120
1121      p:last-child {
1122        margin-bottom: 0;
1123      }
1124    }
1125
1126    &.mikiop-flush {
1127      margin-bottom: 0;
1128
1129      .mikiop-list-group-item {
1130        border-left-width: 0;
1131        border-right-width: 0;
1132
1133        &:first-child {
1134          border-top-width: 0;
1135        }
1136
1137        &:last-child {
1138          border-bottom-width: 0;
1139        }
1140      }
1141    }
1142
1143    &.mikiop-horizontal {
1144      .flex-direction(row);
1145
1146      .mikiop-list-group-item {
1147        & + .mikiop-list-group-item {
1148          border-top-width: 1px;
1149          border-left-width: 0;
1150        }
1151
1152        &:first-child {
1153          border-top-left-radius: 0.25em;
1154          border-top-right-radius: 0;
1155          border-bottom-left-radius: 0.25em;
1156        }
1157
1158        &:last-child {
1159          border-top-left-radius: 0;
1160          border-top-right-radius: 0.25em;
1161          border-bottom-right-radius: 0.25em;
1162        }
1163      }
1164    }
1165  }
1166
1167  .mikiop-pagenation {
1168    text-align: center;
1169
1170    .mikiop-pagenation-inner {
1171      display: inline-block;
1172      list-style: none;
1173      padding-left: 0;
1174
1175      .mikiop-pagenation-item {
1176        display: inline-block;
1177        padding: 0;
1178        border: 1px solid #dee2e6;
1179        border-radius: 0.25em;
1180
1181        a {
1182          padding: 0.5em 0.75em;
1183          color: #007bff;
1184          text-decoration: none;
1185          display: block;
1186
1187          &:hover {
1188            text-decoration: none;
1189            background-color: #e9ecef;
1190          }
1191        }
1192
1193        &:not(:last-child) {
1194          border-right-width: 0;
1195          border-bottom-right-radius: 0;
1196          border-top-right-radius: 0;
1197        }
1198
1199        &:not(:first-child) {
1200          border-bottom-left-radius: 0;
1201          border-top-left-radius: 0;
1202        }
1203
1204        &.mikiop-active {
1205          a {
1206            background-color: #007bff;
1207            color: #fff;
1208          }
1209        }
1210
1211        &.mikiop-disabled {
1212          a {
1213            pointer-events: none;
1214            color: #6c757d;
1215          }
1216        }
1217      }
1218    }
1219  }
1220
1221  .mikiop-placeholder {
1222    display: flex;
1223
1224    svg {
1225      width: 100%;
1226      height: 100%;
1227    }
1228  }
1229
1230  .mikiop-progress {
1231    .display-flex;
1232    overflow: hidden;
1233    line-height: 0;
1234    font-size: 0.75em;
1235    background-color: #e9ecef;
1236    border-radius: 0.25em;
1237    margin-bottom: 1em;
1238  }
1239
1240  .mikiop-progress-bar {
1241    .display-flex;
1242    .flex-direction(column);
1243    .justify-content(center);
1244    text-align: center;
1245    overflow: hidden;
1246    white-space: no-wrap;
1247    ._mikiop-block-types;
1248    transition: all 0.6s ease;
1249
1250    &.mikiop-striped {
1251      background-image: linear-gradient(
1252        45deg,
1253        rgba(255, 255, 255, 0.15) 25%,
1254        transparent 25%,
1255        transparent 50%,
1256        rgba(255, 255, 255, 0.15) 50%,
1257        rgba(255, 255, 255, 0.15) 75%,
1258        transparent 75%,
1259        transparent
1260      );
1261      background-size: 1em 1em;
1262    }
1263
1264    &.mikiop-animated {
1265      .animation(progress-bar-stripes 1s linear infinite);
1266    }
1267  }
1268
1269  .mikiop-row {
1270    .display-flex;
1271
1272    margin: 0;
1273    border-style: solid;
1274    border-width: 0;
1275
1276    &:first-child {
1277      padding-top: 0;
1278    }
1279
1280    &:last-child {
1281      padding-bottom: 0;
1282      margin-bottom: 2em;
1283    }
1284
1285    .mikiop-row {
1286      margin-bottom: 0;
1287    }
1288  }
1289
1290  .mikiop-statistic {
1291    font-size: 4em;
1292    text-align: center;
1293    display: inline-block;
1294    margin: 0 0.25em;
1295
1296    .mikiop-statistic-title {
1297      font-size: 0.3em;
1298      line-height: 0.3em;
1299    }
1300  }
1301
1302  .mikiop-steps {
1303    list-style: none;
1304    padding-left: 0;
1305    display: inline-flex;
1306
1307    ._mikiop-shadows;
1308
1309    .mikiop-step {
1310      position: relative;
1311      display: flex;
1312      align-items: center;
1313      padding: 1em 2em;
1314      border-width: 1px 0 1px 1px;
1315      border-style: solid;
1316      border-color: #dee2e6;
1317      border-radius: 0.25em;
1318      margin-left: 0;
1319      color: #000;
1320      font-size: 0.9em;
1321
1322      ._mikiop-alert-types;
1323
1324      a {
1325        color: inherit;
1326      }
1327
1328      .mikiop-step-icon {
1329        margin-right: 0.5em;
1330        font-size: 2em;
1331      }
1332
1333      .mikiop-step-title {
1334        font-size: 1.25em;
1335        font-weight: 500;
1336      }
1337
1338      &.mikiop-complete {
1339        background-color: #f8f8f8;
1340
1341        &:after {
1342          background-color: inherit;
1343        }
1344      }
1345
1346      &:after {
1347        position: absolute;
1348        content: '';
1349        z-index: 2;
1350        border-width: 0 1px 1px 0;
1351        border-style: solid;
1352        border-color: #dee2e6;
1353        background-color: #fff;
1354        top: 50%;
1355        right: 0;
1356        width: 16px;
1357        height: 16px;
1358        transform: translateY(-50%) translateX(50%) rotate(-45deg);
1359      }
1360
1361      &:not(:first-of-type) {
1362        border-top-left-radius: 0;
1363        border-bottom-left-radius: 0;
1364      }
1365
1366      &:not(:last-of-type) {
1367        border-top-right-radius: 0;
1368        border-bottom-right-radius: 0;
1369      }
1370
1371      &:last-of-type {
1372        border-right-width: 1px;
1373      }
1374
1375      &:last-of-type:after {
1376        display: none;
1377      }
1378
1379      p {
1380        margin-bottom: 0;
1381      }
1382    }
1383  }
1384
1385  .mikiop-tab-group {
1386    .display-flex;
1387    .flex-wrap(wrap);
1388    margin-bottom: 0;
1389    list-style: none;
1390
1391    background-color: rgba(0, 0, 0, 0.03);
1392    border: 1px solid #dee2e6;
1393    border-top-left-radius: 0.25em;
1394    border-top-right-radius: 0.25em;
1395    padding-left: 1em;
1396    padding-top: 0.5em;
1397
1398    .mikiop-tab-item {
1399      margin-left: 0;
1400
1401      a {
1402        color: #007bff;
1403        text-decoration: none;
1404        border: 1px solid transparent;
1405        border-top-left-radius: 0.25em;
1406        border-top-right-radius: 0.25em;
1407        margin-bottom: -1px;
1408        display: block;
1409        padding: 0.5em 1em;
1410        transition: all 0.15s ease-in-out;
1411
1412        &:not(.mikiop-active):hover {
1413          border-color: #e9ecef #e9ecef #dee2e6;
1414          color: #0056b3;
1415        }
1416
1417        &.mikiop-active {
1418          border-color: #dee2e6 #dee2e6 #fff;
1419          background-color: #fff;
1420          color: #495057;
1421        }
1422      }
1423
1424      &.mikiop-disabled {
1425        a {
1426          color: #6c757d;
1427        }
1428
1429        pointer-events: none;
1430      }
1431    }
1432
1433    &.mikiop-pills {
1434      padding-bottom: 0.5em;
1435
1436      .mikiop-tab-item {
1437        a {
1438          ._mikiop-button;
1439          margin-right: 0.5em;
1440
1441          &.mikiop-active {
1442            ._mikiop-btn-type('primary');
1443          }
1444
1445          &:not(.mikiop-active):hover {
1446            border-color: transparent;
1447          }
1448        }
1449      }
1450    }
1451  }
1452
1453  .mikiop-tab-content {
1454    border-width: 0 1px 1px 1px;
1455    border-style: solid;
1456    border-color: #dee2e6;
1457    border-bottom-left-radius: 0.25em;
1458    border-bottom-right-radius: 0.25em;
1459    padding: 0.5em 1em;
1460    margin-bottom: 1em;
1461
1462    .mikiop-tab-pane {
1463      display: none;
1464
1465      &.mikiop-show {
1466        display: block;
1467      }
1468    }
1469  }
1470
1471  .mikiop-quiz {
1472    border: 1px solid rgba(0, 0, 0, 0.125);
1473    border-radius: 0.25em;
1474    margin-bottom: 2em;
1475
1476    .mikiop-quiz-item {
1477    }
1478
1479    .mikiop-quiz-button-prev {
1480      ._mikiop-btn-type('secondary');
1481    }
1482
1483    .mikiop-quiz-button-next {
1484      ._mikiop-btn-type('secondary');
1485    }
1486
1487    .mikiop-quiz-button-submit {
1488      ._mikiop-btn-type('outline-secondary');
1489    }
1490
1491    .mikiop-quiz-question {
1492      font-weight: 500;
1493      font-size: 1.25em;
1494      padding: 1.25em 0.75em 0 1.25em;
1495    }
1496
1497    p {
1498      padding: 0 1.5em;
1499      margin-bottom: 0;
1500    }
1501
1502    .mikiop-quiz-options {
1503      padding: 0.75em 1.25em;
1504      margin-bottom: 0.5em;
1505    }
1506
1507    .mikiop-quiz-result {
1508      margin-bottom: 1em;
1509    }
1510
1511    .mikiop-quiz-option {
1512      input {
1513        margin: 0 0.5em;
1514      }
1515    }
1516
1517    .mikiop-quiz-status {
1518      padding: 0.75em 1.25em;
1519      background-color: rgba(0, 0, 0, 0.03);
1520      border-top: 1px solid rgba(0, 0, 0, 0.125);
1521      color: #6c757d;
1522
1523      button {
1524        margin-left: 1em;
1525      }
1526    }
1527  }
1528}
1529
1530._mikiop-custom-type(@type) {
1531  #dokuwiki__content {
1532    .mikiop-button {
1533      &.mikiop-type-@{type} {
1534        ._mikiop-btn-type('@{type}');
1535      }
1536    }
1537
1538    .mikiop-badge,
1539    .mikiop-box,
1540    .mikiop-card,
1541    .mikiop-progress-bar {
1542      &.mikiop-type-@{type} {
1543        ._mikiop-block-type('@{type}');
1544      }
1545    }
1546
1547    .mikiop-accordian-item,
1548    .mikiop-alert,
1549    .mikiop-list-group,
1550    .mikiop-step {
1551      &.mikiop-type-@{type} {
1552        ._mikiop-block-type('@{type}', 'alert');
1553      }
1554    }
1555
1556    .mikiop-list-group-item {
1557      &.mikiop-type-@{type} {
1558        .mikiop-list-group-item-link:hover {
1559          background-color: inherit;
1560        }
1561      }
1562    }
1563  }
1564}
1565
1566@media (max-width: 768px) {
1567  #dokuwiki__content {
1568    .mikiop-row {
1569      .flex-wrap(wrap);
1570    }
1571
1572    .mikiop-col {
1573      .flex(0 0 100%);
1574      padding: 0;
1575    }
1576
1577    .mikiop-grid {
1578      .display-flex;
1579      .flex-direction(column);
1580    }
1581  }
1582}
1583