Skip to content

Commit a49a8e2

Browse files
authored
Merge pull request #95 from acelaya-forks/feature/fix-async-api-styles
Feature/fix async api styles
2 parents cd2ecbc + b6c852b commit a49a8e2

File tree

6 files changed

+39
-11
lines changed

6 files changed

+39
-11
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ docker-compose.override.yml
55
/build/
66
npm-debug.log*
77
home
8+
tsconfig.tsbuildinfo

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org).
66

7-
## [Unreleased]
7+
## [2.1.0] - 2023-03-05
88
### Added
99
* *Nothing*
1010

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"lint": "eslint --ext .js,.ts,.tsx src",
1414
"lint:fix": "npm run lint -- --fix",
1515
"start": "vite serve --host=0.0.0.0",
16-
"build": "tsc --noEmit && vite build"
16+
"build": "tsc && vite build"
1717
},
1818
"dependencies": {
1919
"@asyncapi/react-component": "^1.0.0-next.47",

src/assets/css/main.css

+31-6
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,18 @@
1919
}
2020
}
2121

22+
@layer components {
23+
.menu-item {
24+
font-family: sans-serif;
25+
@apply text-shlink-brand hover:text-shlink-brand-dark py-1.5 px-2.5;
26+
}
27+
28+
.menu-item.active {
29+
@apply text-white bg-shlink-brand rounded;
30+
}
31+
}
32+
33+
/* Overwrite swagger styles */
2234
.swagger-ui .url {
2335
word-wrap: break-word;
2436
}
@@ -27,13 +39,26 @@
2739
padding: 0 !important;
2840
}
2941

30-
@layer components {
31-
.menu-item {
32-
font-family: sans-serif;
33-
@apply text-shlink-color hover:text-shlink-color-dark py-1.5 px-2.5;
42+
.swagger-ui .scheme-container {
43+
box-shadow: none;
44+
padding: 0;
45+
}
46+
47+
.swagger-ui .auth-wrapper .authorize {
48+
margin-right: 0;
49+
}
50+
51+
/* Overwrite API spec styles */
52+
.aui-root {
53+
@apply -ml-6;
54+
}
55+
56+
@media (max-width: 1535px) {
57+
.aui-root {
58+
@apply -mr-6;
3459
}
3560

36-
.menu-item.active {
37-
@apply text-white bg-shlink-color rounded;
61+
.aui-root .panel-item--right {
62+
@apply mx-8;
3863
}
3964
}

src/components/Header.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const Header: FC<HeaderProps> = ({ setTag, tags }) => {
2121

2222
return (
2323
<Headroom style={{ zIndex: 99 }}>
24-
<header className="bg-shlink-color h-16 py-4">
24+
<header className="bg-shlink-brand h-16 py-4">
2525
<div className="container mx-auto px-5 flex">
2626
<h2 className="text-white text-2xl font-bold flex-1">
2727
<ShlinkLogo className="w-8 h-8 inline" />{' '}

tailwind.config.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ module.exports = {
66
theme: {
77
extend: {
88
colors: {
9-
'shlink-color': '#4696e5',
10-
'shlink-color-dark': '#1f69c0'
9+
'shlink-brand': {
10+
'DEFAULT': '#4696e5',
11+
'dark': '#1f69c0'
12+
},
1113
}
1214
},
1315
screens: {

0 commit comments

Comments
 (0)