Move base.scss
This commit is contained in:
parent
7d04a9461e
commit
052d20d30d
7 changed files with 38 additions and 41 deletions
|
|
@ -14,7 +14,7 @@
|
||||||
@import 'flash_messages';
|
@import 'flash_messages';
|
||||||
@import 'sprites';
|
@import 'sprites';
|
||||||
@import 'hovercard';
|
@import 'hovercard';
|
||||||
@import 'new_styles/base';
|
@import 'base';
|
||||||
@import 'new_styles/interactions';
|
@import 'new_styles/interactions';
|
||||||
@import 'spinner';
|
@import 'spinner';
|
||||||
@import 'timeago';
|
@import 'timeago';
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,21 @@
|
||||||
body {
|
body {
|
||||||
margin-top: $navbar-height;
|
margin-top: $navbar-height;
|
||||||
padding : none;
|
padding: none;
|
||||||
|
|
||||||
&.lock {
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Overflow */
|
// Overflow
|
||||||
h1, h2, h3, h4, h5, h6,
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6,
|
||||||
p,
|
p,
|
||||||
blockquote,
|
blockquote,
|
||||||
code,
|
code,
|
||||||
pre { word-wrap: break-word; }
|
pre { word-wrap: break-word; }
|
||||||
a.tag { word-break: break-all; }
|
|
||||||
|
.tag { word-break: break-all; }
|
||||||
|
|
||||||
.avatar {
|
.avatar {
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
|
@ -30,8 +32,8 @@ a.tag { word-break: break-all; }
|
||||||
|
|
||||||
&.medium {
|
&.medium {
|
||||||
height: auto;
|
height: auto;
|
||||||
width: auto;
|
|
||||||
max-width: 75px;
|
max-width: 75px;
|
||||||
|
width: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -39,41 +41,36 @@ a.tag { word-break: break-all; }
|
||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
#back-to-top {
|
.back-to-top {
|
||||||
display: block;
|
background-color: $border-dark-grey;
|
||||||
color: white;
|
|
||||||
position: fixed;
|
|
||||||
z-index: 49;
|
|
||||||
right: 54px;
|
|
||||||
bottom: 20px;
|
|
||||||
opacity: 0;
|
|
||||||
font-size: 2.9em;
|
|
||||||
padding: 0 12px 0 12px;
|
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
background-color: #aaa;
|
bottom: 20px;
|
||||||
&:hover { opacity: 0.85 !important; }
|
color: $white;
|
||||||
&.visible { opacity: 0.5; }
|
display: block;
|
||||||
|
font-size: 2.9em;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
|
opacity: 0;
|
||||||
|
padding: 0 12px;
|
||||||
|
position: fixed;
|
||||||
|
right: 54px;
|
||||||
|
z-index: 49;
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&.visible:hover {
|
||||||
|
color: $white;
|
||||||
|
opacity: .85;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.visible { opacity: .5; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/* general purpose classes */
|
// general purpose classes
|
||||||
|
|
||||||
.small-horizontal-spacer {
|
.small-horizontal-spacer {
|
||||||
min-height: 20px;
|
min-height: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.big-horizontal-spacer {
|
// badge color
|
||||||
height: 50px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* responsive */
|
|
||||||
@media (max-width: 767px) {
|
|
||||||
body {
|
|
||||||
padding : 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* badge color */
|
|
||||||
.badge-important {
|
.badge-important {
|
||||||
background-color: $red;
|
background-color: $red;
|
||||||
}
|
}
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
= render partial: 'people/person', locals: hash
|
= render partial: 'people/person', locals: hash
|
||||||
= will_paginate @contacts_of_contact, renderer: WillPaginate::ActionView::BootstrapLinkRenderer
|
= will_paginate @contacts_of_contact, renderer: WillPaginate::ActionView::BootstrapLinkRenderer
|
||||||
|
|
||||||
%a{id:"back-to-top", title:"#{t('layouts.application.back_to_top')}", href:"#"}
|
%a.back-to-top#back-to-top{title: "#{t('layouts.application.back_to_top')}", href: "#"}
|
||||||
⇧
|
⇧
|
||||||
|
|
||||||
-if user_signed_in? && @person
|
-if user_signed_in? && @person
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
= will_paginate(@people)
|
= will_paginate(@people)
|
||||||
|
|
||||||
%a{id:"back-to-top", title:"#{t('layouts.application.back_to_top')}", href:"#"}
|
%a.back-to-top#back-to-top{title: "#{t('layouts.application.back_to_top')}", href: "#"}
|
||||||
⇧
|
⇧
|
||||||
|
|
||||||
.col-md-4
|
.col-md-4
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
%span.loader.hidden
|
%span.loader.hidden
|
||||||
.spinner
|
.spinner
|
||||||
|
|
||||||
%a{id:"back-to-top", title:"#{t('layouts.application.back_to_top')}", href:"#"}
|
%a.back-to-top#back-to-top{title: "#{t('layouts.application.back_to_top')}", href: "#"}
|
||||||
⇧
|
⇧
|
||||||
|
|
||||||
-if user_signed_in? && @person
|
-if user_signed_in? && @person
|
||||||
|
|
|
||||||
|
|
@ -57,5 +57,5 @@
|
||||||
|
|
||||||
= render 'shared/right_sections'
|
= render 'shared/right_sections'
|
||||||
|
|
||||||
%a{id:"back-to-top", title:"#{t('layouts.application.back_to_top')}", href:"#"}
|
%a.back-to-top#back-to-top{title: "#{t('layouts.application.back_to_top')}", href: "#"}
|
||||||
⇧
|
⇧
|
||||||
|
|
|
||||||
|
|
@ -36,5 +36,5 @@
|
||||||
|
|
||||||
.col-lg-1.visible-lg#right-sidebar-fixed-sub-background
|
.col-lg-1.visible-lg#right-sidebar-fixed-sub-background
|
||||||
|
|
||||||
%a{id:"back-to-top", title:"#{t('layouts.application.back_to_top')}", href:"#"}
|
%a.back-to-top#back-to-top{title: "#{t('layouts.application.back_to_top')}", href: "#"}
|
||||||
⇧
|
⇧
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue