Skip to content

Instantly share code, notes, and snippets.

@namuan
Created December 17, 2018 17:52
Show Gist options
  • Save namuan/d13c5ebc46ad7e56f75db5d12f50ce29 to your computer and use it in GitHub Desktop.
Save namuan/d13c5ebc46ad7e56f75db5d12f50ce29 to your computer and use it in GitHub Desktop.
css swagger
*{margin: 0;padding: 0;list-style: none;}
body, h1, h2, h3, h4, h5, h6, hr, p, blockquote,
dl, dt, dd, ul, ol, li,
pre,
form, fieldset, legend, button, input, textarea,
th, td {
margin: 0;
padding: 0;
}
body,
button, input, select, textarea {
font: 16px/1.5 sans-serif, tahoma, arial, \5b8b\4f53;
font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal;
font-weight: normal;
}
h1, h2, h3, h4, h5, h6 { font-size: 100%; }
address, cite, dfn, em, var { font-style: normal; }
code, kbd, pre, samp { font-family: courier new, courier, monospace; }
small { font-size: 14px; }
ul, ol { list-style: none; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
legend { color: #000; }
fieldset, img { border: 0; }
button, input, select, textarea { font-size: 100%; }
table { border-collapse: collapse; border-spacing: 0; }
.ks-clear:after, .clear:after {
content: '\20';
display: block;
height: 0;
clear: both;
}
.ks-clear, .clear {
*zoom: 1;
}
header {
background-color: #009688;
height: 138px;
line-height: 68px;
padding: 0 20px;
color: #fff;
position: absolute;
top: 0;
left: 0;
right: 0;
z-index: -1;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 400;
}
header h1 {
font-size: 28px;
}
h2 {
font-size: 24px;
}
h3 {
font-weight: 700;
border: 1px solid #ddd;
display: inline-block;
border-radius: 2px;
padding: 0px 4px;
}
.article {
padding: 20px;
max-width: 960px;
margin: 0px auto;
box-shadow: 0px 0px 4px #ccc;
background: #fff;
margin-top: 80px;
}
.article>div {
padding: 10px 10px;
}
.POST, .post, .PATCH, .patch, .get, .GET, .put, .PUT,.delete, .DELETE {
color: #fff;
padding: 4px;
border-radius: 2px;
font-size: 8px;
margin: 0 4px;
width: 40px;
display: inline-block;
text-align: center;
}
.POST, .post{
background-color: #0B7CAF;
}
.get, .GET {
background-color: #61affe;
}
.put, .PUT {
background-color: #c5862b;
}
.delete, .DELETE {
background-color: #F44336;
}
.PATCH, .patch{
background-color: #50e3c2;
}
hr {
color: #dfdfdf;
}
ol>li {
margin: 24px;
}
ol>li>ul {
background-color: #504949;
color: #fff;
padding: 8px 16px;
}
ul.change>li {
margin: 10px 20px;
}
ul {
margin: 10px 0;
}
ul>li {
margin: 10px 0;
}
.comment {
color: #d8fa3c;
margin-left: 16px;
font-size: 14px;
}
.missing>s, .missing>del {
padding: 0 4px;
}
s, del, .missing, del.comment {
color: #F44336;
}
.missing>.comment {
color: #F44336;
}
/* Class for link show/hide article */
.showhide {
color: #3e373785;
text-decoration: none;
padding: 2px;
font-size: 12px;
float: right;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment