CSS: add new application layout + CSS
Without bootstrap!
This commit is contained in:
parent
aee17c5b19
commit
dc371b83b8
10 changed files with 57 additions and 12 deletions
|
@ -33,13 +33,11 @@
|
|||
// = require etapes
|
||||
// = require fonts
|
||||
// = require france_connect_particulier
|
||||
// = require header
|
||||
// = require landing
|
||||
// = require left_panel
|
||||
// = require login
|
||||
// = require main_container
|
||||
// = require navbar
|
||||
// = require new_footer
|
||||
// = require notification_alert
|
||||
// = require pieces_justificatives_fields
|
||||
// = require pj_modal
|
||||
|
|
7
app/assets/stylesheets/common.scss
Normal file
7
app/assets/stylesheets/common.scss
Normal file
|
@ -0,0 +1,7 @@
|
|||
@import "typography";
|
||||
|
||||
body {
|
||||
@extend %new-type;
|
||||
font-size: 16px;
|
||||
line-height: 1.42857143;
|
||||
}
|
27
app/assets/stylesheets/custom_reset.scss
Normal file
27
app/assets/stylesheets/custom_reset.scss
Normal file
|
@ -0,0 +1,27 @@
|
|||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
html {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: inherit;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
// remove dotted outline on firefox
|
||||
:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
::-moz-focus-inner {
|
||||
border: none;
|
||||
}
|
|
@ -2,10 +2,8 @@
|
|||
@import "colors";
|
||||
@import "mixins";
|
||||
@import "placeholders";
|
||||
@import "typography";
|
||||
|
||||
.landing {
|
||||
@extend %new-type;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
|
||||
|
|
9
app/assets/stylesheets/new_application.scss
Normal file
9
app/assets/stylesheets/new_application.scss
Normal file
|
@ -0,0 +1,9 @@
|
|||
// = require reset
|
||||
// = require custom_reset
|
||||
// = require common
|
||||
// = require utils
|
||||
// = require fonts
|
||||
// = require new_header
|
||||
// = require new_footer
|
||||
// = require landing
|
||||
// = require navbar
|
|
@ -1,10 +1,9 @@
|
|||
@import "colors";
|
||||
@import "constants";
|
||||
@import "mixins";
|
||||
@import "placeholders";
|
||||
@import "typography";
|
||||
|
||||
.footer {
|
||||
@extend %new-type;
|
||||
@include vertical-padding(72px);
|
||||
background-color: $light-grey;
|
||||
}
|
||||
|
|
|
@ -1,15 +1,11 @@
|
|||
@import "constants";
|
||||
@import "colors";
|
||||
@import "mixins";
|
||||
@import "typography";
|
||||
|
||||
// FIXME: Rename when the header is generalized
|
||||
.new-header {
|
||||
@extend %new-type;
|
||||
height: 72px;
|
||||
background-color: #FFFFFF;
|
||||
// FIXME: Delete when the header is generalized
|
||||
margin-top: -60px;
|
||||
}
|
||||
|
||||
.header-inner-content {
|
11
app/assets/stylesheets/utils.scss
Normal file
11
app/assets/stylesheets/utils.scss
Normal file
|
@ -0,0 +1,11 @@
|
|||
.pull-left {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.pull-right {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.clearfix {
|
||||
clear: both;
|
||||
}
|
|
@ -13,7 +13,7 @@
|
|||
= favicon_link_tag(image_url("favicons/32x32.png"), type: "image/png", sizes: "32x32")
|
||||
= favicon_link_tag(image_url("favicons/96x96.png"), type: "image/png", sizes: "96x96")
|
||||
|
||||
= stylesheet_link_tag "application", :media => "all", "data-turbolinks-track" => true
|
||||
= stylesheet_link_tag "new_application", :media => "all", "data-turbolinks-track" => true
|
||||
= stylesheet_link_tag "print", :media => "print", "data-turbolinks-track" => true
|
||||
|
||||
%body
|
||||
|
|
|
@ -8,4 +8,4 @@ Rails.application.config.assets.version = '1.0'
|
|||
|
||||
# Precompile additional assets.
|
||||
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
||||
Rails.application.config.assets.precompile += %w(print.css)
|
||||
Rails.application.config.assets.precompile += %w(print.css new_application.css)
|
||||
|
|
Loading…
Reference in a new issue