<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>convertical</author_name>
  <author_url>https://blog.hatena.ne.jp/convertical/</author_url>
  <blog_title>anti scroll</blog_title>
  <blog_url>https://tategakibunko.hatenablog.com/</blog_url>
  <categories>
    <anon>nehan.js</anon>
  </categories>
  <description>人気のCSSフレームワーク「Semantic-UI」ですが、ヘッダーの設定はこんな感じになっています。 .ui.header{ margin: calc(2rem - 0.14285em) 0em 1rem; } 各ヘッダー内での文字サイズ(em)と、bodyの文字サイズ(rem)を使って計算しています。 同じことをnehan.jsでやる場合は、こんな感じで設定します。 Nehan.setStyle(&quot;.ui.header&quot;, { margin:function(ctx){ var em = ctx.style.getFontSize(); var rem = ctx.style.getRoo…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftategakibunko.hatenablog.com%2Fentry%2F2015%2F11%2F12%2F173349&quot; title=&quot;nehan.jsでSemantic UIのようなヘッダースタイルを設定する - anti scroll&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-11-12 17:33:49</published>
  <title>nehan.jsでSemantic UIのようなヘッダースタイルを設定する</title>
  <type>rich</type>
  <url>https://tategakibunko.hatenablog.com/entry/2015/11/12/173349</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
