app/assets/stylesheets/responsive/_global_style.scss
html {
height: 100%;
font-size: 1em;
}
body {
color: #333;
line-height: 1.5em;
height: 100%;
min-height: 100%;
}
a {
color: #2688dc;
&:hover,
&:active,
&:focus {
color: #333333;
}
&:visited {
color: darken(#2688dc, 10%);
}
}
h1, h2, h3, h4, h5, h6 {
margin-bottom: 18px;
margin-bottom: 1rem;
line-height: 1.1em;
text-rendering: optimizeLegibility;
}
h1 {
font-size: 2.5em;
}
h2 {
font-size: 2em;
}
h3 {
font-size: 1.6em
}
h4 {
font-size: 1.3em;
}
h5 {
font-size: 1em;
}
p {
margin-top: 0;
margin-bottom: 1em;
}
p.subtitle {
margin-top:0.5em;
margin-bottom:1.5em;
font-size:1.2em;
font-style:normal;
color:#222;
}
hr {
border: none;
border-top: 1px solid #e9e9e9;
margin: 0;
}
img {
max-width: 100%;
height: auto;
}
dt {
margin-top: 1em;
font-weight: bold;
line-height: 1.5em;
@include respond-min( $main_menu-mobile_menu_cutoff ){
font-size: 1.3125em;
}
}
dd {
margin-left: 0;
}
dt + dd {
margin-top: 0.5em;
}
/* Links in sidebars usually only underlined on hover */
.feed_link,.act_link {
a{
text-decoration:none;
}
a:hover{
text-decoration:underline;
}
}
#header_right {
> a {
text-decoration:none;
}
> a:hover{
text-decoration:underline;
}
br{
line-height:200%;
}
}
/* Notices to the user (usually on action completion) */
#notice, #error, .warning {
font-size:1em;
border-radius:3px;
margin:1em 0;
padding:1.5em;
p:first-child {
margin-top:0;
}
p:last-child {
margin-bottom:0;
}
}
#notice {
background-color: lighten(#62b356, 23%);
}
#error, .warning {
background-color: lighten(#b05460, 23%);
}
.big {
font-size: 1.2em;
}
/* Form styling */
label.form_label {
font-size: 1.1em;
}
.form_item_note,.form_note {
font-size:0.875em;
line-height: 1.5em;
}
.form_item_note--important {
font-size: 1.142857143em;
line-height: 1.5em;
}
p + .form_item_note {
position: relative;
top: -1.8em;
}
form input[type=text],
form input[type=password],
form input[type=email],
form input[type=url] {
font-size:1.1em;
width:200px;
border-radius:3px;
-moz-border-radius:3px;
border-color:#BBB;
border-style:solid;
border-width:1px;
padding:5px;
display: inline-block;
}
/* Reset foundation's styling on <button> elements so that they look like
* input[type=submit] elements */
form button {
background-color: buttonface;
border: 2px outset buttonface;
border-image: initial;
color: buttontext;
padding: 2px 6px 3px;
transition: none;
&:hover, &:focus {
background: none;
color: inherit;
}
}
.fieldWithErrors {
display:block;
padding:0.2em;
textarea, input {
border:solid 1px Red !important;
}
}
label {
.fieldWithErrors {
display: inline;
}
}
.errorExplanation {
border-radius:6px;
-moz-border-radius:6px;
font-weight: normal;
margin:20px 0 30px;
}
#error,#hidden_request {
font-weight: bold;
padding:0.5em;
}
label small{
text-transform: none;
}
/* Pagination */
div.pagination {
text-align:center;
padding-top:0.3em;
.current {
padding:0 0.6em 0.1em;
}
.disabled {
padding:0 0.6em 0.1em;
}
a, a:visited {
text-decoration:none;
padding:0 0.6em 0.1em;
}
}
.pretitle {
margin-bottom: -0.5em;
color: #666;
}
/* Search result highlighting */
.highlight {
background:#FF0;
}
/* Skip to links for keyboard users */
.skip-to-link {
&:focus {
padding: 0.5em 0.8em;
background-color: #333;
color: #fff;
}
}
/*
* Action menus
*/
.action-menu__button {
position: relative;
padding-right: 1.5em;
&:hover,
&:active,
&:focus {
outline: 0;
color: #333333;
&:after {
border-top-color: #bbb;
}
}
&:focus {
outline: auto 2px Highlight;
outline: auto 5px -webkit-focus-ring-color;
}
&:after {
border-color: #d8d8d8 transparent transparent transparent;
right: 0;
border-width: 0.38889rem;
margin-top: -0.13889rem;
border-style: solid;
content: "";
display: block;
height: 0;
position: absolute;
top: 50%;
width: 0;
}
}
.action-menu__menu {
font-size: 0.875em;
background-color: #fff;
border: 1px solid #ccc;
&:after,
&:before {
display: block;
content: " ";
height: 0;
width: 0;
position: absolute;
}
&:after {
border: inset 7px;
left: 8px;
right: auto;
top: -14px;
border-color: transparent transparent #ccc transparent;
z-index: 60;
}
&:before {
border: inset 6px;
right: auto;
left: 9px;
top: -12px;
border-bottom-style: solid;
border-color: transparent transparent #fff transparent;
z-index: 61;
}
li {
cursor: auto;
line-height: 1.5em;
&:hover,
&:focus {
background-color: transparent;
}
}
a {
text-decoration: none;
color: #333;
&:hover,
&:active,
&:focus {
text-decoration: underline;
}
}
.action-menu__info-link {
a {
font-size: 0.625em; //10px
text-transform: uppercase;
font-weight: 700;
display: inline-block;
line-height: 2.4em; //24px
margin-left: 0.8em;
background-color: rgba(0,0,0,0.05);
border-radius: 3px;
padding: 0 0.8em;
color: #1568ae;
letter-spacing: 0.1em;
position: relative;
top: -3px;
}
}
}
.request-header__action-bar__actions {
.action-menu__menu {
@include respond-min( $main_menu-mobile_menu_cutoff ){
&:before {
right: 9px;
left: auto;
}
&::after {
right: 8px;
left: auto;
}
}
}
}
.action-menu__menu__role-name {
font-weight: bold;
}
.action-menu__menu__item {
border-bottom: 1px solid #e9e9e9;
color: #777;
&:last-child {
border: 0;
}
}
.inner-canvas {
background-color: white;
}
.inner-canvas-header {
background-color: #e6e4df;
}
.inner-canvas-header {
h1 {
font-size: 2.2em;
font-weight: bold;
@include respond-min( 50em ){
font-size: 3em;
}
}
}
.button:visited {
//Foundation doesn't define a :visited selector style
color: #ffffff;
}
.button-unstyled {
//completely remove all of Foundation's styles
background-color: transparent;
padding: 0;
color: inherit;
font-family: inherit;
text-align: inherit;
cursor: pointer;
position: inherit;
text-decoration: inherit;
margin: inherit;
display: inline;
transition: inherit;
font-size: inherit;
font-weight: inherit;
line-height: inherit;
border-radius: inherit;
border: inherit;
//make it have the appearance of a link
color: #1567ae;
text-decoration: underline;
&:hover,
&:active,
&:focus {
color: #333;
background-color: transparent;
}
}
button,
.button {
&:disabled, {
background-color: #e9e9e9;
border: 0;
box-shadow: none;
cursor: default;
opacity: 0.7;
&:hover,
&:active,
&:focus {
background-color: #e9e9e9;
}
}
}
.button--full-width {
width: 100%;
text-align: center;
}