Changeset 2a71053 in OpenWorkouts-current for ow/static/css/main.css


Ignore:
Timestamp:
Feb 8, 2019, 5:20:08 PM (5 years ago)
Author:
Segundo Fdez <segun.2@…>
Branches:
current, feature/docs, master
Children:
6edc367
Parents:
feab169
Message:

update favicon and responsive navigation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ow/static/css/main.css

    rfeab169 r2a71053  
    664664  color: #EE4056;
    665665}
     666@media (max-width: 800px) {
     667  .logo a {
     668    content: "";
     669    display: inline-block;
     670    width: 34px;
     671    height: 34px;
     672    background-image: url('/static/media/img/logo-openworkouts.png');
     673    background-size: 100%;
     674    background-repeat: no-repeat;
     675  }
     676  .logo a span {
     677    display: none !important;
     678  }
     679}
    666680.logo-open {
    667681  display: block;
     
    684698  flex-direction: row;
    685699  justify-content: space-between;
     700  align-items: center;
    686701}
    687702.nav-site li {
     
    700715.nav-site .is-active a {
    701716  color: #151515;
     717}
     718.icon-dashboard::before,
     719.icon-profile::before,
     720.icon-logout::before {
     721  content: "";
     722  display: inline-block;
     723}
     724.icon-dashboard span,
     725.icon-profile span,
     726.icon-logout span {
     727  display: none;
     728}
     729@media (min-width: 800px) {
     730  .icon-dashboard::before,
     731  .icon-profile::before,
     732  .icon-logout::before {
     733    display: none;
     734  }
     735  .icon-dashboard span,
     736  .icon-profile span,
     737  .icon-logout span {
     738    display: inline-block;
     739  }
     740}
     741.icon-dashboard:hover,
     742.icon-profile:hover,
     743.icon-logout:hover {
     744  opacity: 0.5;
     745}
     746.icon-dashboard::before {
     747  content: "☰";
     748  font-size: 30px;
     749  font-size: 1.875rem;
     750  line-height: 0em;
     751  position: relative;
     752  top: 3px;
     753  margin: 0;
     754}
     755.icon-profile {
     756  padding: 1em 1.25em !important;
     757}
     758.icon-profile::before {
     759  position: relative;
     760  top: 3px;
     761  width: 20px;
     762  height: 20px;
     763  background-image: url('/static/media/img/icon-user.svg');
     764  background-size: 100%;
     765  margin: 0;
     766}
     767.icon-logout {
     768  padding: 1em 1.25em !important;
     769}
     770.icon-logout::before {
     771  position: relative;
     772  top: 3px;
     773  width: 20px;
     774  height: 20px;
     775  background-image: url('/static/media/img/icon-logout.svg');
     776  background-size: 100%;
     777  margin: 0;
    702778}
    703779/* Add workout button with submenu -------------------------------------------*/
Note: See TracChangeset for help on using the changeset viewer.