Skip to content

Commit

Permalink
feat(frontend): better frontend style
Browse files Browse the repository at this point in the history
  • Loading branch information
Burial0268 committed Jul 2, 2023
1 parent 7eb9645 commit c8009a0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
7 changes: 5 additions & 2 deletions js/src/forum/components/GeoIpToolBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ export default class GeoIpToolBar<CustomAttrs extends GeoIpBarAttrs = GeoIpBarAt
let {code, region, isp} = this.attrs;
return (
<div className="userIp-container">
<div className="ip-locate" id="info">
{`${region}, ${code} | ${isp}`}
<div className="ip-locate" id="info-country">
{`${region}, ${code}`}
</div>
<div className="ip-locate" id="info-isp">
{`${isp}`}
</div>
</div>
)
Expand Down
20 changes: 14 additions & 6 deletions resources/less/forum.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
*/


body when (@config-dark-mode = true) {
.ip-locate {
border: 1px solid #1b2028;
}
}

button.Button.Button--primary.ip-locate {
margin-top: 8px;
padding: 7px;
Expand All @@ -18,14 +24,16 @@ button.Button.Button--primary.ip-locate {
display: flex;
}
.ip-locate {
margin-left: 10px;
margin-bottom: 6px;
padding: 2px 5px 2px 5px;
border: 1px solid #cad0db;
border-radius: 6px;
}
body when (@config-dark-mode = true) {
.ip-locate {
border: 1px solid #1b2028;
}

.userIp-container .ip-locate:first-of-type {
margin-left: 10px;
border-radius: 6px 0 0 6px;
}

.userIp-container .ip-locate:last-of-type {
border-radius: 0 6px 6px 0;
}

0 comments on commit c8009a0

Please sign in to comment.