Instruction stringlengths 14 778 | input_code stringlengths 0 4.24k | output_code stringlengths 1 5.44k |
|---|---|---|
Update grantnav with new data | # grantnav live
grantnav:
allowedhosts: '.live.threesixtygiving.uk0.bigv.io,.threesixtygiving.org'
server_size: large
deploy_mode: list
deploys:
new:
datadate: '2017-06-07'
branch: 'iteration07.6'
dataselection: acceptable_license_valid
current:
datadate: '2017-06-07'
branch: 'iteration07.6'
dataselection: acceptable_license_valid
old:
datadate: '2017-05-09'
branch: 'iteration07.6'
dataselection: acceptable_license_valid
piwik:
url: '//mon.opendataservices.coop/piwik/'
site_id: '9'
| # grantnav live
grantnav:
allowedhosts: '.live.threesixtygiving.uk0.bigv.io,.threesixtygiving.org'
server_size: large
deploy_mode: list
deploys:
new:
datadate: '2017-07-03'
branch: 'iteration07.6'
dataselection: acceptable_license_valid
current:
datadate: '2017-07-03'
branch: 'iteration07.6'
dataselection: acceptable_license_valid
old:
datadate: '2017-06-07'
branch: 'iteration07.6'
dataselection: acceptable_license_valid
piwik:
url: '//mon.opendataservices.coop/piwik/'
site_id: '9'
|
Add macro to filter minions enabled in properties | # Set of macros to work with pillars.
###############################################################################
# Macro to filter list of assigned minions by `enabled_minion_hosts`.
# TODO: This is a hacky macro.
# The output is indented according to assumed position in
# Jinja template, specifically:
# system_host_roles:
# name_role:
# assigned_hosts:
# {# filter_assigned_hosts_by_enabled_minion_hosts #}
{% macro filter_assigned_hosts_by_minion_hosts_enabled_in_properties(assigned_minion_list, props) %}
[
{% for selected_minion_id in assigned_minion_list %}
{% if selected_minion_id in props['enabled_minion_hosts'].keys() %}
{{ selected_minion_id }}
{% if not loop.last %}
,
{% endif %}
{% endif %}
{% endfor %}
]
{% endmacro %}
###############################################################################
# EOF
###############################################################################
| |
Add an ssl state to manage cert permissions | # Copyright 2012-2013 Hewlett-Packard Development Company, L.P.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
ssl-cert:
group:
- present
/etc/ssl/certs:
file.directory:
- mode: 755
/etc/ssl/private:
file.directory:
- group: ssl-cert
- mode: 750
- require:
- group: ssl-cert
| |
Decrease bottom padding of alerts. | // -----------------------------------------------------------------------------
// Alerts
// -----------------------------------------------------------------------------
.alert
@extend %rounded-corners
clear: both
margin: 10px 0
padding: 15px 15px 15px 45px
position: relative
&:before
height: 18px
left: 15px
position: absolute
top: 12px
width: 20px
.alert--success
background: lighten($green, 50%)
.alert--error
background: lighten($red, 25%)
.alert--warning
background: lighten($orange, 30%)
| // -----------------------------------------------------------------------------
// Alerts
// -----------------------------------------------------------------------------
.alert
@extend %rounded-corners
clear: both
margin: 10px 0
padding: 15px 15px 13px 45px
position: relative
&:before
height: 18px
left: 15px
position: absolute
top: 12px
width: 20px
.alert--success
background: lighten($green, 50%)
.alert--error
background: lighten($red, 25%)
.alert--warning
background: lighten($orange, 30%)
|
Add breakpoint for pagination link | .pagination-link
+media(max-width 830px)
+shift(0.5)
+shift(3.03)
font-family: CamptonBook
background-color: white
border: 1px solid #0060ff
border-radius: 2px
max-width: 17.4em
padding:
top: .5em
bottom: .5em
margin:
bottom: ($large-margin + .2em)
&:first-of-type
float: left
a
padding:
top: .5em
bottom: .5em
left: .8em
right: .8em
color: #0060ff
font-size: 1.1em
box-shadow: 0px 3px 0px rgba(#F6F6F6, .5)
| .pagination-link
+media(max-width 830px)
+shift(0.5)
+media(max-width 1250px)
+shift(1)
+shift(3.03)
font-family: CamptonBook
background-color: white
border: 1px solid #0060ff
border-radius: 2px
max-width: 17.4em
padding:
top: .5em
bottom: .5em
margin:
bottom: ($large-margin + .2em)
&:first-of-type
float: left
a
padding:
top: .5em
bottom: .5em
left: .8em
right: .8em
color: #0060ff
font-size: 1.1em
box-shadow: 0px 3px 0px rgba(#F6F6F6, .5)
|
Add styling for post view link. | .post__meta
+font-size(13)
color: $feature-copy
&.text-icon--clock:before
+font-size(22)
margin-right: 0.2em
position: relative
top: 2px
.user__username--link
color: $header-grey
font-weight: bold
.timeago
margin: 0 0.25em
.post-stats__icon
margin-right: -20px
width: 60px
.post-stats__icon
+font-size(13)
color: $feature-copy
font-weight: bold
line-height: 1.5em
text-align: center
&:before
+font-size(35)
display: block
font-weight: normal
&.no-comments
opacity: 0.4
position: relative
&:after
+transform(rotateZ(40deg))
background: $feature-copy
content: ' '
position: absolute
height: 2px
left: 19px
top: 11px
width: 22px | .post__meta
+font-size(13)
color: $feature-copy
&.text-icon--clock:before
+font-size(22)
margin-right: 0.2em
position: relative
top: 2px
.user__username--link
color: $header-grey
font-weight: bold
.timeago
margin: 0 0.25em
.post-stats
margin-left: 20px
position: relative
z-index: 2
.post-stats__icon
margin-right: -20px
width: 60px
.post-stats__icon
+font-size(13)
color: $feature-copy
font-weight: bold
line-height: 1.5em
text-align: center
&:before
+font-size(35)
display: block
font-weight: normal
&.no-comments
opacity: 0.4
position: relative
&:after
+transform(rotateZ(40deg))
background: $feature-copy
content: ' '
position: absolute
height: 2px
left: 19px
top: 11px
width: 22px
.post-view-link
+border-radius-each(0, 4, 4, 0)
+font-size(40)
@extend %chevron-right-before
@extend %transition--base
background: $details-panel-bg
color: $feature-copy
height: 100%
opacity: 0
position: absolute
right: 0
text-align: center
top: 0
width: 60px
z-index: 1
.card:hover &
opacity: 1
text-decoration: none
&:before
position: relative
top: 45%
|
Configure overflow on feedback info blocks | .feedback-info
background: $light-grey
border-radius: 2px
margin: 0.5em
padding: 0.5em
width: 30%
float: left
+max-width($small)
float: none
margin: 0.5em auto
width: 75%
&__label
display: inline-block
font-size: $f-small
font-weight: bold
&__value
color: $blue
font-size: $f-small
font-weight: bold
overflow: hidden | .feedback-info
background: $light-grey
border-radius: 2px
float: left
margin: 0.5em
overflow: hidden
padding: 0.5em
text-overflow: ellipsis
white-space: nowrap
width: 30%
+max-width($small)
float: none
margin: 0.5em auto
width: 75%
&__label
display: inline-block
font-size: $f-small
font-weight: bold
&__value
color: $blue
font-size: $f-small
font-weight: bold |
Cover :before and :after with box sizing. | *
@include box-sizing(border-box)
body
margin: 0
main
font: 1em "Helvetica Neue", sans-serif
margin: 0 auto
| *, *:before, *:after
@include box-sizing(border-box)
body
margin: 0
main
font: 1em "Helvetica Neue", sans-serif
margin: 0 auto
|
Add base play button styles. | $video-width: 720px !default
$video-aspect-ratio: 9 / 16 !default
.video-wrapper
max-width: $video-width
.video-inner
position: relative
padding:
bottom: $video-aspect-ratio * 100%
margin:
bottom: $site-padding * 2
video,
object,
.poster a,
.poster img
display: block
video,
object,
.poster
position: absolute
top: 0
left: 0
width: 100%
height: 100%
| $video-width: 720px !default
$video-aspect-ratio: 9 / 16 !default
.video-wrapper
max-width: $video-width
.video-inner
position: relative
padding:
bottom: $video-aspect-ratio * 100%
margin:
bottom: $site-padding * 2
video,
object,
.poster a,
.poster img
display: block
video,
object,
.poster
position: absolute
top: 0
left: 0
width: 100%
height: 100%
.play-button
pointer-events: none
position: absolute
top: 50%
left: 50%
margin:
top: -50px
left: -25px
width: 0
height: 0
border: 50px solid transparent
left-color: rgba(#000, 0.3)
|
Fix Tweet button width bug. | // Social Buttons
aside.social-buttons
visibility: hidden
height: 22px
// Like button is misaligned because it sets vertical-align: bottom
div.fb-like.fb_iframe_widget > span
vertical-align: initial !important
// Hide Google +1 button (it shows even if parent is hidden).
div.g-plus-container
display: inline-block
iframe
visibility: hidden !important
| // Social Buttons
aside.social-buttons
visibility: hidden
height: 22px
// Fix Tweet button width bug.
iframe
width: auto !important
// Like button is misaligned because it sets vertical-align: bottom
div.fb-like.fb_iframe_widget > span
vertical-align: initial !important
// Hide Google +1 button (it shows even if parent is hidden).
div.g-plus-container
display: inline-block
iframe
visibility: hidden !important
|
Add default background-color for homepage if no video or background available | html, body
// Sticky footer
height: 100%
// Action on text selection
*
&::selection
color: $white
background-color: $link-color
outline: none
a
transition: color .2s ease-in
.no-margin-bottom
margin-bottom: 0
.no-margin-left
margin-left: 0 !important
.no-margin
margin: 0 auto
.video-figure
margin: 0 auto 3rem auto
.dtable
display: table
.dtrow
display: table-row
.dtcell
display: table-cell
vertical-align: middle
/* Clearfix */
.clearfix
*zoom: 1
&:before, &:after
content: " "
display: table
&:after
clear: both
a.button
border-radius: 0 !important
// Maildev
.maildev
position: absolute
top: 20px
right: 0
// Overlay on video play
#shadow
&.night
position: absolute
top: 0
left: 0
right: 0
bottom: 0
z-index: 2
opacity: .8
background-color: #000
.mejs-container
z-index: 3
// Sticky footer
.wrapper
min-height: 100%
height: auto !important
height: 100%
margin: 0 auto (-$footer-height) | html, body
// Sticky footer
height: 100%
// Action on text selection
*
&::selection
color: $white
background-color: $link-color
outline: none
body.is-homepage
background-color: rgba($black, .55)
a
transition: color .2s ease-in
.no-margin-bottom
margin-bottom: 0
.no-margin-left
margin-left: 0 !important
.no-margin
margin: 0 auto
.video-figure
margin: 0 auto 3rem auto
.dtable
display: table
.dtrow
display: table-row
.dtcell
display: table-cell
vertical-align: middle
/* Clearfix */
.clearfix
*zoom: 1
&:before, &:after
content: " "
display: table
&:after
clear: both
a.button
border-radius: 0 !important
// Maildev
.maildev
position: absolute
top: 20px
right: 0
// Overlay on video play
#shadow
&.night
position: absolute
top: 0
left: 0
right: 0
bottom: 0
z-index: 2
opacity: .8
background-color: #000
.mejs-container
z-index: 3
// Sticky footer
.wrapper
min-height: 100%
height: auto !important
height: 100%
margin: 0 auto (-$footer-height) |
Fix overflow in bulma columns. | @import "~font-awesome/scss/_variables"
$fa-font-path: "~font-awesome/fonts"
@import "~font-awesome/scss/_mixins"
@import "~font-awesome/scss/_path"
@import "~font-awesome/scss/_core"
@import "~font-awesome/scss/_larger"
@import "~font-awesome/scss/_fixed-width"
@import "~font-awesome/scss/_list"
@import "~font-awesome/scss/_bordered-pulled"
@import "~font-awesome/scss/_animated"
@import "~font-awesome/scss/_rotated-flipped"
@import "~font-awesome/scss/_stacked"
@import "~font-awesome/scss/_icons"
// Custom variables go here.
$primary: #58bae1 // Worona blue
@import "~bulma/sass/utilities/_all"
// $link-visited: $link
@import "~bulma/sass/base/_all"
@import "~bulma/sass/elements/_all"
@import "~bulma/sass/components/_all"
@import "~bulma/sass/grid/_all"
@import "~bulma/sass/layout/_all"
| @import "~font-awesome/scss/_variables"
$fa-font-path: "~font-awesome/fonts"
@import "~font-awesome/scss/_mixins"
@import "~font-awesome/scss/_path"
@import "~font-awesome/scss/_core"
@import "~font-awesome/scss/_larger"
@import "~font-awesome/scss/_fixed-width"
@import "~font-awesome/scss/_list"
@import "~font-awesome/scss/_bordered-pulled"
@import "~font-awesome/scss/_animated"
@import "~font-awesome/scss/_rotated-flipped"
@import "~font-awesome/scss/_stacked"
@import "~font-awesome/scss/_icons"
// Custom variables go here.
$primary: #58bae1 // Worona blue
@import "~bulma/sass/utilities/_all"
// $link-visited: $link
@import "~bulma/sass/base/_all"
@import "~bulma/sass/elements/_all"
@import "~bulma/sass/components/_all"
@import "~bulma/sass/grid/_all"
@import "~bulma/sass/layout/_all"
.column
padding: .75rem 0
.columns
margin-left: 0
margin-right: 0
|
Fix uneven vertical spacing around <sup> and <sub> | $body_font_family: "Lucida Grande", Verdana, Arial, Helvetica, sans-serif
body
margin: 0
font: 13px/20px $body_font_family
h1
line-height: 1em
img
border-style: none
a
color: #63A0C9
table.default
border: 0
border-collapse: collapse
thead
th
background: #5DA1CB
border: 1px solid #528DC3
a
color: white
td,th
padding: 2px 4px
td
vertical-align: top
border: 1px solid #ddd
tr.odd
td,th
background-color: #eee
.tar
text-align: right
.tal
text-align: left
.tac
text-align: center
.clear
clear: both
.hidden
display: none
| $body_font_family: "Lucida Grande", Verdana, Arial, Helvetica, sans-serif
body
margin: 0
font: 13px/20px $body_font_family
h1
line-height: 1em
img
border-style: none
a
color: #63A0C9
sub, sup
line-height: 1
table.default
border: 0
border-collapse: collapse
thead
th
background: #5DA1CB
border: 1px solid #528DC3
a
color: white
td,th
padding: 2px 4px
td
vertical-align: top
border: 1px solid #ddd
tr.odd
td,th
background-color: #eee
.tar
text-align: right
.tal
text-align: left
.tac
text-align: center
.clear
clear: both
.hidden
display: none
|
Add variables for navbar and preloader | /* Base Variables */
$line-height: 1.6
$font-size-small: 13px
$font-size-medium: 16px
$font-size-large: 20px
/* Content */
$thread-width: 236px
$thread-height: 450px
$thread-line-height: 1.618
$board-color: $black
$board-post-color: $grey-dark
$header-width: 992px
$header-height: 60px
$settings-color: shade($grey-hightlight, 30%)
$settings-font-size-ratio: 1.2
$settings-font-size-large: $font-size-large * $settings-font-size-ratio
$settings-font-size-medium: $font-size-medium * $settings-font-size-ratio
$settings-font-size-small: $font-size-small * $settings-font-size-ratio
| /* Base Variables */
$line-height: 1.6
$font-size-small: 13px
$font-size-medium: 16px
$font-size-large: 20px
/* Content */
$thread-width: 236px
$thread-height: 450px
$thread-line-height: 1.618
$board-color: $black
$board-post-color: $grey-dark
$header-width: 992px
$header-height: 60px
$header-icon-size: 20px
$settings-color: shade($grey-highlight, 30%)
$settings-font-size-ratio: 1.2
$settings-font-size-large: $font-size-large * $settings-font-size-ratio
$settings-font-size-medium: $font-size-medium * $settings-font-size-ratio
$settings-font-size-small: $font-size-small * $settings-font-size-ratio
$navbar-width: 385px
$navbar-height: calc(100vh - #{$header-height})
$navbar-icon-size: 18px
$navbar-button-effect-amount: 20%
// $preloader-color-inner: $primary
// $preloader-color-middle: adjust-hue($primary, 120deg)
// $preloader-color-outer: adjust-hue($primary, -120deg)
$preloader-base-color: $primary-light
$preloader-color-outer: darken($preloader-base-color, 25%)
$preloader-color-middle: darken($preloader-base-color, 10%)
$preloader-color-inner: $preloader-base-color
$preloader-arc-width: 3px
$preloader-spin-multiplier: 1
$preloader-size: 150px
$preloader-text-box-size: 400px
|
Use mixin for overview icon. | #overview
ul
+no-bullets
+horizontal-list
li#accounting,
li#invoicing,
li#basic_claims_data
width: 120px
li
background: no-repeat top left
padding-left: 58px
padding-right: 40px
min-height: 58px
a
border-bottom: 1px solid black
display: block
&#overview
display: none
&#store
background-image: url(/images/48x48/store.png)
&#accounting
background-image: url(/images/48x48/accounting.png)
&#invoicing
background-image: url(/images/48x48/invoicing.png)
&#basic_claims_data
background-image: url(/images/48x48/basic_claims_data.png)
&#user_settings
background-image: url(/images/48x48/user_settings.png)
ul
width: inherit
margin-top: 5px
li
display: block
float: none
padding-left: 0px
width: inherit
min-height: 1em
a
border-bottom: none
| @mixin icon-48($ident)
&##{$ident}
background-image: url("/images/48x48/#{$ident}.png")
#overview
ul
+no-bullets
+horizontal-list
li#accounting,
li#invoicing,
li#basic_claims_data
width: 120px
li
background: no-repeat top left
padding-left: 58px
padding-right: 40px
min-height: 58px
a
border-bottom: 1px solid black
display: block
&#overview
display: none
+icon-48('store')
+icon-48('accounting')
+icon-48('invoicing')
+icon-48('basic_claims_data')
+icon-48('user_settings')
ul
width: inherit
margin-top: 5px
li
display: block
float: none
padding-left: 0px
width: inherit
min-height: 1em
a
border-bottom: none
|
Update Bucket Component to flexbox version | // *************************************
//
// Bucket
// -> Based on:
// * http://jsfiddle.net/necolas/rZvEF/
//
// -------------------------------------
// Template (Haml)
// -------------------------------------
//
// .bucket[.bucket--flag]
// .bucket-media
// / ...
// .bucket-content
// / ...
//
// *************************************
.bucket
@extend .group
// -------------------------------------
// Modifiers
// -------------------------------------
// ----- Flag ----- //
.bucket--flag
display: table
.bucket-content
vertical-align: middle
// -------------------------------------
// Scaffolding
// -------------------------------------
// ----- Content ----- //
.bucket-content
display: table-cell
width: 10000px
// ----- Media ----- //
.bucket-media
float: left
margin-right: $b-space
> img
display: block
max-width: none
| // *************************************
//
// Bucket
// -> Media-supported content
// CodePen: http://codepen.io/johndjameson/pen/saEDx
//
// -------------------------------------
// Template (Haml)
// -------------------------------------
//
// .bucket[.bucket--flag]
// .bucket-media
// / ...
// .bucket-content
// / ...
//
// *************************************
.bucket
display: flex
// -------------------------------------
// Modifiers
// -------------------------------------
// ----- Flag ----- //
.bucket--flag
align-items: center
// -------------------------------------
// Scaffolding
// -------------------------------------
// ----- Content ----- //
.bucket-content
flex-grow: 1
// ----- Media ----- //
.bucket-media
flex-shrink: 0
margin-right: $b-space
> img
display: block
|
Fix broken diff lines in Firefox | .diff
padding-left: $diff-vertical-padding
line-height: 1.4 !important
& + &
margin-top: $wrapper-default-padding / 2
.diff__meta
color: $content-border-color
.diff__file
background: $default-text-color
color: #fff
margin: (-1 * $diff-vertical-padding) (-1 * $diff-horizontal-padding)
padding: $diff-vertical-padding $diff-horizontal-padding
border-radius: $diff-border-radius
.diff__added-line
display: inline-block
box-sizing: content-box
width: 100%
margin: -1px 0 -1px -1 * $diff-horizontal-padding
padding: 1px 0 1px $diff-horizontal-padding
background: $diff-green
color: #fff
b
font: inherit
color: lighten($diff-green, 15%)
.diff__added-line--first
margin-top: -1 * $diff-vertical-padding
padding-top: $diff-vertical-padding
border-top-left-radius: $diff-border-radius
border-top-right-radius: $diff-border-radius
.diff__added-line--last
margin-bottom: -1 * $diff-vertical-padding
padding-bottom: $diff-vertical-padding
border-bottom-right-radius: $diff-border-radius
border-bottom-left-radius: $diff-border-radius
| .diff
padding-left: $diff-vertical-padding
line-height: 1.35 !important
& + &
margin-top: $wrapper-default-padding / 2
.diff__meta
color: $content-border-color
.diff__file
background: $default-text-color
color: #fff
margin: (-1 * $diff-vertical-padding) (-1 * $diff-horizontal-padding)
padding: $diff-vertical-padding $diff-horizontal-padding
border-radius: $diff-border-radius
.diff__added-line
display: inline-block
box-sizing: content-box
width: 100%
margin: -1px 0 -1px -1 * $diff-horizontal-padding
padding: 1px 0 1px $diff-horizontal-padding
background: $diff-green
color: #fff
b
font: inherit
color: lighten($diff-green, 15%)
.diff__added-line--first
margin-top: -1 * $diff-vertical-padding
padding-top: $diff-vertical-padding
border-top-left-radius: $diff-border-radius
border-top-right-radius: $diff-border-radius
.diff__added-line--last
margin-bottom: -1 * $diff-vertical-padding
padding-bottom: $diff-vertical-padding
border-bottom-right-radius: $diff-border-radius
border-bottom-left-radius: $diff-border-radius
|
Fix reveal modal top position | dialog, .reveal-modal
position: fixed
margin-left: -48%
top: 0px !important
transition: top .25s ease
width: 96%
&.open
top: 100px !important
dialog .close-reveal-modal, .reveal-modal .close-reveal-modal
right: 7px
top: -5px
h1
font-size: 1.6rem
font-weight: normal
margin-bottom: 10px
| dialog, .reveal-modal
position: fixed
margin-left: -48%
top: 0px !important
transition: top .25s ease
width: 96%
&.open
top: 60px !important
dialog .close-reveal-modal, .reveal-modal .close-reveal-modal
right: 7px
top: -5px
h1
font-size: 1.6rem
font-weight: normal
margin-bottom: 10px
|
Fix wrong CSS URL for some jquery-ui components. | @import "jquery.ui.datepicker"
@import "jquery.ui.slider"
@import "back-all/jquery-ui-1.10.3.blitzer"
@import "back-all/jquery.autocomplete"
@import "back-all/jquery.tagsinput"
@import "twitter/bootstrap"
@import "twitter/bootstrap-responsive"
@import "back-all/main" | @import "jquery.ui.datepicker.css"
@import "jquery.ui.slider.css"
@import "back-all/jquery-ui-1.10.3.blitzer"
@import "back-all/jquery.autocomplete"
@import "back-all/jquery.tagsinput.css"
@import "twitter/bootstrap"
@import "twitter/bootstrap-responsive"
@import "back-all/main" |
Disable active effect for list-menu | ul > li, ol > li
margin-left: $spacing-unit
dl > dt
font-weight: $font-weight-bold
dd + dt
margin-top: halve($spacing-unit)
%list-reset,
.list-reset
padding-left: 0
list-style: none
> li
margin-left: 0
%list-inline,
.list-inline
@extend %list-reset
margin-bottom: 0
margin-left: quarter($spacing-unit) * -1
> li
display: inline-block
padding-left: quarter($spacing-unit)
padding-right: quarter($spacing-unit)
%list-menu,
.list-menu
@extend %list-reset
margin-top: quarter($spacing-unit) * -1
> li > a
$link-menu-vertical-size: quarter($spacing-unit) * $link-menu-vertical-ratio
display: block
padding: quarter($spacing-unit)
padding-top: $link-menu-vertical-size + $link-menu-vertical-size * (1 - $link-menu-vertical-ratio)
padding-bottom: $link-menu-vertical-size - $link-menu-vertical-size * (1 - $link-menu-vertical-ratio)
border-radius: $border-radius-base
text-decoration: none
&:hover
color: $link-menu-color
background: $link-menu-background
| ul > li, ol > li
margin-left: $spacing-unit
dl > dt
font-weight: $font-weight-bold
dd + dt
margin-top: halve($spacing-unit)
%list-reset,
.list-reset
padding-left: 0
list-style: none
> li
margin-left: 0
%list-inline,
.list-inline
@extend %list-reset
margin-bottom: 0
margin-left: quarter($spacing-unit) * -1
> li
display: inline-block
padding-left: quarter($spacing-unit)
padding-right: quarter($spacing-unit)
%list-menu,
.list-menu
@extend %list-reset
margin-top: quarter($spacing-unit) * -1
> li > a
$link-menu-vertical-size: quarter($spacing-unit) * $link-menu-vertical-ratio
display: block
padding: quarter($spacing-unit)
padding-top: $link-menu-vertical-size + $link-menu-vertical-size * (1 - $link-menu-vertical-ratio)
padding-bottom: $link-menu-vertical-size - $link-menu-vertical-size * (1 - $link-menu-vertical-ratio)
border-radius: $border-radius-base
text-decoration: none
&:hover
color: $link-menu-color
background: $link-menu-background
@if $link-active
&:active
top: 0px
|
Fix overlay cue button z-index issue | // overlay
body.layout-overlay
#videos-grid
article.video
padding: 0
button.cue
right: 4px
header
margin-top: 0
position: absolute
top: 0
left: 0
padding: 5px
height: 100%
width: 100%
background-color: rgba($white, .8)
text-shadow: 0 0 2px $white
opacity: 0
transition: opacity .3s
&:hover
opacity: 1
h6
color: darken($light, 15%)
// sticker
body.layout-sticker
#videos-grid
article.video
padding: 0
button.cue
right: 4px
header
position: absolute
top: 0
left: 0
padding: 5px
margin-top: 5px
max-width: 95%
background-color: rgba($white, .8)
box-shadow: 0 0 1rem rgba($black, .3)
h6
color: darken($light, 20%)
| // overlay
body.layout-overlay
#videos-grid
article.video
padding: 0
button.cue
z-index: 1
right: 4px
&:hover~header
opacity: 1
header
margin-top: 0
position: absolute
top: 0
left: 0
padding: 5px
height: 100%
width: 100%
background-color: rgba($white, .8)
text-shadow: 0 0 2px $white
opacity: 0
transition: opacity .3s
&:hover
opacity: 1
h6
color: darken($light, 15%)
// sticker
body.layout-sticker
#videos-grid
article.video
padding: 0
button.cue
right: 4px
header
position: absolute
top: 0
left: 0
padding: 5px
margin-top: 5px
max-width: 95%
background-color: rgba($white, .8)
box-shadow: 0 0 1rem rgba($black, .3)
h6
color: darken($light, 20%)
|
Use box-shadow compass mixin in icon-tooltip-popup. | // Styling from http://flowplayer.org/tools/demos/tooltip/index.html, 19.10.2010
// simple css-based tooltip
.tooltip
display:none
background: url(/images/jquery/tooltip/black_arrow.png)
font-size: 12px
height: 70px
width: 160px
padding: 25px
color: #fff
.icon-tooltip-popup
display: none
background-color: #000
color: #fff
border: 1px solid #cc9
padding: 3px
font-size: 13px
-moz-box-shadow: 2px 2px 11px #666
-webkit-box-shadow: 2px 2px 11px #666
| @import "compass/css3/box-shadow"
// Styling from http://flowplayer.org/tools/demos/tooltip/index.html, 19.10.2010
// simple css-based tooltip
.tooltip
display:none
background: url(/images/jquery/tooltip/black_arrow.png)
font-size: 12px
height: 70px
width: 160px
padding: 25px
color: #fff
.icon-tooltip-popup
display: none
background-color: #000
color: #fff
border: 1px solid #cc9
padding: 3px
font-size: 13px
+box-shadow(#666, 2px, 2px, 11px)
j
|
Change Pending order status from orange to black | +block(status)
font-weight: bold
+modifier(ok)
color: $app-color-green
+modifier(success)
color: $app-color-green
+modifier(approved)
color: $app-color-green
+modifier(critical)
color: $app-color-pink
+modifier(danger)
color: $app-color-pink
+modifier(rejected)
color: $app-color-pink
+modifier(error)
color: $app-color-pink
+modifier(warning)
color: $app-color-orange
+modifier(unknown)
color: $app-color-blue
+modifier(undecided)
color: $app-color-blue
+modifier(info)
color: $app-color-blue
+modifier(pending)
color: $app-color-orange
+modifier(working)
color: $app-color-green
+modifier(completed)
color: $app-color-green
+modifier(failed)
color: $app-color-pink
| +block(status)
font-weight: bold
+modifier(ok)
color: $app-color-green
+modifier(success)
color: $app-color-green
+modifier(approved)
color: $app-color-green
+modifier(critical)
color: $app-color-pink
+modifier(danger)
color: $app-color-pink
+modifier(rejected)
color: $app-color-pink
+modifier(error)
color: $app-color-pink
+modifier(warning)
color: $app-color-orange
+modifier(unknown)
color: $app-color-blue
+modifier(undecided)
color: $app-color-blue
+modifier(info)
color: $app-color-blue
+modifier(working)
color: $app-color-green
+modifier(completed)
color: $app-color-green
+modifier(failed)
color: $app-color-pink
|
Use flex container to display author photo | .author
border-style: solid
border-width: 0.1rem
border-radius: $input-border-radius
border-color: gray
padding: 0.2rem 0.2rem 0.2rem 0.2rem
h2
font-size: normal
font-weight: normal
margin-top: 0rem
margin-bottom: 0rem
margin-left: 0.5rem
strong
font-size: small
font-weight: normal
padding: 0.2rem 0.2rem 0.2rem 0.2rem
color: white
background-color: gray
border-radius: $input-border-radius
p
margin-top: 0rem
margin-bottom: 0rem
margin-left: 1rem
| .author
border-style: solid
border-width: 0.1rem
border-radius: $input-border-radius
border-color: gray
padding: 0.2rem 0.2rem 0.2rem 0.2rem
+flex-container(horizontal)
&__photo
+flex(0 0 rem(80))
height: rem(80)
margin-right: 1rem
h2
font-size: normal
font-weight: normal
margin-top: 0rem
margin-bottom: 0rem
margin-left: 0.5rem
strong
font-size: small
font-weight: normal
padding: 0.2rem 0.2rem 0.2rem 0.2rem
color: white
background-color: gray
border-radius: $input-border-radius
p
margin-top: 0rem
margin-bottom: 0rem
margin-left: 1rem
|
Fix home page responsive design | #contents
section
:display flex
:align-items flex-start
:width 100%
.wrapper
:flex .7
> *:not( :last-child )
:margin-bottom spacing( 2 )
.icon
:align-self flex-end
:flex .3
li
a, span
:margin-left spacing()
+media( max-width $width )
:flex-direction column
.icon
:align-self center
:margin-top spacing( 2 )
:max-width 20rem
:width 75% | #contents
section
:display flex
:align-items flex-start
:width 100%
+media( max-width $width )
:flex-direction column
.icon
:align-self center
:margin-top spacing( 2 )
:max-width 20rem
:width 75%
.wrapper
:flex .7
> *:not( :last-child )
:margin-bottom spacing( 2 )
.icon
:align-self flex-end
:flex .3
li
a, span
:margin-left spacing() |
Fix flashing on filter change | @import "~style/utils/variables.sass"
@import "~style/utils/mixins.sass"
.loading-more-events-wrapper
padding: 50px
.container
background-color: $main-medium-gray
.filters-wrapper
width: 100%
height: $event-filters-height
background-color: $main-white
position: fixed
top: $header-height
z-index: 1
box-shadow: 0px 2px 3px -1px rgba(0,0,0,0.6)
.load-more-btn
text-align: center
padding: 30px 0
button
@include button($main-green, $main-white, $main-green)
text-transform: uppercase
font-size: 1em
| @import "~style/utils/variables.sass"
@import "~style/utils/mixins.sass"
.loading-more-events-wrapper
padding: 50px
.container
background-color: $main-medium-gray
min-height: 100vh
.filters-wrapper
width: 100%
height: $event-filters-height
background-color: $main-white
position: fixed
top: $header-height
z-index: 1
box-shadow: 0px 2px 3px -1px rgba(0,0,0,0.6)
.load-more-btn
text-align: center
padding: 30px 0
button
@include button($main-green, $main-white, $main-green)
text-transform: uppercase
font-size: 1em
|
Update cursor to default on bullets and title on App | @import 'styles/animations'
@import 'styles/colors'
.header, .menu
margin-top: 5rem
.header h1
animation: fade 1s ease-in-out
.menu
a
margin: 0 1.5rem
margin-bottom: 1.2rem
transition: .5s ease
&:hover
color: $activeColor
li
font-size: .9rem
letter-spacing: .1em
justify-content: center
span
font-size: 1rem
justify-content: center
animation: fade 2s ease-in-out | @import 'styles/animations'
@import 'styles/colors'
.header, .menu
margin-top: 5rem
.header h1
cursor: default
animation: fade 1s ease-in-out
.menu
a
margin: 0 1.5rem
margin-bottom: 1.2rem
transition: .5s ease
&:hover
color: $activeColor
li
font-size: .9rem
letter-spacing: .1em
justify-content: center
span
font-size: 1rem
cursor: default
justify-content: center
animation: fade 2s ease-in-out |
Make image size change relative to view width | .thumb-container
max-width: 750px
margin: 0px auto 0px
padding: 30px
+clearfix
.thumb-unit
box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23)
cursor: pointer
display: block
width: 600px
height: 300px
margin: 0px auto 30px
position: relative
overflow: hidden
background:
position: center center
repeat: no-repeat
size: cover
.thumb-overlay
+position(absolute, 100% 0px null 0px)
height: 100%
background: fade-out(#333, 0.5)
text-align: center
//+transition
+display(flex)
+align-items(center)
+justify-content(space-around)
strong
display: block
padding: 20px
color: white
line-height: 1.2
font:
size: 24px
weight: 300
&:hover .thumb-overlay
+position(absolute, 0px 0px null 0px)
@media (max-width: 768px)
.thumb-container
max-width: 80vw
.thumb-unit
width: 80vw
height: 250px
| .thumb-container
max-width: 750px
margin: 0px auto 0px
padding: 30px
+clearfix
.thumb-unit
box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23)
cursor: pointer
display: block
width: 600px
height: 300px
margin: 0px auto 30px
position: relative
overflow: hidden
background:
position: center center
repeat: no-repeat
size: cover
.thumb-overlay
+position(absolute, 100% 0px null 0px)
height: 100%
background: fade-out(#333, 0.5)
text-align: center
//+transition
+display(flex)
+align-items(center)
+justify-content(space-around)
strong
display: block
padding: 20px
color: white
line-height: 1.2
font:
size: 24px
weight: 300
&:hover .thumb-overlay
+position(absolute, 0px 0px null 0px)
@media (max-width: 768px)
.thumb-container
max-width: 80vw
.thumb-unit
width: 80vw
height: 40vw
|
Fix small device width issue on google map embedding | // Place all the styles related to the map controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
@import big-input
.map-container
width: 100%
map, .angular-google-map-container, google-map, .angular-google-map
display: block
height: 100%
img // https://github.com/zurb/foundation/issues/112
max-width: none
height: auto
#pac-input
@include big-input(#888, #333, $clr-brick)
@include big-input-static
font-size: 1.5rem
background: rgba(255,255,255,0.85)
width: 50%
margin-top: 1.2rem
@media all and (max-width: 768px)
width: 80%
&:active, &:focus, &.active
background: rgba(255,255,255, 1)
| // Place all the styles related to the map controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
@import big-input
.map-container
width: 100%
map, .angular-google-map-container, google-map, .angular-google-map
display: block
height: 100%
width: 100%
img // https://github.com/zurb/foundation/issues/112
max-width: none
height: auto
#pac-input
@include big-input(#888, #333, $clr-brick)
@include big-input-static
font-size: 1.5rem
background: rgba(255,255,255,0.85)
width: 50%
margin-top: 1.2rem
@media all and (max-width: 768px)
width: 80%
&:active, &:focus, &.active
background: rgba(255,255,255, 1)
|
Add top when click on button | .button
@extend .radius
text-transform: uppercase
border-width: 0px
border-bottom: 2px $button-border-style
box-shadow: none
border-bottom-color: darken($primary-color, $button-border-color-darken)
&.success
border-bottom-color: darken($success-color, $button-border-color-darken)
&.alert
border-bottom-color: darken($alert-color, $button-border-color-darken)
&.secondary
border-bottom-color: darken($secondary-color, $button-border-color-darken)
| .button
@extend .radius
text-transform: uppercase
border-width: 0px
border-bottom: 2px $button-border-style
box-shadow: none
border-bottom-color: darken($primary-color, $button-border-color-darken)
&.success
border-bottom-color: darken($success-color, $button-border-color-darken)
&.alert
border-bottom-color: darken($alert-color, $button-border-color-darken)
&.secondary
border-bottom-color: darken($secondary-color, $button-border-color-darken)
&:active
position: relative
top: 2px
|
Hide the drag handler on mobile. | @import ../../styles/lib
.RegionTools
position: absolute
top: rem(5)
right: rem(5)
color: #aaa
.no-touch .RegionTools button:hover .SVGIcon > g
stroke: black
.RegionTools .DragHandler
transform: rotate(90deg)
cursor: move
.editor-region[data-num-blocks="1"] .DragHandler
display: none
.BlockPlaceholder + .RegionTools
display: none
.editor:not(.hasContent) .BlockRemove
display: none
@media(min-width: #{$break-2})
.no-touch .BlockRemove > .DeleteIcon
transform-origin: center center
transition-duration: $speed, $speed, $speed2
.no-touch .BlockRemove:hover > .DeleteIcon
transition-delay: 0.5s, 0.5s, (0.5s + $speed)
transform: rotate(360deg)
| @import ../../styles/lib
.RegionTools
position: absolute
top: rem(5)
right: rem(5)
color: #aaa
.no-touch .RegionTools button:hover .SVGIcon > g
stroke: black
.RegionTools .DragHandler
transform: rotate(90deg)
cursor: move
display: none
.no-touch .RegionTools .DragHandler
display: block
.editor-region[data-num-blocks="1"] .DragHandler
display: none
.BlockPlaceholder + .RegionTools
display: none
.editor:not(.hasContent) .BlockRemove
display: none
@media(min-width: #{$break-2})
.no-touch .BlockRemove > .DeleteIcon
transform-origin: center center
transition-duration: $speed, $speed, $speed2
.no-touch .BlockRemove:hover > .DeleteIcon
transition-delay: 0.5s, 0.5s, (0.5s + $speed)
transform: rotate(360deg)
|
Add custon forms from foundation | // Make sure the charset is set appropriately
@charset "UTF-8"
// This includes all of the foundation global elements that are needed to work with any of the other files.
@import foundation/variables
// Foundation Components
@import foundation/components/global
@import foundation/components/grid
@import foundation/components/visibility
@import foundation/components/block-grid
@import foundation/components/type
@import foundation/components/buttons
@import foundation/components/forms
//@import foundation/components/button-groups
@import foundation/components/dropdown-buttons
//@import foundation/components/split-buttons
//@import foundation/components/flex-video
//@import foundation/components/section
@import foundation/components/top-bar
//@import foundation/components/orbit
@import foundation/components/reveal
//@import foundation/components/joyride
@import foundation/components/clearing
@import foundation/components/alert-boxes
//@import foundation/components/breadcrumbs
//@import foundation/components/custom-forms
//@import foundation/components/keystrokes
//@import foundation/components/labels
//@import foundation/components/inline-lists
//@import foundation/components/pagination
@import foundation/components/panels
//@import foundation/components/pricing-tables
//@import foundation/components/progress-bars
//@import foundation/components/side-nav
//@import foundation/components/sub-nav
//@import foundation/components/switch
//@import foundation/components/magellan
@import foundation/components/tables
//@import foundation/components/thumbs
//@import foundation/components/tooltips
@import foundation/components/dropdown
| // Make sure the charset is set appropriately
@charset "UTF-8"
// This includes all of the foundation global elements that are needed to work with any of the other files.
@import foundation/variables
// Foundation Components
@import foundation/components/global
@import foundation/components/grid
@import foundation/components/visibility
@import foundation/components/block-grid
@import foundation/components/type
@import foundation/components/buttons
@import foundation/components/forms
//@import foundation/components/button-groups
@import foundation/components/dropdown-buttons
//@import foundation/components/split-buttons
//@import foundation/components/flex-video
//@import foundation/components/section
@import foundation/components/top-bar
//@import foundation/components/orbit
@import foundation/components/reveal
//@import foundation/components/joyride
@import foundation/components/clearing
@import foundation/components/alert-boxes
//@import foundation/components/breadcrumbs
@import foundation/components/custom-forms
//@import foundation/components/keystrokes
//@import foundation/components/labels
//@import foundation/components/inline-lists
//@import foundation/components/pagination
@import foundation/components/panels
//@import foundation/components/pricing-tables
//@import foundation/components/progress-bars
//@import foundation/components/side-nav
//@import foundation/components/sub-nav
//@import foundation/components/switch
//@import foundation/components/magellan
@import foundation/components/tables
//@import foundation/components/thumbs
//@import foundation/components/tooltips
@import foundation/components/dropdown
|
Align horizontally left and right parts in the nav bar | .navbar-nav.navbar-right
margin-right: 0
.navbar
.logo
position: relative
height: 38px
width: 160px
margin: 15px 0 0 15px
.logo-title
display: none
.logo-subtitle
position: absolute
bottom: 0
left: 44px
font-size: 10px
color: #000
font-weight: bold
img
vertical-align: top
.navbar-right
margin-right: 0 !important
.sign-in, .sign-out
color: #000 !important
transition: opacity .2s linear
&:hover
opacity: .6
| .navbar-nav.navbar-right
margin-right: 0
line-height: 28px
li
a
line-height: 28px
.navbar
.logo
position: relative
height: 38px
width: 160px
margin: 15px 0 0 15px
.logo-title
display: none
.logo-subtitle
position: absolute
bottom: 0
left: 44px
font-size: 10px
color: #000
font-weight: bold
img
vertical-align: top
.navbar-right
margin-right: 0 !important
.sign-in, .sign-out
color: #000 !important
transition: opacity .2s linear
&:hover
opacity: .6
|
Add 10px padding on .l-container. |
.l-container
display: flex
width: 1000px
margin: 0 auto
padding: 0 10px
#page
display: flex
min-height: 100%
min-height: calc(100vh - 40px)
#page-content
display: table-row
flex: 2
padding-top: 20px
section
display: table-row
|
.l-container
display: flex
width: 1000px
margin: 0 auto
padding: 10px
#page
display: flex
min-height: 100%
min-height: calc(100vh - 40px)
#page-content
display: table-row
flex: 2
padding-top: 20px
section
display: table-row
|
Add css styling for quotes. | ---
---
@import "../_sass/reset"
@import "../_sass/skin"
@import "../_sass/code-styles"
// media queries
@import "../_sass/base"
@import "../_sass/tablet"
@import "../_sass/desktop"
| ---
---
@import "../_sass/reset"
@import "../_sass/skin"
@import "../_sass/code-styles"
// media queries
@import "../_sass/base"
@import "../_sass/tablet"
@import "../_sass/desktop"
blockquote
background: #f9f9f9
border-left: 10px solid #ccc
margin: 1.5em 10px
padding: 0.5em 10px
quotes: none
blockquote p
display: inline
|
Fix typo with the core - content condensed submodule | //-------------------------------------
// Content
//-------------------------------------
// ----- Headings ----- //
h1, h2, h3,
h4, h5, h6
font-family: $c-header-fontFamily
font-weight: bold
h1, .c-h1, %c-h1
font-size: rem(40px)
h2, .c-h2, %c-h2
font-size: rem(35px)
h3, .c-h3, %c-h3
font-size: rem(30px)
h4, .c-h4, %c-h4
font-size: rem(25px)
h5, .c-h5, %c-h5
font-size: rem(20px)
h6, .c-h6, %c-h6
font-size: rem(16px)
// ----- Utilities ----- //
%c-center, .c-center
text-align: center
%c-condensed, .c-condensed
font-size: 85%
%c-lead, .c-lead
font-size: 125%
%c-shout, .c-shout
text-transform: uppercase
| //-------------------------------------
// Content
//-------------------------------------
// ----- Headings ----- //
h1, h2, h3,
h4, h5, h6
font-family: $c-header-fontFamily
font-weight: bold
h1, .c-h1, %c-h1
font-size: rem(40px)
h2, .c-h2, %c-h2
font-size: rem(35px)
h3, .c-h3, %c-h3
font-size: rem(30px)
h4, .c-h4, %c-h4
font-size: rem(25px)
h5, .c-h5, %c-h5
font-size: rem(20px)
h6, .c-h6, %c-h6
font-size: rem(16px)
// ----- Utilities ----- //
%c-center, .c-center
text-align: center
%c-condense, .c-condense
font-size: 85%
%c-lead, .c-lead
font-size: 125%
%c-shout, .c-shout
text-transform: uppercase
|
Add user styles - Was removed unconsciously | // Using Google Webfonts. Embrace the open source :)
@import url('https://fonts.googleapis.com/css?family=Lato:300,400,700,400italic')
@import url('https://fonts.googleapis.com/css?family=Arvo:400,700')
@import compass/reset
@import compass/utilities
@import compass/css3
@import 960/grid
$ninesixty-columns: 16
$images_path: "/assets/catarse/"
// Neighbor.ly configs
@import neighborly/config
@import miv/index
@import content/body
@import content/header
@import content/footer
//@import content/recommended_header
@import content/sidebar
@import content/explore
@import content/sessions
@import resources/projects/index
@import resources/projects/show
@import resources/projects/start
@import resources/projects/new
@import resources/projects/pending_backers
@import resources/projects/rewards
@import resources/backers/new
@import resources/backers/thank_you
@import resources/backers/create
//@import resources/static/default
//@import resources/static/about
//@import resources/users/show
@import resources/adm/adm
// Channels stylesheets
@import resources/channels/general
@import resources/channels/profile
@import resources/channels/about
// Neighbor.ly styles
@import neighborly/**/*
@import ./jquery-ui
| // Using Google Webfonts. Embrace the open source :)
@import url('https://fonts.googleapis.com/css?family=Lato:300,400,700,400italic')
@import url('https://fonts.googleapis.com/css?family=Arvo:400,700')
@import compass/reset
@import compass/utilities
@import compass/css3
@import 960/grid
$ninesixty-columns: 16
$images_path: "/assets/catarse/"
// Neighbor.ly configs
@import neighborly/config
@import miv/index
@import content/body
@import content/header
@import content/footer
//@import content/recommended_header
@import content/sidebar
@import content/explore
@import content/sessions
@import resources/projects/index
@import resources/projects/show
@import resources/projects/start
@import resources/projects/new
@import resources/projects/pending_backers
@import resources/projects/rewards
@import resources/backers/new
@import resources/backers/thank_you
@import resources/backers/create
//@import resources/static/default
//@import resources/static/about
@import resources/users/show
@import resources/adm/adm
// Channels stylesheets
@import resources/channels/general
@import resources/channels/profile
@import resources/channels/about
// Neighbor.ly styles
@import neighborly/**/*
@import ./jquery-ui
|
Add margin bottom 0 to widget form group | .widget-box
border: 1px #ccc solid
border-radius: 5px
margin-top: 20px
.form-group
padding: 0 10px
h2
background-color: #f4f4f4
border-bottom: 1px #ccc solid
font-size: 1.2rem !important
font-weight: normal
margin: 0 0 15px
padding: 8px 10px
border-radius: 5px 5px 0 0
&:first-child
margin-top: 0
p
margin-bottom: 10px
label
margin-bottom: 0
.widget-buttons
background-color: #e4e4e4
border-top: 1px #ccc solid
height: 51px
padding-top: 10px
border-radius: 0 0 5px 5px
.secondary
background-color: #bbb
color: #fff
&:hover
background-color: #aaa !important
.hide
display: none
.widget-buttons-bottom
margin-bottom: 0
a
position: relative
top: 6px
| .widget-box
border: 1px #ccc solid
border-radius: 5px
margin-top: 20px
.form-group
margin-bottom: 0
padding: 0 10px
h2
background-color: #f4f4f4
border-bottom: 1px #ccc solid
font-size: 1.2rem !important
font-weight: normal
margin: 0 0 15px
padding: 8px 10px
border-radius: 5px 5px 0 0
&:first-child
margin-top: 0
p
margin-bottom: 10px
label
margin-bottom: 0
.widget-buttons
background-color: #e4e4e4
border-top: 1px #ccc solid
height: 51px
padding-top: 10px
border-radius: 0 0 5px 5px
.secondary
background-color: #bbb
color: #fff
&:hover
background-color: #aaa !important
.hide
display: none
.widget-buttons-bottom
margin-bottom: 0
a
position: relative
top: 6px
|
Add datatables styles from express_blog | .dataTables_empty
padding: 8px 10px !important
[id*=_ellipsis]
display: block !important
margin: 0 -7px 0 -2px !important
| ul.quick-filters
font-size: 1.1rem
list-style: none
margin: 0
padding-bottom: 30px
li
display: inline
&.divider
border-right: 1px solid #bbb
margin: 0 10px 0 5px
div.dataTables_length label, div.dataTables_filter label, div.dataTables_info
font-size: 1.1rem
div.dataTables_filter input
margin-left: 5px
min-width: 250px
padding-left: 4px
div.dataTables_paginate
ul.pagination
li
a
background: none
font-size: 1.1rem
padding: 0 3px
&:hover, &.current
a
background: none
color: #26ade4
&.current
a
font-weight: bold
&.unavailable
display: none
.dataTables_processing
display: none !important
table.dataTable
&.hide-first-column
tr
th:first-child, td:first-child
display: none
tr
min-height: 72px
vertical-align: top
th
padding: 14px 10px
&:hover
td
.action-menu
visibility: visible
z-index: 999
&.even
td
background-color: #fbfbfb
td
font-size: 1.1rem
line-height: 1.3
padding: 8px 10px 28px
position: relative
abbr
font-size: 1.1rem
.action-menu
bottom: 5px
position: absolute
visibility: hidden
ul.inline-list
font-size: 0.95rem
white-space: nowrap
overflow: visible
li
display: inline
float: none
margin-left: 0
margin-right: 3px
&.hide
display: none
a
margin-right: 3px
a, span
display: inline
span
color: #999
font-weight: bold
.dataTables_empty
padding: 8px 10px !important
[id*=_ellipsis]
display: block !important
margin: 0 -7px 0 -2px !important
|
Add min-height to teacher card | .card
background-color: get-color(air)
border-radius: 4px
box-shadow: 0 1px 2px 0 get-color((color: dark, opacity: .1))
position: relative
transition: box-shadow .2s ease-in-out
width: 100%
&--school-big
margin-top: 45px
padding-top: 0
text-align: center
&--teacher
margin-top: 40px
padding-top: 0
text-align: center
&--list
float: right
margin-top: 0
width: calc(100% - 35px)
+grid-media($breakpoint-medium)
&--school
min-height: 300px
text-align: center
&--teacher
float: none
margin-top: 35px
padding-left: 0
width: 100%
+grid-media($breakpoint-normal)
margin-bottom: 0
| .card
background-color: get-color(air)
border-radius: 4px
box-shadow: 0 1px 2px 0 get-color((color: dark, opacity: .1))
position: relative
transition: box-shadow .2s ease-in-out
width: 100%
&--school-big
margin-top: 45px
padding-top: 0
text-align: center
&--teacher
margin-top: 40px
padding-top: 0
text-align: center
&--list
float: right
margin-top: 0
width: calc(100% - 35px)
+grid-media($breakpoint-medium)
&--school
min-height: 300px
text-align: center
&--teacher
float: none
margin-top: 35px
min-height: 220px
padding-left: 0
width: 100%
+grid-media($breakpoint-normal)
margin-bottom: 0
|
Update flash_errors stylesheet from mailyt. | // Snippet from Redmine.css
// Flash & error messages ***
#errorExplanation, div.flash, .nodata, .warning
padding: 4px 4px 4px 30px
margin-bottom: 12px
font-size: 1.1em
border: 2px solid
div.flash
margin-top: 8px
&.error
background: url(../../images/false.png) 8px 5px no-repeat
background-color: #ffe3e3
border-color: #dd0000
color: #550000
#errorExplanation
background: url(../../images/false.png) 8px 5px no-repeat
background-color: #ffe3e3
border-color: #dd0000
color: #550000
div.flash.notice
background: url(../../images/true.png) 8px 5px no-repeat
background-color: #dfffdf
border-color: #9fcf9f
color: #005f00
.nodata, .warning
text-align: center
background-color: #ffebc1
border-color: #fdbf3b
color: #a6750c
#errorExplanation ul
font-size: 0.9em
// End of Snippet | // Snippet from Redmine.css
// Flash & error messages ***
#errorExplanation, div.flash, .nodata, .warning
padding: 4px 4px 4px 30px
margin-bottom: 12px
font-size: 1.1em
border: 1px solid
+border-radius($border_radius)
div.flash
margin-top: 8px
&.error
background: url(../images/false.png) 8px 5px no-repeat
background-color: #ffe3e3
border-color: #550000
color: #550000
#errorExplanation
background: url(../images/false.png) 8px 5px no-repeat
background-color: #ffe3e3
border-color: #550000
color: #550000
div.flash.notice
background: url(../images/true.png) 8px 5px no-repeat
background-color: #dfffdf
border-color: #9fcf9f
color: #005f00
div.flash.alert
background: url(../images/false.png) 8px 5px no-repeat
background-color: #ffe3e3
border-color: #550000
color: #550000
.nodata, .warning
text-align: center
background-color: #ffebc1
border-color: #fdbf3b
color: #a6750c
#errorExplanation ul
font-size: 0.9em
// End of Snippet |
Make text links turquoise color for producers page | @import branding
@import mixins
.producers
@include fullwidthbg
background-image: url("/assets/producers/producers-pg-bg.jpg")
background-repeat: no-repeat | @import branding
@import mixins
.producers
@include fullwidthbg
background-image: url("/assets/producers/producers-pg-bg.jpg")
background-repeat: no-repeat
a
color: $clr-turquoise
&:hover, &:active, &:focus
color: $clr-turquoise-bright |
Add padding to mobile menu | @import './main.sass'
.mobile-menu
position: fixed
top: 0
left: 0
width: 100vw
height: 100vh
z-index: 4
-webkit-backdrop-filter: blur(10px)
background: transparentize($color-dark, .25)
opacity: 0
transition: opacity .5s
&.open
opacity: 1
| @import './main.sass'
.mobile-menu
position: fixed
top: 0
left: 0
width: 100vw
height: 100vh
z-index: 4
-webkit-backdrop-filter: blur(10px)
background: transparentize($color-dark, .25)
padding: 84px 10px 10px
padding: calc(68px + 2vh) 5vw 0
opacity: 0
transition: opacity .5s
&.open
opacity: 1
|
Add 'active' mode to top nav bar | .navigation
position: fixed
z-index: 1001
top: 0
left: 50%
transform: translateX(-50%)
margin: 0
list-style: none
display: flex
overflow: hidden
opacity: .25
li
display: inline-block
overflow: hidden
a
display: inline-block
font-family: Montserrat
font-size: 1.2em
color: $white
font-weight: 300
letter-spacing: .16666em
text-transform: uppercase
padding: 1.25rem 1.75rem
&.selected
font-weight: 600
#navigation-trigger
position: fixed
top: 0
left: 0
z-index: 1002
padding: 1.25rem 1.75rem
color: $white
font-size: 1.5em
cursor: pointer
| .navigation
position: fixed
z-index: 1001
top: 0
left: 50%
transform: translateX(-50%)
margin: 0
list-style: none
display: flex
overflow: hidden
opacity: .25
&.active
opacity: 1
li
display: inline-block
overflow: hidden
a
display: inline-block
font-family: Montserrat
font-size: 1.2em
color: $white
font-weight: 300
letter-spacing: .16666em
text-transform: uppercase
padding: 1.25rem 1.75rem
&.selected
font-weight: 600
#navigation-trigger
position: fixed
top: 0
left: 0
z-index: 1002
padding: 1.25rem 1.75rem
color: $white
font-size: 1.5em
cursor: pointer
|
Set scroll to geocoder list | .ng-geocoder__list
margin: 0
padding: 0
width: 100%
list-style: none
background: #fff
position: absolute
border-bottom-left-radius: 3px
border-bottom-right-radius: 3px
box-shadow: 0 1px 10px rgba(0, 0, 0, .1)
.ng-geocoder__list__item
cursor: pointer
overflow: hidden
padding: 10px 15px
&:not(:last-child)
border-bottom: 1px solid #ededed
&:hover
background: #f1f1f1
.ng-geocoder__list__item--focus
background: #ededed | .ng-geocoder__list
margin: 0
padding: 0
width: 100%
list-style: none
background: #fff
position: absolute
overflow-y: scroll
border-bottom-left-radius: 3px
border-bottom-right-radius: 3px
box-shadow: 0 1px 10px rgba(0, 0, 0, .1)
.ng-geocoder__list__item
cursor: pointer
overflow: hidden
padding: 10px 15px
&:not(:last-child)
border-bottom: 1px solid #ededed
&:hover
background: #f1f1f1
.ng-geocoder__list__item--focus
background: #ededed |
Revert primary color back to do gray | $color-primary: #FC4C02
@mixin transition($params)
transition: $params
-webkit-transition: $params
-moz-transition: $params
@mixin transform($params)
transform: $params
-webkit-transform: $params
-moz-transform: $params
| $color-primary: #222
@mixin transition($params)
transition: $params
-webkit-transition: $params
-moz-transition: $params
@mixin transform($params)
transform: $params
-webkit-transform: $params
-moz-transform: $params
|
Fix breadcrumb padding for non-links |
@import "compass/layout/sticky-footer"
@include sticky-footer(36px, "#root", "#root-footer", "#footer")
#primary-breadcrumb
.logo
margin-right: 2px
li
font-size: 20px
font-family: "Helvetica Neue", Helvetica, sans-serif
font-weight: 200
li + li:before
padding: 0 0 0 4px
content: '/'
.media
margin-bottom: 15px
.nav-tabs
margin-bottom: 15px
#footer
margin-top: 30px
.panel-heading
h1, h2, h3, h4, h5, h6
margin: 0
.has-error label
color: #b94a48
label
.optional, .required, .error
font-size: 0.85em
.optional, .required
font-size: 0.85em
&:before
content: '['
&:after
content: ']'
|
@import "compass/layout/sticky-footer"
@include sticky-footer(36px, "#root", "#root-footer", "#footer")
#primary-breadcrumb
.logo
margin-right: 2px
li
font-size: 20px
font-family: "Helvetica Neue", Helvetica, sans-serif
font-weight: 200
li + li:before
padding: 0 2px 0 4px
content: '/ '
.media
margin-bottom: 15px
.nav-tabs
margin-bottom: 15px
#footer
margin-top: 30px
.panel-heading
h1, h2, h3, h4, h5, h6
margin: 0
.has-error label
color: #b94a48
label
.optional, .required, .error
font-size: 0.85em
.optional, .required
font-size: 0.85em
&:before
content: '['
&:after
content: ']'
|
Tweak API, RSS icon positioning | // ===== sites#index ======
section#sites_index
table.overview
tr
th.name, td.name
width: 20%
th.description, td.description
width: 65%
th.launched, td.launched
width: 15%
table.feature_comparison
tr
th.name, td.name
width: 25%
th.platform, td.platform
width: 25%
th.platform_source, td.platform_source
width: 10%
text-align: center
th.api, td.api
width: 10%
text-align: center
th.rss, td.rss
width: 10%
text-align: center
th.index, td.index
width: 10%
text-align: center
th.details, td.details
width: 10%
text-align: center
img.api
margin-top: 5px
img.rss
margin-top: 3px
span.yes
color: green
span.no
color: red
span.open
color: green
span.closed
color: red
span.unsure
color: gray
dl.terms
margin-bottom: $baseline
dt
+multicolumn_width(1, 0px)
clear: left
float: left
font-weight: bold
margin-right: $h_space
text-align: right
dd
float: left
| // ===== sites#index ======
section#sites_index
table.overview
tr
th.name, td.name
width: 20%
th.description, td.description
width: 65%
th.launched, td.launched
width: 15%
table.feature_comparison
tr
th.name, td.name
width: 25%
th.platform, td.platform
width: 25%
th.platform_source, td.platform_source
width: 10%
text-align: center
th.api, td.api
width: 10%
text-align: center
th.rss, td.rss
width: 10%
text-align: center
th.index, td.index
width: 10%
text-align: center
th.details, td.details
width: 10%
text-align: center
img.api
margin-top: 6px
img.rss
margin-top: 7px
span.yes
color: green
span.no
color: red
span.open
color: green
span.closed
color: red
span.unsure
color: gray
dl.terms
margin-bottom: $baseline
dt
+multicolumn_width(1, 0px)
clear: left
float: left
font-weight: bold
margin-right: $h_space
text-align: right
dd
float: left
|
Add !important to hide and show | @import globals/variables
@import globals/mixins
@import components/buttons
@import components/forms
@import components/grid
@import components/typography
*
-moz-box-sizing: border-box
-webkit-box-sizing: border-box
box-sizing: border-box
::-moz-selection
background: lighten($whodini-green, 40%)
::selection
background: lighten($whodini-green, 40%)
body
background-color: #eee
padding-top: $base-line-height*2
// TODO: factor these out in favor of html5bp approach?
.hide
display: none
.show
display: block
| @import globals/variables
@import globals/mixins
@import components/buttons
@import components/forms
@import components/grid
@import components/typography
*
-moz-box-sizing: border-box
-webkit-box-sizing: border-box
box-sizing: border-box
::-moz-selection
background: lighten($whodini-green, 40%)
::selection
background: lighten($whodini-green, 40%)
body
background-color: #eee
padding-top: $base-line-height*2
// TODO: factor these out in favor of html5bp approach?
.hide
display: none!important
.show
display: block!important
|
Improve image padding in error text | .error-title
text-align: center
width: 100%
&__heading
color: $blue
font-size: $f-xl
font-weight: bold
line-height: $f-xl + 5
padding: 0.5em 0 0.75em
&__error-message
color: $dark-grey
font-size: $f-large
font-weight: bold
line-height: 1.5em
text-align: justify
h2
line-height: 3em
i
font-style: italic
ul
list-style: disc
margin: 0.5em 0 0.5em 1.5em
| .error-title
text-align: center
width: 100%
&__heading
color: $blue
font-size: $f-xl
font-weight: bold
line-height: $f-xl + 5
padding: 0.5em 0 0.75em
&__error-message
color: $dark-grey
font-size: $f-large
font-weight: bold
line-height: 1.5em
text-align: justify
h2
line-height: 3em
i
font-style: italic
ul
list-style: disc
margin: 0.5em 0 0.5em 1.5em
img
padding: 0 0 1em 1em |
Adjust date color for posts | #main, .posts
+outer-container
.posts p, article.article-detail, .index-article
+shift(2)
+span-columns(8)
.soundcloud-player-small
margin:
top: $small-margin
.index-article
margin:
bottom: ($small-margin + $medium-margin)
.topic-list
color: $medium-gray
line-height: 1.8em
.post-title
a
color: darken($medium-gray, 30%)
font-size: 1.7em
.posts, .article-detail
p
color: darken($medium-gray, 30%)
font-size: 1.05em
line-height: 1.35em
margin:
bottom: $medium-margin
.detail-post-date, .post-date
color: $medium-gray
font-size: 0.6em
.post-date
margin:
left: em(-111px)
right: em(12px)
| #main, .posts
+outer-container
.posts p, article.article-detail, .index-article
+shift(2)
+span-columns(8)
.soundcloud-player-small
margin:
top: $small-margin
.index-article
margin:
bottom: ($small-margin + $medium-margin)
.topic-list
color: $medium-gray
line-height: 1.8em
.post-title
a
color: darken($medium-gray, 30%)
font-size: 1.7em
.posts, .article-detail
p
color: darken($medium-gray, 30%)
font-size: 1.05em
line-height: 1.35em
margin:
bottom: $medium-margin
.detail-post-date, .post-date
color: $light-gray
font-size: 0.6em
.post-date
margin:
left: em(-111px)
right: em(12px)
|
Add border to inputs so they can be seen on white background | @import "compass/typography/text/force-wrap"
.form-inputs, .form-actions
margin-bottom: 10px
.input
margin-bottom: 10px
// General form styles
input, select, textarea
background-color: white
border-radius: 4px
border: none
font-size: 14px
height: 40px
// String inputs
input.string, input.numeric, input.password, select
padding: 4px 8px
width: 100%
input[type=checkbox]
height: auto
span.radio
label
display: block
input[type=radio]
height: auto
.btn, a.btn:visited
+force-wrap
background-color: #0266c8
border-radius: 4px
border: 0
color: white
cursor: pointer
font-size: 16px
max-width: 100%
padding: 12px
&:hover
background-color: #1188cc
text-decoration: none
&:active
color: $black
| @import "compass/typography/text/force-wrap"
.form-inputs, .form-actions
margin-bottom: 10px
.input
margin-bottom: 10px
// General form styles
input, select, textarea
background-color: white
border-radius: 4px
border: 1px solid $black
font-size: 14px
height: 40px
// String inputs
input.string, input.numeric, input.password, select
padding: 4px 8px
width: 100%
input[type=checkbox]
height: auto
span.radio
label
display: block
input[type=radio]
height: auto
.btn, a.btn:visited
+force-wrap
background-color: #0266c8
border-radius: 4px
border: 0
color: white
cursor: pointer
font-size: 16px
max-width: 100%
padding: 12px
&:hover
background-color: #1188cc
text-decoration: none
&:active
color: $black
|
Remove styling for a nonexistent button | @import ../../styles/lib
.DeleteAccountDialog
position: relative
max-width: rem(480)
text-align: center
.DeleteAccountDialog h2
margin-bottom: rem(10)
font-size: rem(18)
height: rem(30)
line-height: rem(30)
white-space: nowrap
.DeleteAccountDialog p
position: absolute
margin-top: rem(40)
text-align: left
.DeleteAccountDialogButton
+sans-typeset
transition: background-color $speed ease, border-color $speed ease, color $speed ease, opacity $speed ease
display: inline-block
vertical-align: middle
width: rem(60)
height: rem(30)
border-radius: rem(15)
text-align: center
line-height: rem(30)
white-space: nowrap
background-color: white
border: 1px solid white
color: black
.DeleteAccountDialogButton.isActive,
.no-touch .DeleteAccountDialogButton:hover
background-color: black
border-color: black
color: white
.DeleteAccountDialogButton + .DeleteAccountDialogButton
margin-left: rem(5)
@media(min-width: #{$break-2})
.DeleteAccountDialog
text-align: left
.DeleteAccountDialog h2
display: inline-block
vertical-align: middle
margin-right: rem(20)
margin-bottom: 0
font-size: rem(24)
| @import ../../styles/lib
.DeleteAccountDialog
position: relative
max-width: rem(480)
text-align: center
.DeleteAccountDialog h2
margin-bottom: rem(10)
font-size: rem(18)
height: rem(30)
line-height: rem(30)
white-space: nowrap
.DeleteAccountDialog p
position: absolute
margin-top: rem(40)
text-align: left
@media(min-width: #{$break-2})
.DeleteAccountDialog
text-align: left
.DeleteAccountDialog h2
display: inline-block
vertical-align: middle
margin-right: rem(20)
margin-bottom: 0
font-size: rem(24)
|
Tweak the styling on producer modals so no grey background | @import mixins
@import variables
@import branding
.product-img
border-bottom: 40px white solid
border-top: 20px white solid
border-left: 20px white solid
border-right: 20px white solid
outline: 1px solid #ccc
@include box-shadow(0 1px 2px 1px rgba(0,0,0,0.25))
.hero-img
background-color: #333
width: 100%
min-height: 160px
height: inherit
max-height: 260px
overflow: hidden
.hero-img-small
background-color: #333
width: 100%
// min-height: 60px
height: inherit
overflow: hidden
margin: 0 0 1rem 0 !important
.producer-logo
max-width: 220px
@media only screen and (max-width: 1024px)
.product-img
margin-top: 2em
margin-bottom: 1em
| @import mixins
@import variables
@import branding
.product-img
border-bottom: 40px white solid
border-top: 20px white solid
border-left: 20px white solid
border-right: 20px white solid
outline: 1px solid #ccc
@include box-shadow(0 1px 2px 1px rgba(0,0,0,0.25))
.hero-img
border-bottom: 1px solid $disabled-bright
width: 100%
min-height: 56px
height: inherit
max-height: 260px
overflow: hidden
.hero-img-small
background-color: #333
width: 100%
// min-height: 60px
height: inherit
overflow: hidden
margin: 0 0 1rem 0 !important
.producer-logo
max-width: 220px
@media only screen and (max-width: 1024px)
.product-img
margin-top: 2em
margin-bottom: 1em
|
Add support for rem units | @mixin svg-background($svg, $inline: true, $width: '', $height: '', $dimensions: false)
.svg &
@if $inline == true
background: inline-image($svg)
@else
background: image-url($svg)
@include background-size($width $height)
@if $dimensions == true
@if $width != ''
width: $width
@if $height != ''
height: $height
| @mixin svg-background($svg, $inline: true, $width: '', $height: '', $dimensions: false, $rem: false)
.svg &
@if $inline == true
background: inline-image($svg)
@else
background: image-url($svg)
@if $rem == true
@include background-size(rem($width) rem($height))
@if $width != ''
width: rem($width)
@if $height != ''
height: rem($height)
@else
@include background-size($width $height)
@if $dimensions == true and $rem == false
@if $width != ''
width: $width
@if $height != ''
height: $height
|
Remove Courier New from terminal/thumbnail font list | =terminal-font
font-family: 'Bitstream Vera Sans Mono', 'Courier New', monospace
font-size: 12px
line-height: 16px
.line
span
padding: 0
display: inline-block
height: 16px
=terminal-font-medium
font-size: 18px
line-height: 24px
.line
span
height: 24px
=terminal-font-big
font-size: 24px
line-height: 32px
.line
span
height: 32px
| =terminal-font
font-family: 'Bitstream Vera Sans Mono', monospace
font-size: 12px
line-height: 16px
.line
span
padding: 0
display: inline-block
height: 16px
=terminal-font-medium
font-size: 18px
line-height: 24px
.line
span
height: 24px
=terminal-font-big
font-size: 24px
line-height: 32px
.line
span
height: 32px
|
Increase the padding on authentication headers | @import ../../styles/lib
.Authentication
display: flex
min-width: 100vw
min-height: 100vh
background-color: transparent
color: white
.AuthenticationFormDialog
width: rem(300)
margin: 0 auto
.Authentication h1
margin-bottom: rem(20)
padding-top: rem(40)
font-size: rem(24)
line-height: 1
white-space: nowrap
.Authentication h1 > .Emoji
margin-right: rem(10)
.AuthenticationForm
max-width: rem(320)
.AuthenticationFormDialog > p
+monospace
margin-top: rem(20)
color: #aaa
.AuthenticationError.accessDenied
padding-top: rem(12)
color: red
.AuthenticationFormDialog a:focus,
.AuthenticationFormDialog a:active,
.no-touch .AuthenticationFormDialog a:hover
color: white
.ForgotPasswordLink
+sans-typeset
margin-top: rem(15)
color: #aaa
@media(min-width: #{em(350)})
.AuthenticationFormDialog
width: rem(320)
@media(min-width: #{$break-2})
.AuthenticationFormDialog
margin: auto
.Authentication h1
padding-top: 0
margin-bottom: rem(70)
| @import ../../styles/lib
.Authentication
display: flex
min-width: 100vw
min-height: 100vh
background-color: transparent
color: white
.AuthenticationFormDialog
width: rem(300)
margin: 0 auto
.Authentication h1
margin-bottom: rem(20)
padding-top: rem(100)
font-size: rem(24)
line-height: 1
white-space: nowrap
.Authentication h1 > .Emoji
margin-right: rem(10)
.AuthenticationForm
max-width: rem(320)
.AuthenticationFormDialog > p
+monospace
margin-top: rem(20)
color: #aaa
.AuthenticationError.accessDenied
padding-top: rem(12)
color: red
.AuthenticationFormDialog a:focus,
.AuthenticationFormDialog a:active,
.no-touch .AuthenticationFormDialog a:hover
color: white
.ForgotPasswordLink
+sans-typeset
margin-top: rem(15)
color: #aaa
@media(min-width: #{em(350)})
.AuthenticationFormDialog
width: rem(320)
@media(min-width: #{$break-2})
.AuthenticationFormDialog
margin: auto
.Authentication h1
padding-top: 0
margin-bottom: rem(70)
|
Hide all tab headers in print styling but the active one. Style that one like H2. | // Media print specific styles ****
// Navigation elements
.navbar,
.sidebar,
.pagination,
.search-form,
.footer
display: none
// Sidebar fix
.row-fluid
width: 120%
.row-fluid .row-fluid
width: 100%
// Content
.container-fluid .content
margin-right: 20px
// Alerts
.alert
display: none
// Actions
.contextual,
.action-links,
.btn
display: none
// Elements
a
color: #484848
input,
textarea,
select
border: 0px none
box-shadow: none
.ui-widget-content
border: none
| // Media print specific styles ****
// Navigation elements
.navbar,
.sidebar,
.pagination,
.search-form,
.footer
display: none
// Sidebar fix
.row-fluid
width: 120%
.row-fluid .row-fluid
width: 100%
// Content
.container-fluid .content
margin-right: 20px
// Alerts
.alert
display: none
// Actions
.contextual,
.action-links,
.btn
display: none
// Tabs
ul.nav.nav-tabs
border-bottom: none
ul.nav.nav-tabs li
display: none
&.active
display: block
a
border: none
outline: none
font-size: 24px
line-height: 36px
color: #333
font-weight: bold
margin: 0
padding: 0
// Elements
a
color: #484848
input,
textarea,
select
border: 0px none
box-shadow: none
.ui-widget-content
border: none
|
Change scroll to top css | @import "../colors"
.scroll-to-top
color: $white
position: fixed
bottom: 25px
right: 25px
opacity: 0
transition: all .2s ease-in-out
.show-scroll
opacity: 1
transition: all .2s ease-in-out
i
color: $primary
font-size: 40px
cursor: pointer
opacity: .3
text-shadow: 1px 2px 3px $blue-grey-900
&:hover,
&:active
opacity: .9
| @import "../colors"
.scroll-to-top
color: $white
position: fixed
bottom: 25px
right: 25px
opacity: 0
transition: all .2s ease-in-out
.show-scroll
opacity: 1
transition: all .2s ease-in-out
color: $primary
font-size: 40px
cursor: pointer
opacity: .3
text-shadow: 1px 2px 3px $blue-grey-900
&:hover,
&:active
opacity: .9
|
Fix quote cutoff on random page | // *************************************
//
// Compliments - MVCSS v4.0.14
// -> Manifest
//
// *************************************
// -------------------------------------
// Foundation
// -------------------------------------
@import 'foundation/reset'
@import 'foundation/helpers'
@import 'foundation/config'
@import 'foundation/base'
// -------------------------------------
// Components
// -------------------------------------
@import 'components/*'
// -------------------------------------
// Structures
// -------------------------------------
@import 'structures/*'
// -------------------------------------
// Foundation - Tools
// -------------------------------------
@import 'foundation/tools'
// -------------------------------------
// Inbox
// -------------------------------------
.tv
.bucket-media
margin-left: 1em
.header .g-b:first-child
display: block
float: none
margin: 0 auto
width: 100%
img
display: block
margin: 0 auto
.header .g-b:last-child
display: none
.message
font-size: 140%
.message-content
margin-left: 4em
.message-complimentee-avatar
margin-top: -1.6em
.cell--s
max-width: 64em
| // *************************************
//
// Compliments - MVCSS v4.0.14
// -> Manifest
//
// *************************************
// -------------------------------------
// Foundation
// -------------------------------------
@import 'foundation/reset'
@import 'foundation/helpers'
@import 'foundation/config'
@import 'foundation/base'
// -------------------------------------
// Components
// -------------------------------------
@import 'components/*'
// -------------------------------------
// Structures
// -------------------------------------
@import 'structures/*'
// -------------------------------------
// Foundation - Tools
// -------------------------------------
@import 'foundation/tools'
// -------------------------------------
// Inbox
// -------------------------------------
.tv
.bucket-media
margin-left: 1em
.header .g-b:first-child
display: block
float: none
margin: 0 auto
width: 100%
img
display: block
margin: 0 auto
.header .g-b:last-child
display: none
.message
font-size: 140%
.message-content
margin-left: 4em
.message-complimentee-avatar
margin-top: -1.6em
.cell--s
max-width: 64em
.well--l
margin-bottom: $b-space-xl
|
Add hover animation on gallery slides | ul.portfolio-gallery
@include container()
list-style-type: none
color: white
padding: 0
li.slide
@include span(6)
@include background-size(cover)
margin-bottom: gutter()
position: relative
z-index: 0
&:nth-child(even)
@include span(6 last)
&:before
position: absolute
background-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6))
width: 100%
height: 100%
left: 0
top: 0
content: ''
z-index: -1
a
color: white
text-decoration: none
.container
padding: 0.75em
.date-start, .date-end, ul.tags
font-size: 0.8em
.date-start
@include span(6)
.date-end
@include span(6 last)
text-align: right
| ul.portfolio-gallery
@include container()
list-style-type: none
color: white
padding: 0
li.slide
@include span(6)
@include background-size(cover)
margin-bottom: gutter()
position: relative
z-index: 0
&:nth-child(even)
@include span(6 last)
&:before
position: absolute
background-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6))
width: 100%
height: 100%
left: 0
top: 0
content: ''
z-index: -1
&:hover
&:before
background-image: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.5))
@include transition(all 0.25s ease-in-out)
a
color: white
text-decoration: none
.container
padding: 0.75em
.date-start, .date-end, ul.tags
font-size: 0.8em
.date-start
@include span(6)
.date-end
@include span(6 last)
text-align: right
|
Adjust the order of placeholder selectors | //-------------------------------------
// Layout
//-------------------------------------
// ----- Rows ----- //
.l-row
// ----- Cells ----- //
.l-cell, %l.cell
margin: 0 auto
max-width: em($l-maxWidth)
padding: 0 em(60px)
// ----- Grids ----- //
.l-grid
.l-grid-box
// ----- Cards ----- //
.l-card
// ----- Buckets ----- //
.l-bucket
// ----- Utilities ----- //
.l-block, %l-block
display: block
.l-pullLeft, %l-pullLeft
float: left
.l-pullRight, %l-pullRight
float: right
| //-------------------------------------
// Layout
//-------------------------------------
// ----- Rows ----- //
.l-row
// ----- Cells ----- //
%l-cell, .l.cell
margin: 0 auto
max-width: em($l-maxWidth)
padding: 0 em(60px)
// ----- Grids ----- //
.l-grid
.l-grid-box
// ----- Cards ----- //
.l-card
// ----- Buckets ----- //
.l-bucket
// ----- Utilities ----- //
%l-block, .l-block
display: block
%l-pullLeft, .l-pullLeft
float: left
%l-pullRight, .l-pullRight
float: right
|
Fix issue with custom tooltip and the hero | header.hero
padding: +emCalc(60px) 0
min-height: +emCalc(330px)
color: white
text-shadow: 3px 3px 5px rgba(0,0,0,0.5)
&, .backstretch
background: darken($secondary-color, 30%) image-url('default-bg-hero.jpg') repeat
&.small
min-height: +emCalc(200px)
&.center
text-align: center
h2, h3, h4, h5
color: white
h2
font-weight: bold
h3
text-transform: uppercase
font-weight: 300
padding-top: +emCalc(8px)
.button, input, .tooltip-content
text-shadow: none
| header.hero
z-index: 1 !important
padding: +emCalc(60px) 0
min-height: +emCalc(330px)
color: white
text-shadow: 3px 3px 5px rgba(0,0,0,0.5)
&, .backstretch
background: darken($secondary-color, 30%) image-url('default-bg-hero.jpg') repeat
&.small
min-height: +emCalc(200px)
&.center
text-align: center
h2, h3, h4, h5
color: white
h2
font-weight: bold
h3
text-transform: uppercase
font-weight: 300
padding-top: +emCalc(8px)
.button, input, .tooltip-content
text-shadow: none
|
Remove top margin from all headers | @import 'reimagine2/mixins/all_caps'
@import 'reimagine2/mixins/bold'
// in our foundation build we set margin-left on lists
// (see $list-side-margin)
// We usually won't want that margin if we are not
// showing a bulleted list
ul.no-bullet
margin-left: 0
&.inline-list
margin-#{$default-float}: $inline-list-default-float-margin
// do not change font-size line-height etc.
strong, b, .bold
+bold
h1
font-size: $h2-font-size
h2
font-size: $h3-font-size
h3
font-size: $h4-font-size
h4
font-size: $h4-font-size
h5
font-size: $h4-font-size
h6
font-size: $h6-font-size
@media #{$small}
h1
font-size: $h1-font-size
h2
font-size: $h2-font-size
h3
font-size: $h3-font-size
h4
font-size: $h4-font-size
h5
font-size: $h5-font-size
h6
font-size: $h6-font-size
h1, h2, h3, h4, h5, h6
line-height: $header-line-height
h4
letter-spacing: 1px
text-transform: uppercase
| @import 'reimagine2/mixins/all_caps'
@import 'reimagine2/mixins/bold'
// in our foundation build we set margin-left on lists
// (see $list-side-margin)
// We usually won't want that margin if we are not
// showing a bulleted list
ul.no-bullet
margin-left: 0
&.inline-list
margin-#{$default-float}: $inline-list-default-float-margin
// do not change font-size line-height etc.
strong, b, .bold
+bold
h1
font-size: $h2-font-size
h2
font-size: $h3-font-size
h3
font-size: $h4-font-size
h4
font-size: $h4-font-size
h5
font-size: $h4-font-size
h6
font-size: $h6-font-size
@media #{$small}
h1
font-size: $h1-font-size
h2
font-size: $h2-font-size
h3
font-size: $h3-font-size
h4
font-size: $h4-font-size
h5
font-size: $h5-font-size
h6
font-size: $h6-font-size
h1, h2, h3, h4, h5, h6
line-height: $header-line-height
margin-top: 0
h4
letter-spacing: 1px
text-transform: uppercase
|
Fix SASS Nesting / Comment Syntax Issue | @import "compass/typography/lists/bullets"
@import "compass/typography/lists/horizontal-list"
@import "compass/css3/border-radius"
=overview-icon-48($ident, $icon: $ident)
ul.overview-list li
&#overview-#{$ident}, &.#{$ident}
+icon($icon, 48)
ul.overview-list.level-1
+no-bullets
+horizontal-list
li // All items
a
border-bottom: 1px solid black
display: block
&#overview-overview
display: none
>li
// Top level
background: no-repeat 0.4em 0.8em
// Fix horizontal-list to not drop padding in first and last item
&, .first, &:first-child, .last, &:last-child
padding-left: 60px
padding-right: 40px
min-height: 58px
+border-radius($border_radius)
background-color: #f6f6f6
border: 1px solid #e4e4e4
color: #505050
margin: 1em
padding-top: 0.8em
padding-bottom: 0.8em
width: 20%
ul // Level > 1
margin-top: 5px
li
display: block
float: none
padding-left: 0px
width: inherit
min-height: 1em
a
border-bottom: none
| @import "compass/typography/lists/bullets"
@import "compass/typography/lists/horizontal-list"
@import "compass/css3/border-radius"
=overview-icon-48($ident, $icon: $ident)
ul.overview-list li
&#overview-#{$ident}, &.#{$ident}
+icon($icon, 48)
ul.overview-list.level-1
+no-bullets
+horizontal-list
li // All items
a
border-bottom: 1px solid black
display: block
&#overview-overview
display: none
>li
// Top level
background: no-repeat 0.4em 0.8em
// Fix horizontal-list to not drop padding in first and last item
&, .first, &:first-child, .last, &:last-child
padding-left: 60px
padding-right: 40px
min-height: 58px
+border-radius($border_radius)
background-color: #f6f6f6
border: 1px solid #e4e4e4
color: #505050
margin: 1em
padding-top: 0.8em
padding-bottom: 0.8em
width: 20%
ul
// Level > 1
margin-top: 5px
li
display: block
float: none
padding-left: 0px
width: inherit
min-height: 1em
a
border-bottom: none
|
Remove unused-rendered gradient from plaza theme | @import compass/css3
@import mixins
@import url("http://fonts.googleapis.com/css?family=Arimo")
$themeName: "odometer-theme-plaza"
$digitPadding: .03em
+spinning-odometer($themeName)
.odometer.odometer-auto-theme, .odometer#{"." + $themeName}
+border-radius(.15em)
+background-image(radial-gradient(#e4f2ff 15%, rgba(0, 0, 0, 0) 16%) 0 0, radial-gradient(#e4f2ff 15%, rgba(0, 0, 0, 0) 16%) 8px 8px, radial-gradient(rgba(255, 255, 255, 0.1) 15%, rgba(0, 0, 0, 0) 20%) 0 1px, radial-gradient(rgba(255, 255, 255, 0.1) 15%, rgba(0, 0, 0, 0) 20%) 8px 9px)
background-color: #f0f8ff
font-family: "Helvetica Neue", sans-serif
font-weight: 100
padding: 0 .12em
line-height: 1.2em
font-size: 1.2em
background-size: 16px 16px
.odometer-digit
+border-radius(.1em)
padding: 0 $digitPadding
color: #648baf
.odometer-digit-inner
left: $digitPadding | @import compass/css3
@import mixins
@import url("http://fonts.googleapis.com/css?family=Arimo")
$themeName: "odometer-theme-plaza"
$digitPadding: .03em
+spinning-odometer($themeName)
.odometer.odometer-auto-theme, .odometer#{"." + $themeName}
+border-radius(.15em)
background-color: #f0f8ff
font-family: "Helvetica Neue", sans-serif
font-weight: 100
padding: 0 .12em
line-height: 1.2em
font-size: 1.2em
background-size: 16px 16px
.odometer-digit
+border-radius(.1em)
padding: 0 $digitPadding
color: #648baf
.odometer-digit-inner
left: $digitPadding |
Add onHover effect for non-{header,footer} rows | body
font-family: arial
.-js-rt-table
border: 1px solid #ccc
width: 100%
margin: 0
padding: 0
border-collapse: collapse
border-spacing: 0
.-js-rt-row
border: 1px solid #ddd
padding: 5px
.-js-rt-headerCell, .-js-rt-cell
padding: 10px
text-align: center
.-js-rt-headerCell
text-transform: uppercase
font-size: 14px
letter-spacing: 1px
@media screen and (max-width: 600px)
.-js-rt-table
border: 0
.-js-rt-tableHeader
display: none
.-js-rt-row
margin-bottom: 10px
display: block
border-bottom: 2px solid #ddd
.-js-rt-cell
display: block
text-align: right
font-size: 13px
border-bottom: 1px dotted #ccc
.-js-rt-cell:last-child
border-bottom: 0
.-js-rt-cell:before
content: attr(data-label)
float: left
text-transform: uppercase
font-weight: bold
| body
font-family: arial
.-js-rt-container
display: block
.-js-rt-table
border: 1px solid #ccc
width: 100%
margin: 0
padding: 0
border-collapse: collapse
border-spacing: 0
.-js-rt-tableBody>.-js-rt-row
border: 1px solid #ddd
padding: 5px
&:hover
background-color: #e0e0e0
.-js-rt-headerCell, .-js-rt-cell
padding: 10px
text-align: center
.-js-rt-headerCell
text-transform: uppercase
font-size: 14px
letter-spacing: 1px
@media screen and (max-width: 600px)
.-js-rt-table
border: 0
.-js-rt-tableHeader
display: none
.-js-rt-row
margin-bottom: 10px
display: block
border-bottom: 2px solid #ddd
.-js-rt-cell
display: block
text-align: right
font-size: 13px
border-bottom: 1px dotted #ccc
.-js-rt-cell:last-child
border-bottom: 0
.-js-rt-cell:before
content: attr(data-label)
float: left
text-transform: uppercase
font-weight: bold
|
Add .em and .strong classes | body
color: $black
font-family: $sans-serif
font-size: 16px
line-height: 1.4
h1
font-size: 2.25em
h2
font-size: 1.875em
h3
font-size: 1.5em
h4
font-size: 1.25em
h5
font-size: 1.125em
h6
font-size: 1em
p
margin: auto 0 14px
ol
list-style-type: decimal
ul
list-style-type: disc
a, a:visited
color: $blue
text-decoration: none
&:hover
text-decoration: underline
em
font-style: italic
strong
font-weight: bold
.float-right
float: right
.float-left
float: left
| body
color: $black
font-family: $sans-serif
font-size: 16px
line-height: 1.4
h1
font-size: 2.25em
h2
font-size: 1.875em
h3
font-size: 1.5em
h4
font-size: 1.25em
h5
font-size: 1.125em
h6
font-size: 1em
p
margin: auto 0 14px
ol
list-style-type: decimal
ul
list-style-type: disc
a, a:visited
color: $blue
text-decoration: none
&:hover
text-decoration: underline
em, .em
font-style: italic
strong, .strong
font-weight: bold
.float-right
float: right
.float-left
float: left
|
Fix style for input with prefix and postfix | .input.boolean
label.checkbox
input
margin-right: 0.5em
&.error
small
margin-top: 0.1em
textarea
height: +emCalc(200px)
input, textarea
+radius($input-radius)
&.with-prefix
+radius(0 $input-radius $input-radius 0)
&.with-postfix
+radius($input-radius 0 0 $input-radius)
span.prefix, span.postfix
@extend .radius
border-color: $input-prefix-border-color
box-shadow: $input-box-shadow
label
abbr
color: red
| .input.boolean
label.checkbox
input
margin-right: 0.5em
&.error
small
margin-top: 0.1em
textarea
height: +emCalc(200px)
input, textarea
+radius($input-radius)
&.with-prefix
+radius(0 $input-radius $input-radius 0)
&.with-postfix
+radius($input-radius 0 0 $input-radius)
&.with-prefix.with-postfix
+radius(0)
span.prefix, span.postfix
@extend .radius
border-color: $input-prefix-border-color
box-shadow: $input-box-shadow
label
abbr
color: red
|
Tweak registrations styles. Make errors section use flex box. | @import compass
@import compass/reset
@import compass/css3/text-shadow
body
font-family: 'Open Sans', Helvetica, Arial, sans-serif
+text-shadow
.flash_errors
padding: 16px 128px
margin: 0 auto
background-color: #a20
color: white
font-size: 14px
font-weight: bold
.error-block
margin-top: 8px
ul
padding-left: 16px
list-style: circle
section.main
width: 1000px
margin: auto
.logo
text-align: center
font-size: 72px
color: #222
section
width: 256px
margin: 15px auto 0
padding: 15px
h1
font-size: 22px
padding: 20px 0
form
.user
margin-bottom: 16px
.field
label
display: block
font-size: 14px
input
font-size: 16px
width: 100%
margin: 2px 0 2px 0
+border-radius
.disclaimer
font-size: 7pt
.submit
input[type="submit"]
border: 1px #444 solid
@import _flash
| @import compass
@import compass/reset
@import compass/css3/text-shadow
@import compass/css3/box
body
font-family: 'Open Sans', Helvetica, Arial, sans-serif
+text-shadow
.flash_errors
width: 100%
+display-box
+box-align('center')
+box-orient('vertical')
padding: 10px
background-color: #a20
color: white
font-size: 14px
font-weight: bold
.error-block
margin-top: 8px
ul
padding-left: 10px
list-style: circle
section.main
section
width: 256px
margin: 15px auto 0
padding: 15px
h1
font-size: 22px
padding: 20px 0
form
.user
margin-bottom: 16px
.field
label
display: block
font-size: 14px
input
font-size: 16px
width: 100%
margin: 2px 0 2px 0
+border-radius
.disclaimer
font-size: 7pt
.submit
input[type="submit"]
border: 1px #444 solid
@import _flash
|
Remove foundation custom form styles | // Make sure the charset is set appropriately
@charset "UTF-8"
// This includes all of the foundation global elements that are needed to work with any of the other files.
@import foundation/variables
// Foundation Components
@import foundation/components/global
@import foundation/components/grid
//@import foundation/components/grid-5
@import foundation/components/visibility
@import foundation/components/block-grid
@import foundation/components/type
@import foundation/components/buttons
@import foundation/components/forms
//@import foundation/components/button-groups
@import foundation/components/dropdown-buttons
//@import foundation/components/split-buttons
@import foundation/components/flex-video
//@import foundation/components/section
@import foundation/components/top-bar
//@import foundation/components/orbit
@import foundation/components/reveal
@import foundation/components/joyride
@import foundation/components/clearing
@import foundation/components/alert-boxes
//@import foundation/components/breadcrumbs
@import foundation/components/custom-forms
//@import foundation/components/keystrokes
@import foundation/components/labels
//@import foundation/components/inline-lists
//@import foundation/components/pagination
@import foundation/components/panels
//@import foundation/components/pricing-tables
//@import foundation/components/progress-bars
@import foundation/components/side-nav
//@import foundation/components/sub-nav
//@import foundation/components/switch
//@import foundation/components/magellan
@import foundation/components/tables
//@import foundation/components/thumbs
@import foundation/components/tooltips
@import foundation/components/dropdown
| // Make sure the charset is set appropriately
@charset "UTF-8"
// This includes all of the foundation global elements that are needed to work with any of the other files.
@import foundation/variables
// Foundation Components
@import foundation/components/global
@import foundation/components/grid
//@import foundation/components/grid-5
@import foundation/components/visibility
@import foundation/components/block-grid
@import foundation/components/type
@import foundation/components/buttons
@import foundation/components/forms
//@import foundation/components/button-groups
@import foundation/components/dropdown-buttons
//@import foundation/components/split-buttons
@import foundation/components/flex-video
//@import foundation/components/section
@import foundation/components/top-bar
//@import foundation/components/orbit
@import foundation/components/reveal
@import foundation/components/joyride
@import foundation/components/clearing
@import foundation/components/alert-boxes
//@import foundation/components/breadcrumbs
//@import foundation/components/custom-forms
//@import foundation/components/keystrokes
@import foundation/components/labels
//@import foundation/components/inline-lists
//@import foundation/components/pagination
@import foundation/components/panels
//@import foundation/components/pricing-tables
//@import foundation/components/progress-bars
@import foundation/components/side-nav
//@import foundation/components/sub-nav
//@import foundation/components/switch
//@import foundation/components/magellan
@import foundation/components/tables
//@import foundation/components/thumbs
@import foundation/components/tooltips
@import foundation/components/dropdown
|
Fix annoying bug where the buttons in the toolbar sometimes disappear when viewing tasks | .conversations-list-controls
position: absolute
top: 0
left: 0
right: 0
height: $conversations-list-controls-height - 5px
padding-top: 5px
background-color: $grey-color
font-size: 0
overflow: hidden
white-space: nowrap
> a
display: inline-block
width: 25%
text-align: center
&, &:hover, &:visited, &:active
text-decoration: none
color: $white-color
&.active
color: $yellow-color
> *
display: block
> i
font-size: 30px
> span
font-size: 10px
+small-screens
background-color: transparentize($grey-color, 0.2)
&.hidden
display: none
| .conversations-list-controls
position: absolute
top: 0
left: 0
right: 0
height: $conversations-list-controls-height - 5px
padding-top: 5px
background-color: $grey-color
font-size: 0
overflow: hidden
white-space: nowrap
> a.icon-with-text
display: inline-block
width: 25%
text-align: center
&, &:hover, &:visited, &:active
text-decoration: none
color: $white-color
&.active
color: $yellow-color
> *
display: block
> i
font-size: 30px
> span
font-size: 10px
+small-screens
&.hidden
display: none
|
Improve kerning in nav bar | .navigation
position: fixed
z-index: 1001
top: 0
left: 50%
transform: translateX(-50%)
margin: 0
list-style: none
display: flex
overflow: hidden
opacity: .25
will-change: opacity
li
display: inline-block
overflow: hidden
a
display: inline-block
font-family: Montserrat
font-size: 1.2em
color: $white
font-weight: 300
letter-spacing: .16666em
text-transform: uppercase
padding: 1.25rem 1.75rem
&.selected
font-weight: 600
#navigation-trigger
position: fixed
top: 0
left: 0
z-index: 1002
padding: 1.25rem 1.75rem
color: $white
font-size: 1.5em
cursor: pointer
will-change: opacity
| .navigation
position: fixed
z-index: 1001
top: 0
left: 50%
transform: translateX(-50%)
margin: 0
list-style: none
display: flex
overflow: hidden
opacity: .25
will-change: opacity
li
display: inline-block
overflow: hidden
a
display: inline-block
font-family: Montserrat
font-size: 1.2em
color: $white
font-weight: 300
letter-spacing: .225em
text-transform: uppercase
padding: 1.25rem 1.75rem
&.selected
font-weight: 600
#navigation-trigger
position: fixed
top: 0
left: 0
z-index: 1002
padding: 1.25rem 1.75rem
color: $white
font-size: 1.5em
cursor: pointer
will-change: opacity
|
Set max width for images in posts | .post
margin-bottom: 5em
&:last-of-type
margin-bottom: 2em
.post__meta
color: #aaa
border-left: 4px solid #24AF3A
letter-spacing: .1em
font-size: 14px
margin: 2em 0
padding: .2em 1em
.post__meta__date
color: inherit
.post__meta__link
color: inherit
.post__headline
margin: 0 0 .5ex 0
color: #ff4e00
line-height: 1em
.post__headline__link
color: inherit
text-decoration: none
.post__content
font-size: 17px
line-height: 1.8em
p
margin-bottom: 1em
a
color: #657b83
text-decoration: none
border-bottom: 2px solid #657b83
&:hover
color: #ff4e00
border-color: #ff4e00
li
margin: .3em 0 .3em 0
blockquote
border-left: 4px solid #657b83
margin: 1.5em
padding: 0 1.5em
font-style: italic
color: #4f525a
h2, h3, h4, h5, h6
color: #ff4e00
@media screen and (min-width: 640px)
.post__content
font-size: 18px | .post
margin-bottom: 5em
&:last-of-type
margin-bottom: 2em
.post__meta
color: #aaa
border-left: 4px solid #24AF3A
letter-spacing: .1em
font-size: 14px
margin: 2em 0
padding: .2em 1em
.post__meta__date
color: inherit
.post__meta__link
color: inherit
.post__headline
margin: 0 0 .5ex 0
color: #ff4e00
line-height: 1em
.post__headline__link
color: inherit
text-decoration: none
.post__content
font-size: 17px
line-height: 1.8em
p
margin-bottom: 1em
a
color: #657b83
text-decoration: none
border-bottom: 2px solid #657b83
&:hover
color: #ff4e00
border-color: #ff4e00
li
margin: .3em 0 .3em 0
blockquote
border-left: 4px solid #657b83
margin: 1.5em
padding: 0 1.5em
font-style: italic
color: #4f525a
h2, h3, h4, h5, h6
color: #ff4e00
img
max-width: 100%
@media screen and (min-width: 640px)
.post__content
font-size: 18px |
Add little opacity to flash | .flash
position: fixed
left: 0
top: 0
width: 100%
z-index: 50
div
position: relative
width: $root-width - 50px
margin: 0 auto
line-height: 30px
padding: 15px 25px
+shadow
+box-shadow(rgba(0, 0, 0, 0.5) 0 2px 7px)
font-size: 20px
text-align: center
color: white
text-shadow: rgba(0, 0, 0, 0.5) 0 1px 1px
font-weight: bold
background-image: image-url("layout/alone/flash-pattern.png")
border: 2px solid
border-width: 0 2px 2px 2px
&.notice
div
background-color: darken($green, 5%)
border-color: darken($green, 7%)
&.error, &.alert
div
background-color: darken($red, 5%)
border-color: darken($red, 7%)
@media all and (transform-3d), all and (-webkit-transform-3d)
.flash
+perspective(2000px)
div
+backface-visibility(hidden)
| .flash
position: fixed
left: 0
top: 0
width: 100%
z-index: 50
div
position: relative
width: $root-width - 50px
margin: 0 auto
line-height: 30px
padding: 20px 25px
+shadow
+box-shadow(rgba(0, 0, 0, 0.5) 0 2px 7px)
font-size: 20px
text-align: center
color: white
text-shadow: rgba(0, 0, 0, 0.5) 0 1px 1px
font-weight: bold
background-image: image-url("layout/alone/flash-pattern.png")
border: 2px solid
border-width: 0 2px 2px 2px
opacity: 0.95
&.notice
div
background-color: darken($green, 5%)
border-color: darken($green, 7%)
&.error, &.alert
div
background-color: darken($red, 5%)
border-color: darken($red, 7%)
@media all and (transform-3d), all and (-webkit-transform-3d)
.flash
+perspective(2000px)
div
+backface-visibility(hidden)
|
Mark :: Update background and color for html tag | // Action on text selection
*
outline: none
&::selection
color: $white
background-color: $link-color
body.is-homepage
background-color: rgba($black, .55)
// Links
a
transition: color .2s ease-in
&.button
border-radius: 0 !important
// Utils
.no-margin-bottom
margin-bottom: 0
.no-margin-left
margin-left: 0 !important
.no-margin
margin: 0 auto
.dtable
display: table
.dtrow
display: table-row
.dtcell
display: table-cell
vertical-align: middle
// Maildev
.button-title
margin-bottom: 0
margin-left: 1rem
vertical-align: middle
// Overlay on video play
#shadow
&.night
position: absolute
z-index: 2
top: 0
right: 0
bottom: 0
left: 0
opacity: .8
background-color: $black
.mejs-container
z-index: 3
// Highlight post on page
.highlight-post
animation: highlight-post 1.5s
@keyframes highlight-post
0%
background: $warning-color
100%
background: none
// Style for broken pictures
+ broken-pictures
// Masonry
.masonry-item
width: 100%
| // Action on text selection
*
outline: none
&::selection
color: $white
background-color: $link-color
body.is-homepage
background-color: rgba($black, .55)
// Links
a
transition: color .2s ease-in
&.button
border-radius: 0 !important
// Utils
.no-margin-bottom
margin-bottom: 0
.no-margin-left
margin-left: 0 !important
.no-margin
margin: 0 auto
.dtable
display: table
.dtrow
display: table-row
.dtcell
display: table-cell
vertical-align: middle
// Search mark
mark
color: $white
background-color: $primary-color
// Maildev
.button-title
margin-bottom: 0
margin-left: 1rem
vertical-align: middle
// Overlay on video play
#shadow
&.night
position: absolute
z-index: 2
top: 0
right: 0
bottom: 0
left: 0
opacity: .8
background-color: $black
.mejs-container
z-index: 3
// Highlight post on page
.highlight-post
animation: highlight-post 1.5s
@keyframes highlight-post
0%
background: $warning-color
100%
background: none
// Style for broken pictures
+ broken-pictures
// Masonry
.masonry-item
width: 100%
|
Fix issue with ticket content not displaying line breaks and spaces correctly. | /**
*
*/
.ticket
width: 192px
height: 108px
@include position(absolute)
&:hover
z-index: 350 !important
box-shadow: 0px 0px 4px $dove-gray
&.is-dragging
z-index: 400 !important
box-shadow: 0px 0px 8px $dove-gray
border: 1px solid $gallery
border-radius: 2px
cursor: pointer
font-size: 12px
background-color: $white
.color
height: 16px
border-top-left-radius: 2px
border-top-right-radius: 2px
.content
height: 76px
margin: 8px
overflow: hidden
| /**
*
*/
.ticket
width: 192px
height: 108px
@include position(absolute)
&:hover
z-index: 350 !important
box-shadow: 0px 0px 4px $dove-gray
&.is-dragging
z-index: 400 !important
box-shadow: 0px 0px 8px $dove-gray
border: 1px solid $gallery
border-radius: 2px
cursor: pointer
font-size: 12px
background-color: $white
.color
height: 16px
border-top-left-radius: 2px
border-top-right-radius: 2px
.content
height: 76px
margin: 8px
overflow: hidden
white-space: pre-wrap
|
Improve padding top and bottom for lower footer | .footer-container
background-color: $topbar-bg-color
color: $white
position: relative
width: 100%
.upper-footer
padding: 1rem 10px 15px 10px
.credentials
text-align: center
.input-wrapper
position: relative
.newsletter_user_email
input
width: 100%
height: auto
padding: 5px
padding-right: 37px
&:focus
outline: none !important
.submit-with-icon
background: none
position: absolute
top: 1px
right: 3px
margin: 0
padding: 0
border: 0
outline: none
box-shadow: none
color: #000
cursor: pointer
i
font-size: 25px
margin-right: 1px
.lower-footer
padding: 6px
background-color: #333132
text-align: center
p
font-size: 12px
margin-bottom: 0
.made-by
text-align: right | .footer-container
background-color: $topbar-bg-color
color: $white
position: relative
width: 100%
.upper-footer
padding: 1rem 10px 15px 10px
.credentials
text-align: center
.input-wrapper
position: relative
.newsletter_user_email
input
width: 100%
height: auto
padding: 5px
padding-right: 37px
&:focus
outline: none !important
.submit-with-icon
background: none
position: absolute
top: 1px
right: 3px
margin: 0
padding: 0
border: 0
outline: none
box-shadow: none
color: #000
cursor: pointer
i
font-size: 25px
margin-right: 1px
.lower-footer
padding: 15px
background-color: #333132
text-align: center
p
font-size: 12px
margin-bottom: 0
.made-by
text-align: right |
Set loader and background color when loading. | //= require normalize-css
//= require material-design-preloader/md-preloader.min
html, body
height: 100%
overflow: hidden
.deck-container
visibility: hidden
#loading_screen-no-js
font-size: 2rem
#loading_screen,
#loading_screen-no-js
font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif
height: 100%
display: flex
align-items: center
justify-content: center
span
font-size: 4rem
margin-left: 1rem
| //= require normalize-css
//= require material-design-preloader/md-preloader.min
@import settings
@import "deck.js-material/stylesheets/variables"
html, body
height: 100%
overflow: hidden
+background-color
.deck-container
visibility: hidden
#loading_screen-no-js
font-size: 2rem
#loading_screen,
#loading_screen-no-js
display: flex
height: 100%
align-items: center
justify-content: center
font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif
span
margin-left: 1rem
font-size: 4rem
.md-preloader svg circle
+loader-color
|
Remove border bottom from transitions | #logo img
+transition(all .1s ease-in-out)
&:hover
opacity: .7
.index-article
&:hover
.post-date
color: $medium-gray
.post-title a,
.pagination-link,
.recent-posts a,
.recent-posts a
&:hover
text-shadow: 0 1px 0 rgba(255,255,255,0)
.post-title a
&:hover
color: $brand-color
border-bottom: 2px solid $brand-color
.navigation a,
.recent-posts a,
.footer-tags a
+transition(all .1s ease-in-out)
&:hover
color: $brand-color
.article-detail a,
.recent-posts a
&:hover
border-bottom: 1px solid $brand-color
.pagination-link
&:hover
background-color: $brand-color
box-shadow: 0px 1px 2px rgba(shade($brand-color, 75%), .20)
border: 1px solid shade($brand-color, 20%)
&:hover a
color: white
&:active a
opacity: .7
box-shadow: 0px 0px 0px rgba(shade($brand-color, 45%), .30)
| #logo img
+transition(all .1s ease-in-out)
&:hover
opacity: .7
.index-article
&:hover
.post-date
color: $medium-gray
.post-title a,
.pagination-link,
.recent-posts a,
.recent-posts a
&:hover
text-shadow: 0 1px 0 rgba(255,255,255,0)
.post-title a
&:hover
color: $brand-color
.navigation a,
.recent-posts a,
.footer-tags a
+transition(all .1s ease-in-out)
&:hover
color: lighten($brand-color, 60%)
.article-detail a,
.recent-posts a
&:hover
.pagination-link
&:hover
background-color: $brand-color
box-shadow: 0px 1px 2px rgba(shade($brand-color, 75%), .20)
&:hover a
color: white
&:active a
opacity: .7
box-shadow: 0px 0px 0px rgba(shade($brand-color, 45%), .30)
|
Add more tests for Sass syntax | =hyphenated-lowercase()
content: ''
=snake_case()
content: ''
=camelCase()
content: ''
=PascalCase()
content: ''
=Camel_Snake_Case()
content: ''
=SCREAMING_SNAKE_CASE()
content: ''
=_with-leading-underscore()
content: ''
=_does_NOT-fitSTANDARD()
content: ''
.class
+snake_case()
.test
@extend .pure-u-1-6
| =hyphenated-lowercase()
content: ''
=snake_case()
content: ''
=camelCase()
content: ''
=PascalCase()
content: ''
=Camel_Snake_Case()
content: ''
=SCREAMING_SNAKE_CASE()
content: ''
=_with-leading-underscore()
content: ''
=_does_NOT-fitSTANDARD()
content: ''
.class
+snake_case()
.test
@extend .pure-u-1-6
.test
@at-root .child_snake_case
content: 'foo'
@import '_foo.scss'
@keyframes fade_it
0%
transform: scale(1.0)
25%
transform: scale(1.1)
50%
transform: scale(1.0)
75%
transform: scale(1.2)
100%
transform: scale(1.1)
|
Fix padding if input reset is hidden | .bpe--location-input
background: white
position: absolute
top: 10px
right: 10px
z-index: 100
width: 400px
box-shadow: 0 0 10px 0 rgba(0,0,0,0.25)
.bpe--location-input--input
display: block
margin: 20px
padding: 5px
padding-right: 30px
width: calc(100% - 70px)
.bpe--location-input--reset
position: absolute
right: 20px
top: 13px
z-index: 1000
font-size: 3rem
font-weight: 100
cursor: pointer
.browser-edge &,
.browser-msie &
display: none
.bpe--location-input--reset:hover
text-decoration: none
| .bpe--location-input
background: white
position: absolute
top: 10px
right: 10px
z-index: 100
width: 400px
box-shadow: 0 0 10px 0 rgba(0,0,0,0.25)
.bpe--location-input--input
display: block
margin: 20px
padding: 5px
padding-right: 30px
width: calc(100% - 70px)
.browser-edge &,
.browser-msie &
padding-right: 5px
.bpe--location-input--reset
position: absolute
right: 20px
top: 13px
z-index: 1000
font-size: 3rem
font-weight: 100
cursor: pointer
.browser-edge &,
.browser-msie &
display: none
.bpe--location-input--reset:hover
text-decoration: none
|
Add custom tooltip design to foundation tooltip | .custom-tooltip
position: relative
a
z-index: 95
.tooltip-content
min-width: +emCalc(200px)
-webkit-box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.50)
-moz-box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.50)
box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.50)
z-index: 96
position: absolute
margin-top: +emCalc(10px)
margin-left: +emCalc(-50px)
background: white
border: 1px solid $border-color
padding: +emCalc(20px)
&:before
content: ' '
width: 0
height: 0
line-height: 0
top: +emCalc(-10px)
left: +emCalc(43px)
position: absolute
border-bottom: +emCalc(20px) solid white
border-right: (+emCalc(20px)*.75) solid transparent
border-left: (+emCalc(20px)*.75) solid transparent
| .custom-tooltip
position: relative
a
z-index: 95
.tooltip-content
min-width: +emCalc(200px)
-webkit-box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.50)
-moz-box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.50)
box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.50)
z-index: 96
position: absolute
margin-top: +emCalc(10px)
margin-left: +emCalc(-50px)
background: white
border: 1px solid $border-color
padding: +emCalc(20px)
&:before
content: ' '
width: 0
height: 0
line-height: 0
top: +emCalc(-10px)
left: +emCalc(43px)
position: absolute
border-bottom: +emCalc(20px) solid white
border-right: (+emCalc(20px)*.75) solid transparent
border-left: (+emCalc(20px)*.75) solid transparent
.tooltip
-webkit-box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.50)
-moz-box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.50)
box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.50)
background: white
border: 1px solid $border-color
color: $body-font-color
font-weight: normal
> .nub
border-bottom-color: white
|
Add a tag style to receive color by inheritance | @import fonts
@import colors
@import animations
*
margin: 0
padding: 0
outline: 0
border: 0
font-family: 'Montserrat', sans-serif
list-style: none
text-decoration: none
box-sizing: border-box
body, html, .App
width: 100vw
height: 100vh
color: $primaryTextColor
scroll-behavior: smooth
-webkit-font-smoothing: antialiased
overflow: hidden
.App
display: flex
align-items: center
justify-content: center
| @import fonts
@import colors
@import animations
*
margin: 0
padding: 0
outline: 0
border: 0
font-family: 'Montserrat', sans-serif
list-style: none
text-decoration: none
box-sizing: border-box
body, html, .App
width: 100vw
height: 100vh
color: $primaryTextColor
scroll-behavior: smooth
-webkit-font-smoothing: antialiased
overflow: hidden
.App
display: flex
align-items: center
justify-content: center
a
color: inherit |
Comment out empty css class | .ptz_fileinput
width: 0.1px
height: 0.1px
z-index: -1
opacity: 0
overflow: hidden
position: absolute
& + label
color: black
font-size: 15px
line-height: 18px
padding: 7px 10px
border-radius: 3px
vertical-align: top
border: 1px solid rgba(0, 0, 0, 0.2)
text-align: center
white-space: nowrap
display: inline-block
cursor: pointer
background: white
transition: background-color .2s ease
&:disabled + label
color: #eee
background: white
cursor: not-allowed
&:required + label
| .ptz_fileinput
width: 0.1px
height: 0.1px
z-index: -1
opacity: 0
overflow: hidden
position: absolute
& + label
color: black
font-size: 15px
line-height: 18px
padding: 7px 10px
border-radius: 3px
vertical-align: top
border: 1px solid rgba(0, 0, 0, 0.2)
text-align: center
white-space: nowrap
display: inline-block
cursor: pointer
background: white
transition: background-color .2s ease
&:disabled + label
color: #eee
background: white
cursor: not-allowed
// &:required + label
|
Add styles for loading indicator | .loader
z-index: 10000
position: fixed
top: 0
right: 0
width: 300px
height: 300px
background: #2980B9
transition: transform 0.3s
transform: translateX(100%) translateY(-100%) rotate(45deg)
&.loader-active
transform: translateX(50%) translateY(-50%) rotate(45deg)
&::before, &::after
position: absolute
bottom: 30px
left: 50%
display: block
border: 5px solid #fff
border-radius: 50%
content: ''
&::before
margin-left: -40px
width: 80px
height: 80px
border-right-color: darken(#2980B9, 5%)
border-left-color: darken(#2980B9, 5%)
animation: rotation 3s linear infinite
&::after
bottom: 50px
margin-left: -20px
width: 40px
height: 40px
border-top-color: darken(#2980B9, 5%)
border-bottom-color: darken(#2980B9, 5%)
animation: rotation 1s linear infinite
@keyframes rotation
0%
transform: rotate(0deg)
50%
transform: rotate(180deg)
100%
transform: rotate(360deg)
| |
Add Grodek's styles for color legend and menus | #search
position: relative
padding-left: 125px
padding-bottom: 1em
#search_input
width: 450px
padding: .25em
font-size: 1.25em
#search_button
height: 3em
width: 25px
#search_input, #search_button
border: 1px solid #cccccc
border-radius: 3px
background-color: #eeeeee
.metadata_list_section
padding-bottom: 1.5em
.data
padding-bottom: .5em
h2
font-size: 1.5em
margin-top: .25em
margin-bottom: -.15em
font-weight: 400
h2 + h3
padding-top: 0
h3
font-size: .8em
font-weight: 600
display: inline
a
font-weight: 600
//padding-right: 2em
background-color: #ccc
color: white
font-size: 1em
letter-spacing: .02em
padding: .1em .2em
border-radius: 1px
ul li
display: inline-block
padding-top: .5em
//padding-left: 2em
dl
display: inline-block
dl + h3
display: inline
dt:after
content: ":"
dd:after
content: ""
#select
color: #666666
font-weight: 400
font-size: 1em
opacity: .65
padding-top: .75em
padding-bottom: -.25em
.legend-data
font-size: .8em
.legend_region
font-size: .9em
.nav_dropdown
display: inline-block
position: relative
padding: 0 1em
ul
background-color: #fff
position: absolute
top: 100%
left: 0
display: none
list-style-type: none
&:hover ul
display: inline
input[type=range]
position: relative
top: .5em
margin: .5em .5em 0
.drop
padding: 0 1em .5em
color: #666666
&.special
margin-top: .5em
&.slide label span
display: block
input[type=range]
margin: 0 .1em 0 0
padding-top: 0
label
padding: 0 0 .3em
#pixel_pointer
padding-left: 15em
#legend_settings
padding-left: 2em
cursor: pointer
.color_scheme
cursor: pointer
color: #666666
opacity: 100
&:hover img
opacity: .5
&:hover li
color: #ccc
#input_buckets
margin-left: .5em
border: 1px solid lightgrey
text-align: right
&:focus
border: 1px solid darkgray
| |
Hide the failure message's stack trace using sbt.FeedbackProvidedException | // Copyright © 2013, Esko Luontola <www.orfjackal.net>
// This software is released under the Apache License 2.0.
// The license text is at http://www.apache.org/licenses/LICENSE-2.0
package fi.jumi.sbt
import sbt._
import sbt.Keys._
import fi.jumi.launcher.JumiBootstrap
object SbtJumiPlugin extends Plugin {
val jumiTest = TaskKey[Unit]("jumi-test", "Run tests using Jumi")
override val settings = Seq(
jumiTest <<= (fullClasspath in Test) map jumiTestTask dependsOn (compile in Test)
)
def jumiTestTask(testClasspath: Classpath) {
val bootstrap = new JumiBootstrap()
bootstrap.suite.
setClassPath(testClasspath map (_.data.toPath): _*).
addJvmOptions("-ea"). // TODO: parameterize
setIncludedTestsPattern("glob:**Test.class") // TODO: parameterize
bootstrap.
//enableDebugMode().
runSuite() // TODO: make fail without throwing the exception from here
}
}
| // Copyright © 2013, Esko Luontola <www.orfjackal.net>
// This software is released under the Apache License 2.0.
// The license text is at http://www.apache.org/licenses/LICENSE-2.0
package fi.jumi.sbt
import sbt._
import sbt.Keys._
import fi.jumi.launcher.JumiBootstrap
object SbtJumiPlugin extends Plugin {
val jumiTest = TaskKey[Unit]("jumi-test", "Run tests using Jumi")
override val settings = Seq(
jumiTest <<= (fullClasspath in Test) map jumiTestTask dependsOn (compile in Test)
)
def jumiTestTask(testClasspath: Classpath) {
val bootstrap = new JumiBootstrap()
bootstrap.suite.
setClassPath(testClasspath map (_.data.toPath): _*).
addJvmOptions("-ea"). // TODO: parameterize
setIncludedTestsPattern("glob:**Test.class") // TODO: parameterize
try {
bootstrap.runSuite()
} catch {
case e: AssertionError => throw new TestsFailedException
}
}
}
|
Add an interesting String<->Int prism modify example. | package monocle
import monocle.function.SafeCast._
import monocle.syntax.prism._
import org.specs2.scalaz.Spec
class SafeCastExample extends Spec {
"safeCast creates a Prism from Int to Char" in {
safeCast[Int, Char].getOption(65) shouldEqual Some('A')
safeCast[Int, Char].reverseGet('a') shouldEqual 97
// with some syntax sugar
(65 <-? safeCast[Int, Char] getOption) shouldEqual Some('A')
}
"safeCast creates a Prism from String to Int" in {
safeCast[String, Int].getOption("352") shouldEqual Some(352)
safeCast[String, Int].reverseGet(8921) shouldEqual "8921"
safeCast[String, Int].getOption("") shouldEqual None
}
"safeCast creates a Prism from String to Boolean" in {
safeCast[String, Boolean].getOption("true") shouldEqual Some(true)
safeCast[String, Boolean].reverseGet(false) shouldEqual "false"
}
// idem for all other instances of SafeCast
}
| package monocle
import monocle.function.SafeCast._
import monocle.syntax.prism._
import org.specs2.scalaz.Spec
class SafeCastExample extends Spec {
"safeCast creates a Prism from Int to Char" in {
safeCast[Int, Char].getOption(65) shouldEqual Some('A')
safeCast[Int, Char].reverseGet('a') shouldEqual 97
// with some syntax sugar
(65 <-? safeCast[Int, Char] getOption) shouldEqual Some('A')
}
"safeCast creates a Prism from String to Int" in {
safeCast[String, Int].getOption("352") shouldEqual Some(352)
safeCast[String, Int].reverseGet(8921) shouldEqual "8921"
safeCast[String, Int].getOption("") shouldEqual None
}
"With safeCast[String,Int] one could map a String with an Int => Int function." in {
safeCast[String, Int].modify("1024", _ * 2) shouldEqual "2048"
}
"safeCast creates a Prism from String to Boolean" in {
safeCast[String, Boolean].getOption("true") shouldEqual Some(true)
safeCast[String, Boolean].reverseGet(false) shouldEqual "false"
}
// idem for all other instances of SafeCast
}
|
Add link, feed to general | package io.flow.oneapi
case class Module(name: String, serviceNames: Seq[String])
object Module {
val General = Module("general", Seq("common", "healthcheck", "organization", "search", "session", "token", "user"))
val Webhook = Module("webhook", Seq("webhook"))
val All = Seq(
Module("localization", Seq("catalog", "experience")),
Module("pricing", Seq("currency")),
Module("landed cost", Seq("harmonization")),
Module("payment", Seq("payment")),
Module("logistics", Seq("fulfillment", "inventory", "label", "ratecard", "return", "tracking")),
Webhook,
Module("customer service", Nil),
Module("geolocation", Seq("location")),
Module("reference", Seq("reference")),
Module("partner", Seq("partner")),
General
)
def findByServiceName(name: String): Option[Module] = {
All.find(_.serviceNames.contains(name.toLowerCase))
}
def findByModuleName(name: String): Option[Module] = {
All.find(_.name == name.toLowerCase)
}
def moduleSortIndex(name: String): Int = {
val module = findByModuleName(name).getOrElse {
sys.error(s"Invalid module[$name]")
}
val i = All.indexOf(module)
assert(i >= 0, s"Could not find module: $module")
i
}
}
| package io.flow.oneapi
case class Module(name: String, serviceNames: Seq[String])
object Module {
val General = Module("general", Seq("common", "feed", "healthcheck", "link", "organization", "search", "session", "token", "user"))
val Webhook = Module("webhook", Seq("webhook"))
val All = Seq(
Module("localization", Seq("catalog", "experience")),
Module("pricing", Seq("currency")),
Module("landed cost", Seq("harmonization")),
Module("payment", Seq("payment")),
Module("logistics", Seq("fulfillment", "inventory", "label", "ratecard", "return", "tracking")),
Webhook,
Module("customer service", Nil),
Module("geolocation", Seq("location")),
Module("reference", Seq("reference")),
Module("partner", Seq("partner")),
General
)
def findByServiceName(name: String): Option[Module] = {
All.find(_.serviceNames.contains(name.toLowerCase))
}
def findByModuleName(name: String): Option[Module] = {
All.find(_.name == name.toLowerCase)
}
def moduleSortIndex(name: String): Int = {
val module = findByModuleName(name).getOrElse {
sys.error(s"Invalid module[$name]")
}
val i = All.indexOf(module)
assert(i >= 0, s"Could not find module: $module")
i
}
}
|
Update the SBT plugin versions. | addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.2.27")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.5")
| addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.3.4")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.6")
|
Fix for that slightly not compiling previous pa... | /* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2003-2011, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
\* */
package scala.util.control
/** A trait for exceptions which, for efficiency reasons, do not
* fill in the stack trace. Stack trace suppression can be disabled
* on a global basis via a system property wrapper in
* [[scala.sys.SystemProperties]].
*
* @author Paul Phillips
* @since 2.8
*/
trait NoStackTrace extends Throwable {
override def fillInStackTrace(): Throwable =
if (noSuppression) super.fillInStackTrace()
else this
}
object NoStackTrace {
final val noSuppression = sys.SystemProperties.noTraceSupression.value
}
| /* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2003-2011, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
\* */
package scala.util.control
/** A trait for exceptions which, for efficiency reasons, do not
* fill in the stack trace. Stack trace suppression can be disabled
* on a global basis via a system property wrapper in
* [[scala.sys.SystemProperties]].
*
* @author Paul Phillips
* @since 2.8
*/
trait NoStackTrace extends Throwable {
override def fillInStackTrace(): Throwable =
if (NoStackTrace.noSuppression) super.fillInStackTrace()
else this
}
object NoStackTrace {
final val noSuppression = sys.SystemProperties.noTraceSupression.value
}
|
Fix non-exhaustive match in macro code parsing | package scala.reflect.macros
package contexts
import scala.tools.nsc.reporters.StoreReporter
trait Parsers {
self: Context =>
import global._
def parse(code: String) = {
val sreporter = new StoreReporter()
val oldReporter = global.reporter
try {
global.reporter = sreporter
val parser = newUnitParser(new CompilationUnit(newSourceFile(code, "<macro>")))
val tree = gen.mkTreeOrBlock(parser.parseStatsOrPackages())
sreporter.infos.foreach {
case sreporter.Info(pos, msg, sreporter.ERROR) => throw ParseException(pos, msg)
}
tree
} finally global.reporter = oldReporter
}
} | package scala.reflect.macros
package contexts
import scala.tools.nsc.reporters.StoreReporter
trait Parsers {
self: Context =>
import global._
def parse(code: String) = {
val sreporter = new StoreReporter()
val oldReporter = global.reporter
try {
global.reporter = sreporter
val parser = newUnitParser(new CompilationUnit(newSourceFile(code, "<macro>")))
val tree = gen.mkTreeOrBlock(parser.parseStatsOrPackages())
sreporter.infos.foreach {
case sreporter.Info(pos, msg, sreporter.ERROR) => throw ParseException(pos, msg)
case _ =>
}
tree
} finally global.reporter = oldReporter
}
}
|
Implement a simple counter-incrementing test for the ScheduledPoolTimer | package com.twitter.util
import org.specs.Specification
import org.specs.mock.Mockito
object TimerSpec extends Specification with Mockito {
"ReferenceCountedTimer" should {
val underlying = mock[Timer]
val factory = mock[() => Timer]
factory() returns underlying
val refcounted = new ReferenceCountedTimer(factory)
there was no(factory)()
"call the factory when it is first acquired" in {
refcounted.acquire()
there was one(factory)()
}
"stop the underlying timer when acquire count reaches 0" in {
refcounted.acquire()
refcounted.acquire()
refcounted.acquire()
there was one(factory)()
refcounted.stop()
there was no(underlying).stop()
refcounted.stop()
there was no(underlying).stop()
refcounted.stop()
there was one(underlying).stop()
}
}
"ScheduledPoolTimer" should {
"initialize and stop" in {
val timer = new ScheduledPoolTimer(1)
timer must notBeNull
timer.stop()
}
}
}
| package com.twitter.util
import java.util.concurrent.atomic.AtomicInteger
import com.twitter.conversions.time._
import org.specs.Specification
import org.specs.mock.Mockito
object TimerSpec extends Specification with Mockito {
"ReferenceCountedTimer" should {
val underlying = mock[Timer]
val factory = mock[() => Timer]
factory() returns underlying
val refcounted = new ReferenceCountedTimer(factory)
there was no(factory)()
"call the factory when it is first acquired" in {
refcounted.acquire()
there was one(factory)()
}
"stop the underlying timer when acquire count reaches 0" in {
refcounted.acquire()
refcounted.acquire()
refcounted.acquire()
there was one(factory)()
refcounted.stop()
there was no(underlying).stop()
refcounted.stop()
there was no(underlying).stop()
refcounted.stop()
there was one(underlying).stop()
}
}
"ScheduledPoolTimer" should {
"initialize and stop" in {
val timer = new ScheduledPoolTimer(1)
timer must notBeNull
timer.stop()
}
"increment a counter" in {
val timer = new ScheduledPoolTimer(1)
val counter = new AtomicInteger(0)
timer.schedule(0.millis, 20.millis) {
counter.incrementAndGet()
}
Thread.sleep(1.second.inMillis)
timer.stop()
counter.get() must beCloseTo(50, 1)
}
}
}
|
Build new WizardPanel each time it is open | package org.openmole.gui.client.core
import org.openmole.gui.client.core.files.{ FileDisplayer, TreeNodePanel, TreeNodeTabs }
/*
* Copyright (C) 24/07/15 // mathieu.leclaire@openmole.org
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package object panels {
val executionPanel = new ExecutionPanel
val treeNodeTabs = new TreeNodeTabs()
val fileDisplayer = new FileDisplayer(treeNodeTabs)
val treeNodePanel = TreeNodePanel()
val modelWizardPanel = new ModelWizardPanel
val marketPanel = new MarketPanel
val pluginPanel = new PluginPanel
val stackPanel = new TextPanel("Error stack")
}
| package org.openmole.gui.client.core
import org.openmole.gui.client.core.files.{ FileDisplayer, TreeNodePanel, TreeNodeTabs }
/*
* Copyright (C) 24/07/15 // mathieu.leclaire@openmole.org
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package object panels {
val executionPanel = new ExecutionPanel
val treeNodeTabs = new TreeNodeTabs()
val fileDisplayer = new FileDisplayer(treeNodeTabs)
val treeNodePanel = TreeNodePanel()
def modelWizardPanel = new ModelWizardPanel
val marketPanel = new MarketPanel
val pluginPanel = new PluginPanel
val stackPanel = new TextPanel("Error stack")
}
|
Update configuration to record version 0.4.2 | name := "apibuilder-validation"
organization := "io.flow"
scalaVersion in ThisBuild := "2.12.8"
crossScalaVersions := Seq("2.12.8")
lazy val root = project
.in(file("."))
.settings(
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play-json" % "2.7.1",
"org.apache.commons" % "commons-compress" % "1.18",
"org.scalatest" %% "scalatest" % "3.0.5" % Test
),
credentials += Credentials(
"Artifactory Realm",
"flow.jfrog.io",
System.getenv("ARTIFACTORY_USERNAME"),
System.getenv("ARTIFACTORY_PASSWORD")
)
)
publishTo := {
val host = "https://flow.jfrog.io/flow"
if (isSnapshot.value) {
Some("Artifactory Realm" at s"$host/libs-snapshot-local;build.timestamp=" + new java.util.Date().getTime)
} else {
Some("Artifactory Realm" at s"$host/libs-release-local")
}
}
version := "0.4.1"
| name := "apibuilder-validation"
organization := "io.flow"
scalaVersion in ThisBuild := "2.12.8"
crossScalaVersions := Seq("2.12.8")
lazy val root = project
.in(file("."))
.settings(
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play-json" % "2.7.1",
"org.apache.commons" % "commons-compress" % "1.18",
"org.scalatest" %% "scalatest" % "3.0.5" % Test
),
credentials += Credentials(
"Artifactory Realm",
"flow.jfrog.io",
System.getenv("ARTIFACTORY_USERNAME"),
System.getenv("ARTIFACTORY_PASSWORD")
)
)
publishTo := {
val host = "https://flow.jfrog.io/flow"
if (isSnapshot.value) {
Some("Artifactory Realm" at s"$host/libs-snapshot-local;build.timestamp=" + new java.util.Date().getTime)
} else {
Some("Artifactory Realm" at s"$host/libs-release-local")
}
}
version := "0.4.2"
|
Add scalaz-concurrent as dependency for experiment examples | name := "funalgebra"
scalaVersion := "2.10.3"
val scalazVersion = "7.0.5"
libraryDependencies ++= Seq(
"org.scalaz" %% "scalaz-core" % scalazVersion,
"org.scalaz" %% "scalaz-effect" % scalazVersion,
"org.scalaz" %% "scalaz-typelevel" % scalazVersion,
"org.scalaz" %% "scalaz-xml" % scalazVersion,
"org.scalaz" %% "scalaz-scalacheck-binding" % scalazVersion % "test"
)
scalacOptions += "-feature"
initialCommands in console := "import scalaz._, Scalaz._"
| name := "funalgebra"
scalaVersion := "2.10.3"
val scalazVersion = "7.0.5"
libraryDependencies ++= Seq(
"org.scalaz" %% "scalaz-core" % scalazVersion,
"org.scalaz" %% "scalaz-effect" % scalazVersion,
"org.scalaz" %% "scalaz-concurrent" % scalazVersion,
"org.scalaz" %% "scalaz-typelevel" % scalazVersion,
"org.scalaz" %% "scalaz-xml" % scalazVersion,
"org.scalaz" %% "scalaz-scalacheck-binding" % scalazVersion % "test"
)
scalacOptions += "-feature"
initialCommands in console := "import scalaz._, Scalaz._"
|
Clean and help Intellij presentation compiler | package sampler.maths
import sampler._
import org.scalatest.Matchers
import org.scalatest.FreeSpec
import org.scalatest.prop.GeneratorDrivenPropertyChecks
import org.scalacheck.Gen
class RangeChecksTest extends FreeSpec
with Matchers
with GeneratorDrivenPropertyChecks {
"Individual probabilities" in {
assert(0.0.isProbability)
assert(1.0.isProbability)
assert(!(1 + 1e-10).isProbability)
assert(!(0 - 1e-10).isProbability)
forAll{p: Double =>
whenever(p >= 0 && p <= 1){
assert(p.isProbability)
}
}
forAll{p: Double =>
whenever(p < 0 || p > 1){
assert(!p.isProbability)
}
}
}
"Traversable of probabilities" in {
assert(Seq(0, 0.1, 0.2, 0.3, 0.4, 0.9, 0.9999, 1).areProbabilities)
assert(!Seq(0, 0.1, 0.2, 0.3, 1 + 1e-10, 0.9, 0.9999, 1).areProbabilities)
}
} | package sampler.maths
import org.scalatest.{FreeSpec, Matchers}
import org.scalatest.prop.GeneratorDrivenPropertyChecks
import sampler._
class RangeChecksTest extends FreeSpec
with Matchers
with GeneratorDrivenPropertyChecks {
"Individual probabilities" in {
assert(0.0.isProbability)
assert(1.0.isProbability)
assert(!(1 + 1e-10).isProbability)
assert(!(0 - 1e-10).isProbability)
forAll{p: Double =>
whenever(p >= 0 && p <= 1){
assert(p.isProbability)
}
}
forAll{p: Double =>
whenever(p < 0 || p > 1){
assert(!p.isProbability)
}
}
}
"Traversable of probabilities" in {
assert(Seq(0.0, 0.1, 0.2, 0.3, 0.4, 0.9, 0.9999, 1.0).areProbabilities)
assert(!Seq(0.0, 0.1, 0.2, 0.3, 1 + 1e-10, 0.9, 0.9999, 1.0).areProbabilities)
}
} |
Fix a buf for scala 2.9 | // code-examples/Rounding/days-enumeration-script.scala
object WeekDay extends Enumeration {
type WeekDay = Value
val Mon, Tue, Wed, Thu, Fri, Sat, Sun = Value
}
import WeekDay._
def isWorkingDay(d: WeekDay) = ! (d == Sat || d == Sun)
WeekDay filter isWorkingDay foreach println
| // code-examples/Rounding/days-enumeration-script.scala
object WeekDay extends Enumeration {
type WeekDay = Value
val Mon, Tue, Wed, Thu, Fri, Sat, Sun = Value
}
import WeekDay._
def isWorkingDay(d: WeekDay) = ! (d == Sat || d == Sun)
WeekDay.values filter isWorkingDay foreach println
|
Add render benchmark and use better sample vnode | package benchmarks
import co.technius.scalajs.mithril._
import japgolly.scalajs.benchmark._
import japgolly.scalajs.benchmark.gui._
import scala.scalajs.js
import org.scalajs.dom.document
object Benchmarks extends js.JSApp {
val suite = GuiSuite(
Suite("Simple VNode construction")(
Benchmark("mithril only") {
m("div", js.Array[VNode](
m("p", "Hi")
))
},
Benchmark("with scalatags") {
import VNodeScalatags.all._
div(
p("Hi")
).render
}
)
)
def main(): Unit = {
val body = document.getElementsByTagName("body")(0)
BenchmarkGUI.renderSuite(body)(suite)
}
}
| package benchmarks
import co.technius.scalajs.mithril._
import japgolly.scalajs.benchmark._
import japgolly.scalajs.benchmark.gui._
import scala.scalajs.js
import scala.scalajs.js.JSConverters._
import org.scalajs.dom.document
object Benchmarks extends js.JSApp {
val sampleData = ('a' to 'g').permutations.map(_.mkString)
def vnodeMithril() =
m("div", js.Array[VNode](
m("div.header", js.Array[VNode](
m("h1", "Sample Data")
)),
m("ul.data-list", sampleData.map { data =>
m("li", data)
}.toJSArray)
))
def vnodeScalatagsExt() = {
import VNodeScalatags.all._
div(
div(cls := "header")(
h1("Sample Data")
),
ul(cls := "data-list")(sampleData.map { data =>
m("li", data)
}.toSeq)
).render
}
val vnodeSuite = GuiSuite(
Suite("Simple VNode construction")(
Benchmark("scalajs-mithril only") {
vnodeMithril()
},
Benchmark("with scalatags extension") {
vnodeScalatagsExt()
}
)
)
val renderSuite = GuiSuite(
Suite("Rendering")(
Benchmark("scalajs-mithril only") {
val parent = document.createElement("div")
m.render(parent, vnodeMithril())
},
Benchmark("with scalatags extension") {
val parent = document.createElement("div")
m.render(parent, vnodeScalatagsExt())
}
)
)
def main(): Unit = {
val body = document.getElementsByTagName("body")(0)
BenchmarkGUI.renderMenu(body)(
vnodeSuite,
renderSuite
)
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.