Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakuya Noguchi <takninnovationresearch@gmail.com>2021-02-10 07:08:44 +0300
committerTakuya Noguchi <takninnovationresearch@gmail.com>2021-02-17 05:30:29 +0300
commitba84e8781824f9cffda8d847e9826b48a8a2c2d1 (patch)
treedbb6d71286404fe165ef55ea45da5daee6299c52 /layouts/default.html
parent86aa2c11c4be042af5825e0c6dfa2aaad145dead (diff)
Improve CSS for img element in the main
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
Diffstat (limited to 'layouts/default.html')
-rw-r--r--layouts/default.html70
1 files changed, 36 insertions, 34 deletions
diff --git a/layouts/default.html b/layouts/default.html
index 0050556a..aad651e4 100644
--- a/layouts/default.html
+++ b/layouts/default.html
@@ -45,42 +45,44 @@
<div class="doc-nav"></div>
</div>
</div>
- <div class="row">
- <div class="col">
- <% if @item[:title] %>
- <h1 class="article-title" itemprop="name">
- <%= @item[:title] %><%= @item[:title_badge] %>
- </h1>
- <% end %>
- <div class="article-metadata">
- <% if @item[:author] and @item[:author_gitlab] %>
- Article written by <a href="https://gitlab.com/<%= @item[:author_gitlab] %>" target="_blank"><%= @item[:author] %></a>
- &#8226;
- <% end %>
- <% if @item[:date] %>
- on <%= @item[:date] %>
- &#8226;
- <% end %>
- <% if @item[:article_type] %>
- Type: <%= @item[:article_type] %>
- <% end %>
- <% if @item[:level] %>
- Level: <%= @item[:level] %>
- &#8226;
- <% end %>
- <% if @item[:last_updated] %>
- Last updated: <%= @item[:last_updated] %>
- &#8226;
- <% end %>
- <% if @item[:reading_time] %>
- <%= reading_time(item.raw_content.split.size) %> to read
- <% end %>
- </div>
- <div class="article-content js-article-content" role="main" itemscope itemprop="mainContentOfPage">
- <%= yield %>
+ <main>
+ <div class="row">
+ <div class="col">
+ <% if @item[:title] %>
+ <h1 class="article-title" itemprop="name">
+ <%= @item[:title] %><%= @item[:title_badge] %>
+ </h1>
+ <% end %>
+ <div class="article-metadata">
+ <% if @item[:author] and @item[:author_gitlab] %>
+ Article written by <a href="https://gitlab.com/<%= @item[:author_gitlab] %>" target="_blank"><%= @item[:author] %></a>
+ &#8226;
+ <% end %>
+ <% if @item[:date] %>
+ on <%= @item[:date] %>
+ &#8226;
+ <% end %>
+ <% if @item[:article_type] %>
+ Type: <%= @item[:article_type] %>
+ <% end %>
+ <% if @item[:level] %>
+ Level: <%= @item[:level] %>
+ &#8226;
+ <% end %>
+ <% if @item[:last_updated] %>
+ Last updated: <%= @item[:last_updated] %>
+ &#8226;
+ <% end %>
+ <% if @item[:reading_time] %>
+ <%= reading_time(item.raw_content.split.size) %> to read
+ <% end %>
+ </div>
+ <div class="article-content js-article-content" role="main" itemscope itemprop="mainContentOfPage">
+ <%= yield %>
+ </div>
</div>
</div>
- </div>
+ </main>
<div class="row px-4">
<div class="col">
<%= render '/feedback.*' %>