1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 17:33:14 +01:00
onion/sass/ascribe_custom_style.scss

602 lines
14 KiB
SCSS
Raw Normal View History

2015-10-08 11:12:15 +02:00
html,
body {
2015-10-12 17:55:02 +02:00
font-family: $ascribe--font;
font-weight: $ascribe--font-weight-light;
2015-10-16 13:00:19 +02:00
background-color: #f8f8f8 !important;
2015-10-08 11:12:15 +02:00
}
h1, h3 {
2015-10-12 17:55:02 +02:00
font-family: $ascribe--font;
font-weight: $ascribe--font-weight-light;
}
2015-10-08 20:26:29 +02:00
h1 {
font-size: 30px;
}
2015-10-12 17:55:02 +02:00
hr {
border-top: 1px solid $ascribe-blue-border;
}
2015-10-08 11:12:15 +02:00
.nav .open > a,
.nav .open > a:hover,
.nav .open > a:focus {
border-color: transparent;
}
.navbar-default {
2015-10-08 11:12:15 +02:00
background-color: $ascribe--nav-bg-color;
2015-10-16 13:00:19 +02:00
box-shadow: 0 0 1px rgba(0,0,0,.1),
0 1px 2px rgba(0,0,0,.2);
.navbar-nav > li > a,
.navbar-nav > li > .active a {
text-transform: uppercase;
2015-10-08 11:12:15 +02:00
font-size: 12px;
font-weight: $ascribe--font-weight-light;
2015-10-08 20:26:29 +02:00
color: $ascribe--nav-fg-prim-color;
border-bottom: 3px solid transparent;
2015-10-08 11:12:15 +02:00
}
.navbar-nav > li > a:hover {
color: $ascribe--nav-fg-sec-color;
}
.navbar-nav > .active a,
.navbar-nav > .active a:hover,
.navbar-nav > .active a:focus {
2015-10-08 11:12:15 +02:00
color: $ascribe--nav-fg-prim-color;
border-bottom-color: $ascribe--nav-fg-prim-color;
background-color: $ascribe--nav-bg-color;
font-weight: $ascribe--font-weight-light;
}
.navbar-nav > .active {
2015-10-08 11:12:15 +02:00
background-color: $ascribe--nav-bg-color;
}
.navbar-nav > .open > a,
.dropdown-menu > .active > a {
color: $ascribe--nav-fg-prim-color;
background-color: $ascribe--nav-bg-color;
}
.navbar-nav > .open > a:hover,
.navbar-nav > .open > a:focus,,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
background-color: rgba($ascribe--button-default-color, .05);
2015-10-08 11:12:15 +02:00
}
2015-10-08 20:26:29 +02:00
.dropdown-menu {
background-color: $ascribe--nav-bg-color;
}
.navbar-nav > li > .dropdown-menu {
padding: 0;
}
2015-10-08 11:12:15 +02:00
.dropdown-menu > li > a {
color: $ascribe--nav-fg-prim-color;
font-weight: $ascribe--font-weight-light;
padding-bottom: 9px;
padding-top: 9px;
}
2015-10-08 11:12:15 +02:00
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
background-color: rgba($ascribe--button-default-color, .05);
2015-10-08 11:12:15 +02:00
}
.dropdown-menu > .divider {
margin: 0;
}
2015-10-08 20:26:29 +02:00
.notification-menu {
.dropdown-menu {
background-color: white;
li:hover {
background-color: $ascribe-white;
}
}
.notification-action{
color: $ascribe-pink;
}
}
.navbar-brand {
2015-10-08 20:26:29 +02:00
font-size: 23px;
padding: 12px 15px;
.icon-ascribe-logo {
color: $ascribe--nav-fg-prim-color;
&:hover {
color: $ascribe--nav-fg-sec-color;
text-decoration: none;
}
&:focus {
text-decoration: none;
}
}
.img-brand {
height: 100%;
}
2015-10-08 11:12:15 +02:00
}
2015-10-08 11:12:15 +02:00
.img-brand .navbar-brand {
width: 0;
height: 0;
padding-right: 120px;
padding-bottom: 36px;
padding-left: 30px;
2015-10-15 10:08:22 +02:00
background: transparent no-repeat center 4px;
background-size: 150px;
margin-bottom: 0;
position: relative;
}
2015-10-09 13:14:29 +02:00
.navbar-toggle .icon-bar {
background-color: $ascribe--nav-fg-prim-color;
}
.navbar-toggle:hover,
.navbar-toggle:focus {
2015-10-08 11:12:15 +02:00
background-color: $ascribe--nav-bg-color;
}
}
2015-10-09 13:14:29 +02:00
.ascribe-icon {
font-size: 1.2em;
font-weight: $ascribe--font-weight-light;
2015-10-14 12:12:06 +02:00
}
.icon-ascribe-search{
2015-10-13 13:32:48 +02:00
color: $ascribe--button-default-color;
2015-10-09 13:14:29 +02:00
}
.ascribe-piece-list-toolbar .btn-ascribe-add{
display: none;
}
2015-10-14 12:12:06 +02:00
.ascribe-accordion-list {
margin-bottom: 1em;
}
2015-10-08 20:26:29 +02:00
.ascribe-accordion-list-item {
2015-10-09 13:14:29 +02:00
border: 1px solid $ascribe-blue-border;
2015-10-15 10:08:22 +02:00
box-shadow: 0 2px 2px -2px rgba(0,0,0,.18);
2015-10-09 13:14:29 +02:00
}
.ascribe-accordion-list-item .wrapper {
h1 {
font-size: 1.6em;
margin: .4em 0 0 0;
}
h3 {
font-size: 1.1em;
margin-bottom: 0.4em;
}
a:not(.btn) {
color: $ascribe-black
}
.accordion-list-item-header {
a div {
color: rgba(0,0,0,.6)
}
2015-10-08 20:26:29 +02:00
}
}
.ascribe-accordion-list-item-table {
tbody {
tr {
&:hover {
background-color: rgba($ascribe--button-default-color, .05);
border-left-color: rgba($ascribe--button-default-color, .5);
}
}
}
}
2015-10-08 20:26:29 +02:00
.ascribe-footer {
margin-top: 5em;
2015-10-08 20:26:29 +02:00
text-transform: uppercase;
background-color: $ascribe-white;
border-top: 1px solid rgba(0, 60, 105, 0.1);
}
.route--landing {
margin: 0;
width: 100%;
padding: 5em 1em;
}
.route--login,
.route--signup {
2015-10-12 17:55:02 +02:00
.btn-spinner {
2015-10-09 13:14:29 +02:00
background-color: $ascribe--button-default-color;
}
}
.ascribe-accordion-list-item-table {
border-bottom: 0.1em solid $ascribe-blue-border;
border-left: 0.1em solid $ascribe-blue-border;
border-right: 0.1em solid $ascribe-blue-border;
}
.ascribe-table-header-column {
span {font-weight: 300;}
}
.route--login,
.route--signup {
.ascribe-form-bordered {
border: none;
}
}
.btn-ascribe-add {
width: 30px;
height: 30px;
background-color: transparent !important;
border: 1px solid $ascribe-dark-blue;
border-radius: 50%;
&:hover {
border-color: white!important;
background-color: $ascribe-dark-blue!important;
}
> span {
position: absolute;
left: 0;
top: 2px;
width: 30px;
height: 30px;
color: $ascribe-dark-blue;
padding: 0.4em;
&:hover {
color: white;
}
}
}
2015-10-14 12:12:06 +02:00
// buttons!
// thought of the day:
// "every great atrocity is the result of people just following orders"
2015-10-21 14:52:25 +02:00
.btn {
font-weight: $ascribe--font-weight-light;
}
.btn-default {
background-color: $ascribe--button-default-color;
border-color: $ascribe--button-default-color;
&:hover,
&:active,
&:focus,
&:active:hover,
&:active:focus,
&:active.focus,
&.active:hover,
&.active:focus,
&.active.focus {
background-color: lighten($ascribe--button-default-color, 20%);
border-color: lighten($ascribe--button-default-color, 20%);
}
}
// disabled buttons
.btn-default.disabled,
.btn-default.disabled:hover,
.btn-default.disabled:focus,
.btn-default.disabled.focus,
.btn-default.disabled:active,
.btn-default.disabled.active,
.btn-default[disabled],
.btn-default[disabled]:hover,
.btn-default[disabled]:focus,
.btn-default[disabled].focus,
.btn-default[disabled]:active,
.btn-default[disabled].active,
fieldset[disabled] .btn-default,
fieldset[disabled] .btn-default:hover,
fieldset[disabled] .btn-default:focus,
fieldset[disabled] .btn-default.focus,
fieldset[disabled] .btn-default:active,
fieldset[disabled] .btn-default.active {
2015-10-09 13:14:29 +02:00
background-color: darken($ascribe--button-default-color, 20%);
border-color: darken($ascribe--button-default-color, 20%);
}
.btn-secondary {
background-color: $ascribe--button-secondary-bg-color;
border-color: $ascribe--button-secondary-fg-color;
color: $ascribe--button-secondary-fg-color;
&:hover,
&:active,
&:focus,
&:active:hover,
&:active:focus,
&:active.focus,
&.active:hover,
&.active:focus,
&.active.focus {
background-color: $ascribe--button-secondary-fg-color;
border-color: $ascribe--button-secondary-bg-color;
color: $ascribe--button-secondary-bg-color;
}
}
// disabled buttons
.btn-secondary.disabled,
.btn-secondary.disabled:hover,
.btn-secondary.disabled:focus,
.btn-secondary.disabled.focus,
.btn-secondary.disabled:active,
.btn-secondary.disabled.active,
.btn-secondary[disabled],
.btn-secondary[disabled]:hover,
.btn-secondary[disabled]:focus,
.btn-secondary[disabled].focus,
.btn-secondary[disabled]:active,
.btn-secondary[disabled].active,
fieldset[disabled] .btn-secondary,
fieldset[disabled] .btn-secondary:hover,
fieldset[disabled] .btn-secondary:focus,
fieldset[disabled] .btn-secondary.focus,
fieldset[disabled] .btn-secondary:active,
fieldset[disabled] .btn-secondary.active {
background-color: darken($ascribe--button-secondary-bg-color, 20%);
border-color: darken($ascribe--button-secondary-fg-color, 20%);
color: darken($ascribe--button-secondary-fg-color, 20%);
}
2015-10-27 17:15:23 +01:00
.btn-tertiary {
background-color: transparent;
border-color: transparent;
color: $ascribe-dark-blue;
2015-10-27 17:15:23 +01:00
&:focus,
&:active:focus,
&:active.focus {
background-color: transparent;
border-color: transparent;
color: $ascribe-dark-blue;
2015-10-27 17:15:23 +01:00
}
&:hover,
&:active,
&:active:hover,
&.active:hover{
background-color: $ascribe-pink;
border-color: $ascribe-pink;
color: $ascribe-white;
}
}
2015-10-14 12:12:06 +02:00
.ascribe-piece-list-toolbar-filter-widget button {
background-color: transparent;
border: 1px solid transparent;
color: $ascribe--button-default-color;
&:hover,
&:active {
background-color: $ascribe--button-default-color !important;
border-color: $ascribe--button-default-color !important;
color: white;
}
}
.btn-wide {
font-weight: $ascribe--font-weight-light;
2015-10-14 12:12:06 +02:00
}
.btn-spinner, .btn-spinner:hover {
background-color: $ascribe--button-default-color;
border-color: $ascribe--button-default-color;
[class^="spinner-wrapper-"] {
color: white;
.spinner-circle {
border-color: white;
}
}
}
.btn-secondary .spinner-wrapper {
.spinner-circle,
.spinner-inner {
border-color: $ascribe--button-secondary-fg-color;
color: $ascribe--button-secondary-fg-color;
2015-10-08 20:26:29 +02:00
}
}
.open > .btn-default.dropdown-toggle:hover,
.open > .btn-default.dropdown-toggle:focus,
.open > .btn-default.dropdown-toggle.focus,
.open > .btn-default.dropdown-toggle.dropdown-toggle {
background-color: darken($ascribe--button-secondary-fg-color, 20%);
border-color: darken($ascribe--button-secondary-fg-color, 20%);
}
.pager li > a,
.pager li > span {
2015-10-09 13:14:29 +02:00
background-color: $ascribe--button-default-color;
border-color: $ascribe--button-default-color;
}
2015-10-16 13:00:19 +02:00
.pager li > a:hover,
.pager li > span:hover,
.pager li > a:focus,
.pager li > span:focus {
2015-10-16 13:00:19 +02:00
background-color: lighten($ascribe--button-default-color, 20%);
border-color: lighten($ascribe--button-default-color, 20%);
}
.pager .disabled > a,
.pager .disabled > span {
background-color: $ascribe--button-default-color!important;
border-color: $ascribe--button-default-color;
}
// inputs!
.ascribe-input-glyph > .form-group > .input-group > .input-group-addon > .filter-glyph {
2015-10-09 13:14:29 +02:00
color: $ascribe--button-default-color;
}
.search-bar > .form-group {
margin: 0;
}
2015-10-09 13:14:29 +02:00
.search-bar > .form-group > .input-group {
border: 1px solid rgba(0, 0, 0, 0);
&:hover, &:focus, &:active {
border-color: $ascribe-blue-border;
}
input::-webkit-input-placeholder {
color: rgba($ascribe-dark-blue, 0.5);
font-style: normal;
}
2015-10-15 10:08:22 +02:00
/* firefox 19+ */
2015-10-09 13:14:29 +02:00
input::-moz-placeholder {
color: rgba($ascribe-dark-blue, 0.5);
font-style: normal;
}
2015-10-15 10:08:22 +02:00
/* ie */
2015-10-09 13:14:29 +02:00
input:-ms-input-placeholder {
color: rgba($ascribe-dark-blue, 0.5);
font-style: normal;
}
input:-moz-placeholder {
color: rgba($ascribe-dark-blue, 0.5);
font-style: normal;
}
}
.ascribe-property-collapsible-toggle [type=checkbox]:checked + .checkbox:before,
.ascribe-checkbox-wrapper [type=checkbox]:checked + .checkbox:before {
2015-10-09 13:14:29 +02:00
color: $ascribe--button-default-color;
}
2015-10-12 17:55:02 +02:00
.ascribe-form-header {
background-color: transparent;
border-color: transparent;
}
.ascribe-form-bordered {
border-color: transparent;
}
// properties!
.is-focused {
2015-10-09 13:14:29 +02:00
border-left-color: $ascribe--button-default-color !important;
background-color: rgba($ascribe--button-default-color, .05);
}
2015-10-13 11:39:42 +02:00
.is-error {
> div {
> span {
color: rgba($ascribe-red-error, 1) !important;
}
}
&:hover {
2015-10-14 12:12:06 +02:00
border-left: 3px solid rgba($ascribe-red-error, .5)!important;
2015-10-13 11:39:42 +02:00
}
}
2015-10-12 15:34:06 +02:00
.ascribe-property-wrapper:hover {
2015-10-12 17:55:02 +02:00
border-left-color: rgba($ascribe-blue, .5);
}
.ascribe-accordion-list-item .wrapper:hover {
2015-10-09 13:14:29 +02:00
background-color: rgba($ascribe--button-default-color, .05);
}
2015-10-12 17:55:02 +02:00
.ascribe-property {
> div,
> input,
> pre,
> select,
> span:not(.glyphicon),
> p,
> p > span,
2015-10-12 17:55:02 +02:00
> textarea {
color: $ascribe-dark-blue;
2015-10-12 17:55:02 +02:00
font-family: $ascribe--font;
font-weight: $ascribe--font-weight-light;
2015-10-12 17:55:02 +02:00
}
> div {
> div:not(.file-drag-and-drop div) {
font-family: $ascribe--font;
font-weight: $ascribe--font-weight-light;
2015-10-12 17:55:02 +02:00
}
}
> span:not(.glyphicon) {
2015-10-13 11:39:42 +02:00
color: $ascribe--button-default-color;
2015-10-12 17:55:02 +02:00
}
textarea::-webkit-input-placeholder {
color: rgba($ascribe-dark-blue, 0.5);
font-style: normal;
}
2015-10-15 10:08:22 +02:00
/* firefox 19+ */
2015-10-12 17:55:02 +02:00
textarea::-moz-placeholder {
color: rgba($ascribe-dark-blue, 0.5);
font-style: normal;
}
2015-10-15 10:08:22 +02:00
/* ie */
2015-10-12 17:55:02 +02:00
textarea:-ms-input-placeholder {
color: rgba($ascribe-dark-blue, 0.5);
font-style: normal;
}
textarea:-moz-placeholder {
color: rgba($ascribe-dark-blue, 0.5);
font-style: normal;
}
input::-webkit-input-placeholder {
color: rgba($ascribe-dark-blue, 0.5);
font-style: normal;
}
2015-10-15 10:08:22 +02:00
/* firefox 19+ */
2015-10-12 17:55:02 +02:00
input::-moz-placeholder {
color: rgba($ascribe-dark-blue, 0.5);
font-style: normal;
}
2015-10-15 10:08:22 +02:00
/* ie */
2015-10-12 17:55:02 +02:00
input:-ms-input-placeholder {
color: rgba($ascribe-dark-blue, 0.5);
font-style: normal;
}
input:-moz-placeholder {
color: rgba($ascribe-dark-blue, 0.5);
font-style: normal;
}
}
2015-10-12 17:55:02 +02:00
// panel
.ascribe-panel-wrapper {
border: 1px solid $ascribe-blue-border;
}
// intercom stuff
#intercom-container .intercom-launcher-button {
2015-10-09 13:14:29 +02:00
background-color: $ascribe--button-default-color !important;
border-color: $ascribe--button-default-color !important;
}
// notifications
.ascribe-global-notification-success {
background-color: lighten($ascribe--button-default-color, 20%);
}
.action-file {
text-shadow: -1px 0 black,
0 1px black,
1px 0 black,
0 -1px black;
&:hover {
color: lighten($ascribe--button-default-color, 20%);
}
}