0

The logo of this page is shown out of its place in windows:

contraindicaciones.net

But the markup is very simple. What of this is incompatible with Windows?

Here is a Windows7 + Chrome49 test screencapture (is the same in newer Windows OS):

test screen capture

HTML:

<div class="site-branding hidden-xs">
  <div class="s s-weblog"></div>
  <a class="site-title" href="<?= esc_url(home_url('/')); ?>"><?php bloginfo('name'); ?></a>
  <p class="site-description">
    <?php bloginfo('description'); ?>
  </p>
</div>

SCSS:

.site-branding {
  text-align: center;
  .s-weblog {
    font-size: 128px;
    height: 135px;
  }
  .site-title {
    font-size: 28px;
    padding: 0;
  }
  .site-description {
    margin-bottom: 30px;
    font-style: italic;
  }
}

Thak you in advance!

aitor
  • 2,281
  • 3
  • 22
  • 44

3 Answers3

2

the issue seems to be with the font itself. have a read here Fix custom font line-height with CSS

a simple fix would be to use relative/absolute positioning

Community
  • 1
  • 1
  • Thank you very much. I tried this workaround with absolute positioning. It implies that other elements should have absolute position. After do it, the logo still outside its place in Windows! – aitor Mar 30 '16 at 15:19
1

I think this is something with

font-family:contraindi;
I tried to change content:"some text" and remove font-family and I've got something like this enter image description here
lomboboo
  • 1,221
  • 1
  • 12
  • 27
  • Yes, I have generated this font from SVG, with gulp https://github.com/nfroidure/gulp-iconfont. Most likely I did something wrong. The documentation of these tools is very poor. – aitor Mar 30 '16 at 15:22
0

Please try this:

.s:before {
  display: inline-block;
  font-family: contraindi;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  position: absolute;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  top: -134px;
  left: 71px;
}
satya
  • 1,145
  • 8
  • 12
  • I did it, without results. I tried also some other setup for before pseudoclase. Most likely I did something wrong when I build the font from SVG. – aitor Mar 30 '16 at 15:25