pxt-core-own
Version:
Microsoft MakeCode, also known as Programming Experience Toolkit (PXT), provides Blocks / JavaScript tools and editors
203 lines (182 loc) • 4.73 kB
text/less
/*******************************
Docs
*******************************/
/* Background and foreground */
@docsBackgroundColor: white;
@docsTextColor: #333;
@docsLineHeight: 1.7;
/* Text color */
@docsHeadingColor: @docsTextColor;
/* Link color */
@docsLinkColor: #4183c4;
/* Code segment */
@docsSegementBackgroundColor: #f7f7f7;
@docsSegementBackgroundColorValid: #edf9ef;
@docsSegementBackgroundColorInvalid: #fbf3f4;
/* 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 ;
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 ;
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 ;
}
/* Code segments */
.mainbody .ui.segment, pre {
background: @docsSegementBackgroundColor ;
border-radius: 0 ;
border: 0 ;
margin-bottom: 1.275em;
box-shadow: none;
tab-size: 4;
}
.mainbody div.codewidget.valid, code.valid{
background: @docsSegementBackgroundColorValid ;
}
.mainbody div.codewidget.invalid, code.invalid{
background: @docsSegementBackgroundColorInvalid ;
}
.mainbody div.codewidget.valid, .mainbody div.codewidget.invalid {
overflow: auto;
}
.invalid i.icon, .valid i.icon {
float: right;
margin-top: 10px;
margin-right: 10px;
font-size: 30px;
}
.invalid i.icon {
color: #a31515;
}
.valid i.icon {
color: #008000;
}
.avatar .ui.message {
margin-left: 4em;
margin-bottom: 1em;
}
code.lang-typescript, code.lang-python {
overflow-wrap: break-word;
}
/* Cards */
.ui.card {
padding: 0 ;
background: @docsCardBackgroundColor;
color: @docsCardColor;
border-radius: 0.5rem ;
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 .inverted .item.title a.header {
margin-right: 1em;
}
.toc .inverted .item a.header {
color: white;
}
.toc a.item {
color: black;
padding: 10px 15px ;
}
.toc .inverted a.item {
color: rgba(255, 255, 255, 1);
}
.toc a.item:hover {
text-decoration: @linkHoverUnderline;
}
.toc .inverted .item.search {
margin: -.92857143em -1.14285714em;
}
.toc .item.search input {
border-radius: 0;
}
.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;
}
table {
border-collapse: collapse;
}
table tr th, table tr td {
border: 1px solid #333;
padding: 6px 13px;
}
table tr:nth-child(2n) {
background-color: #f8f8f8;
}
}
.sideDocs #sidedocsbar a {
color: @docsLinkColor;
}
.replaceDocsAvatar() when not (@docsAvatarImage = none) {
#docs {
.avatar .avatar-image {
background-image: @docsAvatarImage;
}
}
}
.replaceDocsAvatar();