forked from microsoft/pxt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsidedoc.less
More file actions
171 lines (142 loc) · 3.98 KB
/
sidedoc.less
File metadata and controls
171 lines (142 loc) · 3.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
/* Import all components */
@import 'themes/default/globals/site.variables';
@import 'themes/pxt/globals/site.variables';
/* Reference import */
@import (reference) "semantic.less";
/*******************************
Side docs
*******************************/
/* Side Docs layout */
#sidedocs {
height:100%;
top: 0;
z-index: @sidedocZIndex;
visibility: hidden;
opacity: 0;
right: 0;
width: 0;
}
#sidedocsbar {
position: absolute;
right: 1rem;
}
#sidedocsframe {
width: 0;
height: 0;
border:none;
background: white;
}
/* Side docs toggle button */
#sidedocstoggle {
right: 0;
left: auto;
}
.sideDocs #sidedocs {
position: fixed;
visibility: visible;
opacity: 1;
width: @sideBarWidth;
top: calc(@mainMenuHeight + 1rem);
padding-bottom: calc(@mainMenuHeight + @editorToolsCollapsedHeight + 2rem);
}
.sideDocs #sidedocsframe-wrapper {
position: relative;
-webkit-overflow-scrolling: touch;
overflow: auto;
width: @sideBarWidth;
height: 100%;
-webkit-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.41);
-moz-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.41);
box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.41);
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
z-index: @sidedocZIndex;
}
.sideDocs #sidedocsframe {
position:absolute;
top:0px;
width:100%;
height:100%;
}
.sideDocs #sidedocstoggle {
right: @sideBarWidth;
transition: right 0.5s, opacity 0.5s linear;
}
.sideDocs #sidedocsbar {
top: 1rem;
z-index: @sidedocZIndex+1;
}
#sidedocsbar .ui.link .icon {
cursor: pointer;
font-size: @h3;
}
/* Sidedocs in Monaco editor */
.sideDocs.editorlang-text {
#sidedocs {
width: 50%!important;
min-width: 18rem;
}
#sidedocsframe, #sidedocsframe-wrapper {
width: 100%!important;
}
#sidedocstoggle {
right: calc(~'50% - 0.5rem')!important;
}
@media only screen and (max-width: 36rem) {
#sidedocstoggle {
right: 17rem!important;
}
}
}
/* Large Monitor */
@media only screen and (min-width: @largeMonitorBreakpoint) {
.sideDocs #sidedocs, .sideDocs #sidedocsframe, .sideDocs #sidedocsframe-wrapper {
width: @sideBarWidthLarge !important;
}
.sideDocs #sidedocstoggle {
right: @sideBarWidthLarge !important;
}
}
/* Small Monitor */
@media only screen and (min-width: @computerBreakpoint) and (max-width: @largestSmallMonitor) {
}
/* Tablet */
@media only screen and (min-width: @tabletBreakpoint) and (max-width: @largestTabletScreen) {
}
/* Mobile */
@media only screen and (max-width: @largestMobileScreen) {
}
/* >= Small Monitor (Small Monitor + Large Monitor + Wide Monitor) */
@media only screen and (min-width: @computerBreakpoint) {
}
/* <= Small Monitor (Mobile + Tablet + Small Monitor) */
@media only screen and (max-width: @largestSmallMonitor) {
}
/* <= Tablet (Mobile + Tablet) */
@media only screen and (max-width: @largestTabletScreen) {
.sideDocs #sidedocs {
top: calc(@mobileMenuHeight + 1rem);
padding-bottom: calc(@mobileMenuHeight + @editorToolsHeight + 2rem);
}
.sideDocs.collapsedEditorTools #sidedocs, .sideDocs.hideEditorFloats #sidedocs {
padding-bottom: calc(@mobileMenuHeight + @editorToolsCollapsedHeight + 2rem);
}
}
/* Mobile */
@media only screen and (max-width: @largestMobileScreen) {
.sideDocs #sidedocs, .sideDocs #sidedocsframe, .sideDocs #sidedocsframe-wrapper {
width: @sideBarWidthSmall !important;
}
.sideDocs #sidedocstoggle {
right: @sideBarWidthSmall !important;
}
}
@media only screen and (max-height: @tallEditorBreakpoint) and (min-width: @largestMobileScreen) {
.sideDocs #sidedocs {
top: calc(@thinMenuHeight + 1rem);
padding-bottom: calc(@thinMenuHeight + @editorToolsHeight + 2rem);
}
.sideDocs.collapsedEditorTools #sidedocs, .sideDocs.hideEditorFloats #sidedocs {
padding-bottom: calc(@thinMenuHeight + @editorToolsCollapsedHeight + 2rem);
}
}