| 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 | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 39 | image: url('#{$img-path}/korap-bg-kalamar.svg'); |
| 40 | repeat: no-repeat; | ||||
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 41 | position: center center; |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 42 | size: 20%; |
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 43 | } |
| 44 | } | ||||
| 45 | } | ||||
| 46 | |||||
| 47 | body.embedded { | ||||
| 48 | background-color: $nearly-white; | ||||
| Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 49 | aside { |
| Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 50 | @include choose-item; |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 51 | padding-top: 0; |
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 52 | background-color: $middle-grey; |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 53 | |
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 54 | > div { |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 55 | position: relative; |
| 56 | top: 50%; | ||||
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 57 | -webkit-transform: translateY(-50%); |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 58 | -ms-transform: translateY(-50%); |
| 59 | transform: translateY(-50%); | ||||
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 60 | } |
| 61 | } | ||||
| 62 | } | ||||
| 63 | |||||
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 64 | // Link to documentation |
| 65 | main.tutorial a.embedded-link::after { | ||||
| 66 | @include icon-font; | ||||
| 67 | content: " " + $fa-tutorial; | ||||
| 68 | font-size: 75%; | ||||
| 69 | } | ||||