| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 1 | @charset "utf-8"; |
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 2 | @use "../util"; |
| 3 | @use "../base/choose"; | ||||
| 4 | @use "../base/colors"; | ||||
| 5 | @use "../base/lengths"; | ||||
| 6 | @use "../base/paths"; | ||||
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 7 | |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 8 | /** |
| 9 | * Rules for the embedded documentation. | ||||
| 10 | */ | ||||
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 11 | |
| 12 | #tutorial { | ||||
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 13 | position: fixed; |
| 14 | z-index: 9999; | ||||
| 15 | top: 5%; | ||||
| 16 | bottom: 5%; | ||||
| Marc Kupietz | 5eaefea | 2026-08-03 19:00:23 +0200 | [diff] [blame^] | 17 | // 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; | ||||
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 22 | right: 2%; |
| Marc Kupietz | 5eaefea | 2026-08-03 19:00:23 +0200 | [diff] [blame^] | 23 | width: min(96%, 72em); |
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 24 | padding-right: lengths.$right-view-distance; |
| 25 | background-color: colors.$nearly-white; | ||||
| 26 | box-shadow: choose.$choose-box-shadow; | ||||
| Akron | 7bbdb25 | 2018-07-19 16:44:34 +0200 | [diff] [blame] | 27 | |
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 28 | border: { |
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 29 | width: 2 * lengths.$border-size; |
| 30 | color: colors.$dark-grey; | ||||
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 31 | style: solid; |
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 32 | radius: lengths.$standard-border-radius; |
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 33 | } |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 34 | |
| Akron | c6c6821 | 2025-10-22 14:33:51 +0200 | [diff] [blame] | 35 | .button-group.button-view { |
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 36 | background-color: colors.$middle-grey; |
| Akron | c6c6821 | 2025-10-22 14:33:51 +0200 | [diff] [blame] | 37 | display: block; |
| 38 | height: 100%; | ||||
| 39 | } | ||||
| 40 | |||||
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 41 | iframe { |
| 42 | border-width: 0; | ||||
| 43 | width: 100%; | ||||
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 44 | |
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 45 | // Hack for a Firefox bug |
| 46 | min-height: 100.1%; | ||||
| 47 | background: { | ||||
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 48 | image: url('#{paths.$img-path}/korap-bg.svg'); |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 49 | repeat: no-repeat; |
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 50 | position: center center; |
| Akron | d059ea2 | 2021-03-02 15:32:27 +0100 | [diff] [blame] | 51 | size: 15%; |
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 52 | } |
| 53 | } | ||||
| 54 | } | ||||
| 55 | |||||
| Akron | a24af0a | 2021-01-11 17:38:40 +0100 | [diff] [blame] | 56 | p.bibentry { |
| 57 | font-size: 80%; | ||||
| 58 | margin-left: 3em; | ||||
| 59 | margin-bottom: 3em; | ||||
| Akron | c6c6821 | 2025-10-22 14:33:51 +0200 | [diff] [blame] | 60 | text-indent: -1.5em; |
| Akron | a24af0a | 2021-01-11 17:38:40 +0100 | [diff] [blame] | 61 | cite { |
| 62 | font-weight: bold; | ||||
| 63 | } | ||||
| Akron | a24af0a | 2021-01-11 17:38:40 +0100 | [diff] [blame] | 64 | } |
| 65 | |||||
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 66 | body.embedded { |
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 67 | background-color: colors.$nearly-white; |
| Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 68 | aside { |
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 69 | @include choose.choose-item; |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 70 | padding-top: 0; |
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 71 | background-color: colors.$middle-grey; |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 72 | |
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 73 | > div { |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 74 | position: relative; |
| 75 | top: 50%; | ||||
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 76 | -webkit-transform: translateY(-50%); |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 77 | -ms-transform: translateY(-50%); |
| 78 | transform: translateY(-50%); | ||||
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 79 | } |
| 80 | } | ||||
| 81 | } | ||||