Skip to content

Commit

Permalink
Adjust my.so.ch top/bottombar styling
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Jul 4, 2024
1 parent 7dc8011 commit ee987c8
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 11 deletions.
6 changes: 3 additions & 3 deletions js/plugins/SoTopBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ class SoTopBar extends React.Component {
if (this.props.mobile) {
buttonContents = (
<span className="appmenu-button">
<Icon className="appmenu-icon" icon="menu-hamburger" title={tooltip}/>
<Icon className="mysoch-menu-icon" icon="mysoch-hamburger" title={tooltip}/>
</span>
);
} else {
buttonContents = (
<span className="appmenu-button">
<span className="appmenu-label">{LocaleUtils.tr("appmenu.menulabel")}</span>
<Icon className="appmenu-icon" icon="menu-hamburger" title={tooltip}/>
<Icon className="mysoch-menu-icon" icon="mysoch-hamburger" title={tooltip}/>
</span>
);
}
Expand Down Expand Up @@ -130,7 +130,7 @@ class SoTopBar extends React.Component {
) : null}
<button className="sotopbar-button" onClick={this.showHelp}><Icon icon="question-sign" size="large" /></button>
<span className="sotopbar-userinfo">
<Icon icon="login" size="large" /> {userInfos?.displayname ?? ""}
<Icon icon="identity" size="large" /> {userInfos?.displayname ?? ""}
</span>
<button className="sotopbar-button" onClick={this.logout}><Icon icon="poweroff" size="large" /></button>
</div>
Expand Down
4 changes: 4 additions & 0 deletions js/plugins/style/SoBottomBar.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#SoBottomBar {
font-family: 'Frutiger-Regular',sans-serif;
}

#SoBottomBar img.sobottombar-logo {
position: absolute;
left: 0.5em;
Expand Down
27 changes: 19 additions & 8 deletions js/plugins/style/SoTopBar.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
color: white;
box-shadow: 0px 2px 4px rgba(136, 136, 136, 0.5);
z-index: 102;
font-family: 'Frutiger-Regular',sans-serif;
}

#SoTopBar div.sotopbar-banner {
Expand Down Expand Up @@ -50,15 +51,17 @@
height: 3.5em;
flex: 0 0 auto;
margin-right: 1em;
cursor: pointer;
}

#SoTopBar div.AppMenu.appmenu-visible {
background-color: #990000;
}

#SoTopBar div.AppMenu span.appmenu-icon {
#SoTopBar div.AppMenu span.mysoch-menu-icon {
color: white;
border-color: white;
font-size: 250%;
padding: 0 0.3em;
}

#SoTopBar div.AppMenu span.appmenu-button {
Expand Down Expand Up @@ -90,24 +93,30 @@

#SoTopBar div.SearchBox,
#SoTopBar div.SearchBox div.input-container {
height: 2.5em;
height: 3em;
border-radius: 5px;
border-color: transparent;
}

#SoTopBar div.SearchBox div.input-container span.icon-search {
color: #cc0000;
}

#SoTopBar div.sotopbar-taskbar > span.sotopbar-spacer {
flex: 1 1 auto;
}

#SoTopBar div.sotopbar-taskbar > button {
border-width: 0 2px;
border-width: 0 1px;
border-style: solid;
background-color: transparent;
border-color: #990000;
margin-left: -2px;
margin-left: -1px;
height: 100%;
padding: 0 1em;
padding: 0 1.25em;
outline: none;
font-weight: bold;
cursor: pointer;
}

#SoTopBar div.sotopbar-taskbar > button:hover {
Expand All @@ -121,9 +130,11 @@
#SoTopBar div.sotopbar-taskbar > span.sotopbar-userinfo {
display: flex;
align-items: center;
margin: 0 1em;
margin: 0 0.75em;
font-weight: bold;
}

#SoTopBar div.sotopbar-taskbar > span.sotopbar-userinfo > span.icon {
margin-right: 0.5em;
}
font-size: 200%;
}
Binary file added static/assets/css/FrutigerRomanBold.ttf
Binary file not shown.
Binary file added static/assets/css/FrutigerRomanBold.woff
Binary file not shown.
Binary file added static/assets/css/FrutigerRomanRegular.ttf
Binary file not shown.
Binary file added static/assets/css/FrutigerRomanRegular.woff
Binary file not shown.
14 changes: 14 additions & 0 deletions static/assets/css/qwc2.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
@font-face {
font-family: "Frutiger-Bold";
src: url("FrutigerRomanBold.woff") format("woff"), url("FrutigerRomanBold.ttf") format("truetype");
font-style: normal;
font-weight: normal;
}

@font-face {
font-family: "Frutiger-Regular";
src: url("FrutigerRomanRegular.woff") format("woff"), url("FrutigerRomanRegular.ttf") format("truetype");
font-style: normal;
font-weight: normal;
}

div.sidebar-body,
#TaskBar div.body {
font-size: small;
Expand Down

0 comments on commit ee987c8

Please sign in to comment.