forked from microsoft/pxt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocs.less
More file actions
148 lines (136 loc) · 3.41 KB
/
docs.less
File metadata and controls
148 lines (136 loc) · 3.41 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
/*******************************
Docs
*******************************/
/* Background and foreground */
@docsBackgroundColor: white;
@docsTextColor: #333;
@docsLineHeight: 1.7;
/* Text color */
@docsHeadingColor: @docsTextColor;
/* Link color */
@docsLinkColor: #4183c4;
/* Code segment */
@docsSegementBackgroundColor: #f7f7f7;
/* Card */
@docsCardBackgroundColor: white;
@docsCardColor: @docsTextColor;
@docsCardHeaderColor: @docsTextColor;
@docsCardContentColor: @docsTextColor;
@docsCardImageBackgroundColor: rgba(0,0,0,.05);
@docsCardBorderColor: #e9eef2;
@docsCardHoverBorderColor: #1dacf4;
#docs {
background-color: @docsBackgroundColor;
font-family: @docsPageFont !important;
color: @docsTextColor;
* {
-webkit-overflow-scrolling: touch;
-webkit-tap-highlight-color: transparent;
-webkit-text-size-adjust: none;
-webkit-touch-callout: none;
-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
font-family: @docsHeaderFont !important;
color: @docsHeadingColor;
}
h1 {
margin-bottom: .85em;
}
/* Text color */
p, ul li {
color: @docsTextColor;
line-height: @docsLineHeight;
}
/* Link color */
a {
color: @docsLinkColor;
}
span.block {
display: inline-block;
vertical-align: middle;
}
span.docs, text.blocklyText {
-webkit-font-smoothing: auto !important;
}
/* Code segments */
.mainbody .ui.segment, pre {
background: @docsSegementBackgroundColor !important;
border-radius: 0 !important;
border: 0 !important;
margin-bottom: 1.275em;
box-shadow: none;
}
.avatar .ui.message {
margin-left: 4em;
margin-bottom: 1em;
}
code.lang-typescript {
overflow-wrap: break-word;
}
/* Cards */
.ui.card {
padding: 0 !important;
background: @docsCardBackgroundColor;
color: @docsCardColor;
border-radius: 0.5rem !important;
border: 2px solid @docsCardBorderColor;
text-decoration: none; /* Remove underline applied by a link */
> .image {
background: @docsCardImageBackgroundColor;
}
.header {
color: @docsCardHeaderColor;
}
.content .ui.description {
color: @docsCardContentColor;
}
}
.ui.card:hover {
border: 2px solid @docsCardHoverBorderColor;
}
/* Breadcrumb */
.ui.breadcrumb .divider {
color: black;
}
/* TOC */
.toc a.header {
color: white;
}
.toc a.item {
color: rgba(255, 255, 255, 1);
padding: 10px 15px !important;
}
.toc a.item:hover {
text-decoration: @linkHoverUnderline;
}
.tocmenu .menu {
padding-left: 20px;
font-family: @docsPageFont;
}
/* Buttons */
.ui.primary.button p {
color: white;
}
#sidedocs-back-button {
margin-top: 1.25rem;
margin-left: 1.25rem;
cursor: pointer;
user-select: none;
}
#sidedocs-back-button.disabled {
color: #aeaeae;
cursor: not-allowed;
}
}
.sideDocs #sidedocsbar a {
color: @docsLinkColor;
}
.replaceDocsAvatar() when not (@docsAvatarImage = none) {
#docs {
.avatar .avatar-image {
background-image: @docsAvatarImage;
}
}
}
.replaceDocsAvatar();