Skip to content

Commit

Permalink
修改default主题 (#334)
Browse files Browse the repository at this point in the history
* 修改国旗图标为4*3的大国旗

* Update main.css
  • Loading branch information
sunnywangzi authored Mar 24, 2024
1 parent 460483f commit 1e27fb9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion resource/static/theme-default/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@
.ui.card>.content>.header:not(.ui),.ui.cards>.card>.content>.header:not(.ui) {
margin-top:0.4em !important;
}
.ui.card>.content>.header,.ui.cards>.card>.content>.header {
padding-top: 0.5rem;
display: flex;
color: rgba(0, 0, 0, .85);
align-items: center;
padding-bottom: .2em;
border-bottom: 1px solid rgba(0, 0, 0, .2);
}
.ui.menu .item>img:not(.ui){
width: 2.2rem;
}
Expand Down Expand Up @@ -215,4 +223,4 @@ td {

.ui-alerts.top-center {
z-index: 99999999;
}
}
2 changes: 1 addition & 1 deletion resource/template/theme-default/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<div v-for="server in group.data" :id="server.ID" class="ui card">
<div class="content" v-if="server.Host" style="margin-top: 10px; padding-bottom: 5px">
<div class="header">
<i :class="'fi fi-' + server.Host.CountryCode"></i>&nbsp;<i v-if='server.Host.Platform == "darwin"'
<img v-if="server.Host.CountryCode" style="border-radius: 5px;width:45px;" :src="'https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/6.6.5/flags/4x3/'+server.Host.CountryCode + '.svg'" alt="国家"/>&nbsp;<i v-if='server.Host.Platform == "darwin"'
class="apple icon"></i><i v-else-if='isWindowsPlatform(server.Host.Platform)'
class="windows icon"></i><i v-else :class="'fl-' + getFontLogoClass(server.Host.Platform)"></i>
@#server.Name + (server.live?'':'[{{tr "Offline"}}]')#@
Expand Down

0 comments on commit 1e27fb9

Please sign in to comment.