Skip to content

Commit a19ec54

Browse files
committed
css
1 parent fc9e57b commit a19ec54

File tree

4 files changed

+107
-33
lines changed

4 files changed

+107
-33
lines changed
Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
name: Build docker image and publish
22

33
on:
4-
# trigger when code changes
54
push:
65
branches:
76
- main
87

98
env:
10-
# Use docker.io for Docker Hub if empty
119
REGISTRY: docker.io
12-
# github.repository as <account>/<repo>
1310
IMAGE_NAME: laoshanxi/appmesh-ui
1411
APPMESH_VERSION: "2.1.2"
1512

@@ -19,38 +16,25 @@ jobs:
1916
permissions:
2017
contents: read
2118
packages: write
22-
# This is used to complete the identity challenge
23-
# with sigstore/fulcio when running outside of PRs.
2419
id-token: write
2520

2621
steps:
2722
- name: Checkout Github code
28-
uses: actions/checkout@v2
23+
uses: actions/checkout@v4
2924

30-
# Workaround: https://github.com/docker/build-push-action/issues/461
25+
# Updated to the latest stable version
3126
- name: Setup Docker buildx
32-
uses: docker/setup-buildx-action@79abd3f86f79a9d68a23c75a09a9a85889262adf
27+
uses: docker/setup-buildx-action@v3
3328

34-
# https://github.com/docker/login-action
3529
- name: Login to DockerHub
36-
uses: docker/login-action@v1
30+
uses: docker/login-action@v3
3731
with:
3832
username: ${{ secrets.DOCKERHUB_USERNAME }}
3933
password: ${{ secrets.DOCKERHUB_TOKEN }}
4034

41-
# Extract metadata (tags, labels) for Docker
42-
# https://github.com/docker/metadata-action
43-
- name: Extract Docker metadata
44-
id: meta
45-
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
46-
with:
47-
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
48-
49-
# Build and push Docker image with Buildx (don't push on PR)
50-
# https://github.com/docker/build-push-action
5135
- name: Build and push Docker image
5236
id: build-and-push
53-
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
37+
uses: docker/build-push-action@v6
5438
with:
5539
context: .
5640
file: Dockerfile
@@ -59,4 +43,3 @@ jobs:
5943
tags: |
6044
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
6145
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.APPMESH_VERSION }}
62-
labels: ${{ steps.meta.outputs.labels }}

src/layout/components/Navbar.vue

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,14 @@
55
<breadcrumb class="breadcrumb-container" />
66

77
<div class="right-menu">
8-
<el-switch v-model="forwardEnabled" active-text="Forward to:" inactive-text="" @change="handleSwitchChange" />
9-
<el-autocomplete
10-
v-model="forward" class="inline-input" style="width:140px"
11-
:fetch-suggestions="querySearch"
12-
></el-autocomplete>
13-
14-
15-
<el-button
16-
icon="el-icon-refresh" type="text" :loading="loading" title="Refresh" style="margin-right:10px;font-size:18px;font-weight: bold !important;"
17-
@click="refresh()"
18-
>
8+
<el-button icon="el-icon-refresh" type="text" acti :loading="loading" title="Refresh"
9+
style="margin-right:10px;font-size:18px;font-weight: bold !important;" @click="refresh()">
1910
</el-button>
2011

12+
<el-switch v-model="forwardEnabled" active-text="Forward to:" inactive-text="" @change="handleSwitchChange" />
13+
<el-autocomplete v-model="forward" class="inline-input" style="width:140px"
14+
:fetch-suggestions="querySearch"></el-autocomplete>
15+
2116
<el-dropdown class="avatar-container" trigger="click">
2217
<div class="avatar-wrapper">
2318
<!-- <div><img :src="avatar+'?imageView2/1/w/80/h/80'" class="user-avatar"><span class="UserName-avatar">{{name}}</span></div> -->

src/styles/sidebar.scss

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@use 'sass:math';
12
@use './variables.scss' as *;
23

34
#app {
@@ -63,6 +64,8 @@
6364
border: none;
6465
height: 100%;
6566
width: 100% !important;
67+
background-color: $menuBg;
68+
color: $menuText !important;
6669
}
6770

6871
// menu hover
@@ -86,6 +89,86 @@
8689
background-color: $subMenuHover !important;
8790
}
8891
}
92+
93+
.el-submenu {
94+
&__title {
95+
&:hover {
96+
background-color: $menuHover !important;
97+
}
98+
}
99+
100+
.el-menu-item {
101+
min-width: $sideBarWidth !important;
102+
background-color: $subMenuBg !important;
103+
104+
&:hover, &.is-active {
105+
background-color: $subMenuHover !important;
106+
}
107+
}
108+
109+
// Fix submenu container background color
110+
.el-menu {
111+
background-color: $subMenuBg !important;
112+
padding: 0 !important;
113+
margin: 0 !important;
114+
}
115+
116+
// Fix submenu item styles
117+
.el-menu-item {
118+
margin: 0 !important;
119+
padding-left: 48px !important;
120+
height: 50px !important;
121+
line-height: 50px !important;
122+
background-color: $subMenuBg !important;
123+
124+
&:hover {
125+
background-color: $subMenuHover !important;
126+
}
127+
128+
&.is-active {
129+
background-color: $menuHover !important;
130+
color: $menuActiveText !important;
131+
}
132+
}
133+
134+
// Fix submenu title styles
135+
.el-submenu__title {
136+
margin: 0 !important;
137+
padding: 0 20px !important;
138+
height: 50px !important;
139+
line-height: 50px !important;
140+
}
141+
}
142+
143+
// Set default colors for all menu items
144+
.el-menu-item,
145+
.el-submenu__title {
146+
color: $menuText !important;
147+
148+
&:hover {
149+
background-color: $menuHover !important;
150+
}
151+
152+
&.is-active {
153+
color: $menuActiveText !important;
154+
}
155+
}
156+
157+
// Fix submenu colors
158+
.el-submenu {
159+
.el-menu-item {
160+
color: $menuText !important;
161+
162+
&:hover {
163+
background-color: $subMenuHover !important;
164+
}
165+
166+
&.is-active {
167+
color: $menuActiveText !important;
168+
background-color: $menuHover !important;
169+
}
170+
}
171+
}
89172
}
90173

91174
.hideSidebar {

src/styles/variables.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@ $subMenuHover:#001528;
1111

1212
$sideBarWidth: 210px;
1313

14+
// define theme colors using CSS variables
15+
:root {
16+
--menu-text: #{$menuText};
17+
--menu-active: #{$menuActiveText};
18+
--submenu-active: #{$subMenuActiveText};
19+
--menu-bg: #{$menuBg};
20+
--menu-hover: #{$menuHover};
21+
--submenu-bg: #{$subMenuBg};
22+
--submenu-hover: #{$subMenuHover};
23+
--sidebar-width: #{$sideBarWidth};
24+
}
25+
1426
// the :export directive is the magic sauce for webpack
1527
// https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass
1628
:export {
@@ -22,4 +34,5 @@ $sideBarWidth: 210px;
2234
subMenuBg: $subMenuBg;
2335
subMenuHover: $subMenuHover;
2436
sideBarWidth: $sideBarWidth;
37+
cssVars: true; // mark using CSS variables
2538
}

0 commit comments

Comments
 (0)