From 2eb195287528e2b6c61d94038a95427a753c87d5 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Tue, 29 May 2018 18:58:30 +0300 Subject: [PATCH] fix: HEAD http verb support in menu badges fixes #493 --- src/components/SideMenu/styled.elements.ts | 7 ++++++- src/theme.ts | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/SideMenu/styled.elements.ts b/src/components/SideMenu/styled.elements.ts index a620fdb5c1..ca8d714566 100644 --- a/src/components/SideMenu/styled.elements.ts +++ b/src/components/SideMenu/styled.elements.ts @@ -19,7 +19,7 @@ export const OperationBadge = withProps<{ type: string }>(styled.span).attrs({ background-color: #333; border-radius: 3px; vertical-align: top; - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAACgCAYAAADuDlcXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZ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vmxPNPxPFHgAEA/rGUMXq/uWcAAAAASUVORK5CYII="); + background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAACgCAMAAADZ0KclAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRF////////VXz1bAAAAAJ0Uk5T/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; @@ -65,6 +65,11 @@ export const OperationBadge = withProps<{ type: string }>(styled.span).attrs({ background-position: 4px -131px; background-color: ${props => props.theme.colors.http.link}; } + + &.head { + background-position: 6px -102px; + background-color: ${props => props.theme.colors.http.head}; + } `; function menuItemActiveBg(depth): string { diff --git a/src/theme.ts b/src/theme.ts index f771f95531..3933b0c665 100644 --- a/src/theme.ts +++ b/src/theme.ts @@ -26,6 +26,7 @@ const defaultTheme: ThemeInterface = { delete: '#e27a7a', basic: '#999', link: '#31bbb6', + head: '#c167e4', }, }, schemaView: { @@ -132,6 +133,7 @@ export interface ResolvedThemeInterface { delete: string; basic: string; link: string; + head: string; }; }; schemaView: {