Skip to content

Commit

Permalink
update tagsbox css
Browse files Browse the repository at this point in the history
  • Loading branch information
Ammar-Radwan committed Sep 25, 2024
1 parent 6a0e4c6 commit 07911d5
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/pages/MetricCreateEdit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Layout from '../layouts/Layout';
import TagsBox from '../components/TagsBox';
import { getMetricById, editMetric, postMetric } from '../api/metrics';
import '../styles/pages/Metrics.css';

import '../styles/components/TagsBox.css';

const MetricCreateEdit = (props) => {
const navigate = useNavigate();
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/ServiceCreateEdit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
editService, getAllScorecrds, getAllTeams,
getServiceById, getServiceDetailsById, postService
} from '../api/services';
import '../styles/components/TagsList.css'
import '../styles/components/TagsBox.css'


const ServiceCreateEdit = (props) => {
Expand Down
61 changes: 61 additions & 0 deletions frontend/src/styles/components/TagsBox.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
form :where(.box ul, li, li i){
display: flex;
align-items: center;
}

form .box {
border: 1px solid #d3d3d3;
border-radius: 6px;
}

form .box input {
width: 150px;
outline: none;
border: none;
margin-left: 10px;
margin-bottom: 10px;
}

form .input-note {
color: #919191
}
form :where(ul, li, li i){
display: flex;
align-items: center;
}

form ul {
display: flex;
flex-wrap: wrap;
list-style-type: none;
padding: 10px;
margin: 0
}
form ul li {
margin: 0 5px 5px 0;
padding: 2px 7px;
background-color: #eee;
border: 1px solid #d3d3d3;
border-radius: 3px;
text-align: center;
user-select: none;
z-index: 1000;
}

form ul li button {
background-color: none;
border: none;
outline: none;
}

form ul li i {
color: #757575;
width: 15px;
height: 15px;
padding: 0 4px;
border-radius: 30px;
margin-left: 4px;
font-size: 13px;
cursor: pointer;
}

0 comments on commit 07911d5

Please sign in to comment.