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