blob: 9fa882f0e07937714ca54da7654bd88b09c7624d [file] [log] [blame]
Nils Diewalda944fab2015-04-08 21:02:04 +00001@charset "utf-8";
Akron7636edf2025-11-04 12:44:53 +01002@use "../util";
3@use "../base/choose";
4@use "../base/colors";
5@use "../base/lengths";
6@use "../base/paths";
Nils Diewalda944fab2015-04-08 21:02:04 +00007
Akron7e5afce2020-08-25 15:50:19 +02008/**
9 * Rules for the embedded documentation.
10 */
Nils Diewalda944fab2015-04-08 21:02:04 +000011
12#tutorial {
Akron7e5afce2020-08-25 15:50:19 +020013 position: fixed;
14 z-index: 9999;
15 top: 5%;
16 bottom: 5%;
Marc Kupietz5eaefea2026-08-03 19:00:23 +020017 // Anchor the panel to the right and cap its width, so it reads as a
18 // right-hand documentation drawer and leaves the main workspace on the left
19 // uncovered. On narrow viewports it still uses (almost) the full width (see
20 // the media query, which resets left/right/width for a full-screen panel).
21 left: auto;
Akron7e5afce2020-08-25 15:50:19 +020022 right: 2%;
Marc Kupietz5eaefea2026-08-03 19:00:23 +020023 width: min(96%, 72em);
Akron7636edf2025-11-04 12:44:53 +010024 padding-right: lengths.$right-view-distance;
25 background-color: colors.$nearly-white;
26 box-shadow: choose.$choose-box-shadow;
Akron7bbdb252018-07-19 16:44:34 +020027
Nils Diewalda944fab2015-04-08 21:02:04 +000028 border: {
Akron7636edf2025-11-04 12:44:53 +010029 width: 2 * lengths.$border-size;
30 color: colors.$dark-grey;
Akron7e5afce2020-08-25 15:50:19 +020031 style: solid;
Akron7636edf2025-11-04 12:44:53 +010032 radius: lengths.$standard-border-radius;
Nils Diewalda944fab2015-04-08 21:02:04 +000033 }
Akron7e5afce2020-08-25 15:50:19 +020034
Akronc6c68212025-10-22 14:33:51 +020035 .button-group.button-view {
Akron7636edf2025-11-04 12:44:53 +010036 background-color: colors.$middle-grey;
Akronc6c68212025-10-22 14:33:51 +020037 display: block;
38 height: 100%;
39 }
40
Nils Diewalda944fab2015-04-08 21:02:04 +000041 iframe {
42 border-width: 0;
43 width: 100%;
Akron7e5afce2020-08-25 15:50:19 +020044
Nils Diewalda944fab2015-04-08 21:02:04 +000045 // Hack for a Firefox bug
46 min-height: 100.1%;
47 background: {
Akron7636edf2025-11-04 12:44:53 +010048 image: url('#{paths.$img-path}/korap-bg.svg');
Akron7e5afce2020-08-25 15:50:19 +020049 repeat: no-repeat;
Nils Diewalda944fab2015-04-08 21:02:04 +000050 position: center center;
Akrond059ea22021-03-02 15:32:27 +010051 size: 15%;
Nils Diewalda944fab2015-04-08 21:02:04 +000052 }
53 }
54}
55
Akrona24af0a2021-01-11 17:38:40 +010056p.bibentry {
57 font-size: 80%;
58 margin-left: 3em;
59 margin-bottom: 3em;
Akronc6c68212025-10-22 14:33:51 +020060 text-indent: -1.5em;
Akrona24af0a2021-01-11 17:38:40 +010061 cite {
62 font-weight: bold;
63 }
Akrona24af0a2021-01-11 17:38:40 +010064}
65
Nils Diewalda944fab2015-04-08 21:02:04 +000066body.embedded {
Akron7636edf2025-11-04 12:44:53 +010067 background-color: colors.$nearly-white;
Nils Diewald7c8ced22015-04-15 19:21:00 +000068 aside {
Akron7636edf2025-11-04 12:44:53 +010069 @include choose.choose-item;
Akron7e5afce2020-08-25 15:50:19 +020070 padding-top: 0;
Akron7636edf2025-11-04 12:44:53 +010071 background-color: colors.$middle-grey;
Akron7e5afce2020-08-25 15:50:19 +020072
Nils Diewalda944fab2015-04-08 21:02:04 +000073 > div {
Akron7e5afce2020-08-25 15:50:19 +020074 position: relative;
75 top: 50%;
Nils Diewalda944fab2015-04-08 21:02:04 +000076 -webkit-transform: translateY(-50%);
Akron7e5afce2020-08-25 15:50:19 +020077 -ms-transform: translateY(-50%);
78 transform: translateY(-50%);
Nils Diewalda944fab2015-04-08 21:02:04 +000079 }
80 }
81}