open-nomad/website/source/assets/stylesheets/_api.scss

124 lines
2.2 KiB
SCSS
Raw Normal View History

2015-09-12 00:01:02 +00:00
//
// API
// --------------------------------------------------
2017-03-28 03:37:59 +00:00
.layout-api,
.layout-http {
dl, dl.api {
margin-top: 30px;
line-height: 20px;
dt {
color: #888;
text-transform: uppercase;
font-weight: normal;
float: left;
width: 150px;
text-align: right;
}
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
dd {
margin-left: 170px;
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
pre.api-sample {
margin-top: 20px;
font-size: 14px;
padding: 10px;
}
2015-09-12 00:01:02 +00:00
}
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
ul {
2015-11-10 21:58:56 +00:00
margin: 0;
2016-10-12 00:37:23 +00:00
padding: 0;
2015-11-10 21:58:56 +00:00
2017-03-28 03:37:59 +00:00
li {
margin: 0;
list-style-type: none;
line-height: 20px;
padding: 0;
padding-bottom: 15px;
font-size: 15px;
font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: 500;
&:last-child {
padding-bottom: 0;
}
span.param {
font-weight: bold;
}
span.param-flags {
font-style: italic;
color: #888;
padding-right: 6px;
}
2015-11-10 21:58:56 +00:00
}
2015-09-12 00:01:02 +00:00
}
2015-11-10 21:58:56 +00:00
}
2015-09-12 00:01:02 +00:00
}
#inner-quicknav {
margin-top: -15px;
margin-bottom: 25px;
margin-left: 10px;
span {
cursor: pointer;
color: #666;
svg {
fill: $body-font-color;
position: relative;
top: -2px;
width: 9px;
height: 5px;
margin-left: 7px;
}
}
ul {
visibility: hidden;
opacity: 0;
transition: all 0.5s ease;
width: 80%;
box-shadow: 0px 4px 12px -2px rgba(63, 68, 85, 0.5);
border-radius: 3px;
2019-10-03 20:07:53 +00:00
padding: 20px;
position: absolute;
z-index: 1;
background-color: white;
margin-left: -15px;
&.active {
visibility: visible;
opacity: 1;
display: block;
transition-duration: 0s;
}
li {
clear: both;
width: 100%;
display: block;
position: relative;
margin-bottom: 0;
margin-left: 0;
padding-top: 0;
padding-bottom: 0;
$toc-indent: 30px;
&.level-h2 { padding-left: $toc-indent * 0 }
&.level-h3 { padding-left: $toc-indent * 1 }
&.level-h4 { padding-left: $toc-indent * 2 }
&.level-h5 { padding-left: $toc-indent * 3 }
&.level-h6 { padding-left: $toc-indent * 4 }
a {
text-decoration: none;
}
}
}
}