Skip to content

Commit

Permalink
fix: HEAD http verb support
Browse files Browse the repository at this point in the history
closes #342
  • Loading branch information
RomanHotsiy committed Sep 21, 2017
1 parent ec64c6c commit d8b6e02
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 26 deletions.
6 changes: 5 additions & 1 deletion lib/components/EndpointLink/endpoint-link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
}

.operation-api-url {
color: rgba($black, .8);
color: rgba($black, 0.8);
&-path {
font-family: $headers-font, $headers-font-family;
position: relative;
Expand Down Expand Up @@ -146,4 +146,8 @@
&.link {
background-color: $link-color;
}

&.head {
background-color: $head-color;
}
}
68 changes: 43 additions & 25 deletions lib/components/Redoc/redoc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
display: block;
box-sizing: border-box;

-webkit-tap-highlight-color: rgba(0,0,0,0);
-moz-tap-highlight-color: rgba(0,0,0,0);
-ms-tap-highlight-color: rgba(0,0,0,0);
-o-tap-highlight-color: rgba(0,0,0,0);
tap-highlight-color: rgba(0,0,0,0);
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-moz-tap-highlight-color: rgba(0, 0, 0, 0);
-ms-tap-highlight-color: rgba(0, 0, 0, 0);
-o-tap-highlight-color: rgba(0, 0, 0, 0);
tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-smoothing: antialiased;
Expand All @@ -18,10 +18,10 @@
-webkit-text-size-adjust: 100%;
-moz-text-size-adjust: 100%;
text-size-adjust: 100%;
-webkit-text-shadow: 1px 1px 1px rgba(0,0,0,0.004);
-ms-text-shadow: 1px 1px 1px rgba(0,0,0,0.004);
text-shadow: 1px 1px 1px rgba(0,0,0,0.004);
text-rendering: optimizeSpeed!important;
-webkit-text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
-ms-text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
text-rendering: optimizeSpeed !important;
font-smooth: always;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
Expand Down Expand Up @@ -96,7 +96,6 @@ side-menu {
}
}


.redoc-error {
padding: 20px;
text-align: center;
Expand Down Expand Up @@ -131,7 +130,7 @@ side-menu {
background-color: #333;
border-radius: 3px;
vertical-align: top;
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAACgCAYAAADuDlcXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpFNjQ5N0JDQUE3OTYxMUU0ODNGMUE0RUM3NjRDRTQyNyIgeG1wTU06RG9jdW1lbnRJR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0Uk5T/wDltzBKAAAA80lEQVR42uSWSwLCIAxEX+5/aa2QZBJw5UIt9QMdRqSPEAAw/TyvqzZf150NzdXL49qreXwXjeqz9bqN1tgJl/KLyaVrrL7K7gx+1vlNMqy+helOO4rfBGYZiEkq1ubQ3DeKvc97Et+d+e01vIZlLZZqb1WNJFd8ZKYsmv4Hh3H2fDgjMUI5WSExjiEZs7rEZ5T+/jQn9lhgsw53j/e9MQtxqPsbZY54M5fNl/MY/f1s7NbRSkYlYjc0KPsWMrmhIU9933ywxDiSE+upYNH8TdusUotllNvcAUzfnE/NC4OSYyklQhpdl9E4Tw0Cm4/G9xBgAO7VCkjWLOMfAAAAAElFTkSuQmCC');
background-repeat: no-repeat;
background-position: 6px 4px;
text-indent: -9000px;
Expand Down Expand Up @@ -177,13 +176,18 @@ side-menu {
background-position: 4px -131px;
background-color: $link-color;
}

&.head {
background-position: 6px -102px;
background-color: $head-color;
}
}
}

/* global redoc styles */

@for $index from 1 through 5 {
:host /deep/ h#{$index}{
:host /deep/ h#{$index} {
margin-top: 0;
font-family: $headers-font, $headers-font-family;
color: $secondary-color;
Expand All @@ -194,11 +198,23 @@ side-menu {
}

:host /deep/ {
h1 { font-size: $h1; color: $headers-color; }
h2 { font-size: $h2; }
h3 { font-size: $h3; }
h4 { font-size: $h4; }
h5 { font-size: $h5; line-height: 20px; }
h1 {
font-size: $h1;
color: $headers-color;
}
h2 {
font-size: $h2;
}
h3 {
font-size: $h3;
}
h4 {
font-size: $h4;
}
h5 {
font-size: $h5;
line-height: 20px;
}

p {
font-family: $base-font, $base-font-family;
Expand All @@ -215,7 +231,7 @@ side-menu {

p > code {
color: $red;
border: 1px solid rgba(38,50,56,0.1);
border: 1px solid rgba(38, 50, 56, 0.1);
}

.hint--inversed {
Expand Down Expand Up @@ -247,7 +263,6 @@ footer {
}
}


/* markdown elements */

:host /deep/ .redoc-markdown-block {
Expand All @@ -260,26 +275,27 @@ footer {
overflow-x: auto;
line-height: normal;
border-radius: $border-radius;
border: 1px solid rgba(38,50,56,0.1);
border: 1px solid rgba(38, 50, 56, 0.1);

code {
background-color: transparent;
color: white;

&:before, &:after {
&:before,
&:after {
content: none;
}
}
}

code {
font-family: Courier, monospace;
background-color: rgba(38,50,56,0.04);
background-color: rgba(38, 50, 56, 0.04);
padding: 0.1em 0.2em 0.2em;
font-size: 1em;
border-radius: $border-radius;
color: $red;
border: 1px solid rgba(38,50,56, 0.1);
border: 1px solid rgba(38, 50, 56, 0.1);
}

p:last-of-type {
Expand All @@ -299,7 +315,8 @@ footer {
box-sizing: content-box;
}

ul, ol {
ul,
ol {
padding-left: 2em;
margin: 0;
margin-bottom: 1em;
Expand Down Expand Up @@ -332,7 +349,8 @@ footer {
}
}

table th, table td {
table th,
table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
Expand Down
1 change: 1 addition & 0 deletions lib/shared/styles/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ $post-color: #248fb2;
$put-color: #9b708b;
$options-color: #d3ca12;
$patch-color: #e09d43;
$head-color: #c167e4;
$delete-color: #e27a7a;
$basic-color: #999;
$link-color: #31bbb6;

0 comments on commit d8b6e02

Please sign in to comment.