Browse Source

Début de tentative de bootstrap

master
Nolwenn LAVIELLE 3 years ago
parent
commit
9b845a5afa
  1. 3
      middleman/Gemfile
  2. 3
      middleman/Gemfile.lock
  3. 2
      middleman/config.rb
  4. 17
      middleman/source/partials/_navigation.erb
  5. 2
      middleman/source/stylesheets/site.css.scss

3
middleman/Gemfile

@ -8,6 +8,3 @@ gem 'wdm', '~> 0.1', platforms: [:mswin, :mingw, :x64_mingw]
gem 'bootstrap-sass'
source 'https://rails-assets.org' do
gem 'rails-assets-jquery'
end

3
middleman/Gemfile.lock

@ -1,6 +1,5 @@
GEM
remote: https://rubygems.org/
remote: https://rails-assets.org/
specs:
activesupport (5.0.7.2)
concurrent-ruby (~> 1.0, >= 1.0.2)
@ -87,7 +86,6 @@ GEM
parallel (1.18.0)
public_suffix (4.0.1)
rack (2.0.7)
rails-assets-jquery (3.4.1)
rb-fsevent (0.10.3)
rb-inotify (0.10.0)
ffi (~> 1.0)
@ -114,7 +112,6 @@ DEPENDENCIES
middleman (~> 4.2)
middleman-autoprefixer (~> 2.7)
middleman-sprockets
rails-assets-jquery!
tzinfo-data
wdm (~> 0.1)

2
middleman/config.rb

@ -4,7 +4,7 @@
activate :autoprefixer do |prefix|
prefix.browsers = "last 2 versions"
end
activate :sprockets
# Layouts
# https://middlemanapp.com/basics/layouts/

17
middleman/source/partials/_navigation.erb

@ -1,7 +1,12 @@
<nav role="navigation">
<ul>
<% data.navigation.each do |item| %>
<li><a href="#<%= item.goto %>"><%= item.name %></a></li>
<% end %>
</ul>
<nav class="navbar navbar-dark" role="navigation">
<a class="navbar-brand" href="/">PSES</a>
<div class="collapse navbar-collapse" id="liens">
<div class="navbar-nav">
<ul class="mr-auto">
<% data.navigation.each do |item| %>
<li><a href="#<%= item.goto %>"><%= item.name %></a></li>
<% end %>
</ul>
</div>
</div>
</nav>

2
middleman/source/stylesheets/site.css.scss

@ -1,2 +1,2 @@
@import "variables";
@import "bootstrap";
@import "bootstrap-custom";
Loading…
Cancel
Save