1 /* This file is part of Indico.
2 * Copyright (C) 2002 - 2015 European Organization for Nuclear Research (CERN).
4 * Indico is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 3 of the
7 * License, or (at your option) any later version.
9 * Indico is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with Indico; if not, see <http://www.gnu.org/licenses/>.
20 @import 'compass/css3/user-interface';
21 @import 'compass/support';
22 @import 'partials/boxes';
23 @import 'partials/buttons';
24 @import 'partials/icons';
25 @import 'partials/toolbars';
27 // ============================================================================
29 // ============================================================================
33 @extend .i-box.titled;
37 .regform-section-title {
41 // ============================================================================
43 // ============================================================================
46 @extend %regform-section;
55 .section-header-content {
65 .clearableinput + .clearableinput {
70 .section-field-divisor {
79 .section-group-title {
84 .section-placeholder {
89 .section-sortable-handle {
90 @include icon-before('icon-handle');
92 background-color $default-transition-duration $default-transition-function,
93 height $default-transition-duration $default-transition-function
96 background-color: lighten($dark-gray, $color-variation);
100 margin: -10px -10px 10px -10px;
105 @include border-bottom();
106 background-color: white;
116 @include rotate(90deg);
117 @include single-transition(top);
119 display: inline-block;
127 @include single-transition(background-color);
132 // TODO Any better idea? This is hackish as hell
134 word-break: break-word;
137 background: $light-gray;
153 display: inline-block;
168 padding: 5px 2px 10px 2px;
175 .field-input-only-content {
176 display: inline-block;
183 // ============================================================================
184 // Post-registration page
185 // ============================================================================
188 @extend %regform-section;
191 .regform-done-title {
192 @include border-bottom(lighten($gray, $color-variation));
195 margin: 15px 0 5px 0;
198 tr:first-child .regform-done-title {
202 .regform-done-caption {
203 border-bottom: 1px dashed lighten($gray, $color-variation);
204 border-right: 1px dashed lighten($gray, $color-variation);
216 .regform-done-table-title {
217 @include border-bottom(lighten($gray, $color-variation));
220 &:not(:first-child) {
225 .regform-done-table-item {
229 &:not(:first-child) {
235 background: $light-gray;
239 .regform-done-table-total {
240 @include border-top(lighten($gray, $color-variation));
245 .regform-done-conditions {
248 input[type=checkbox] {
258 .regform-done-checkout {
286 vertical-align: -15%;
291 .payment-terms-agreement {
296 .regform-add-field-qtip {
297 @include border-all();
305 @include border-bottom();
315 .ui-tooltip-content {
319 .ui-tooltip-titlebar {
320 border-bottom: none !important;
321 background: transparent;
331 @extend .i-button.big;
332 @extend .i-button.highlight;
333 @extend .i-button.next;
346 @extend %font-family-monospace;
355 // ============================================================================
357 // ============================================================================
359 .regform-field.editable {
362 background-color: $light-blue;
373 @include border-bottom();
379 background: white !important;
393 background: $light-blue;
396 &.empty-row:hover td {
397 background: white !important;
411 &:hover td.row-actions a {
417 background: $light-gray;
421 // ============================================================================
423 // ============================================================================
443 .accommodation-option-item {
448 margin: 3px 0 0 21px;
461 @include icon-before('icon-file');
466 @include icon-before('icon-close');
486 // ============================================================================
488 // ============================================================================
491 textarea.reason-input {
497 // ============================================================================
499 // ============================================================================
501 .no-currency-selected {
514 // ============================================================================
516 // ============================================================================
548 .regFormSectionNewSection {
549 @extend %font-family-title-light;
558 .regFormDialogTabContent {
563 .regFormDialogEditionTable {
568 .regFormDialogIntroText {
572 .regFormDialogEditLine {
578 .regFormDialogEditDatesOffset {
579 border-collapse: collapse;
586 tr:not(.regFormDialogCaptionLine) td:first-child {
590 tr.regFormDialogCaptionLine td {
599 .regFormDialogCaption {
602 display: inline-block;
607 .regFormDialogCaptionLine {
613 padding-bottom : 7px;
616 /* Form Display CSS */
618 .regform-mandatory-info {
625 /* Form Edition CSS */
627 input.regFormTitleInputMgmt {
628 @extend %font-family-title-light;
636 input[name="price"].ng-invalid-required {
637 border: 1px solid red;
640 textarea.regFormDescriptionInputMgmt {
641 @extend %font-family-description;
644 color: rgb(34, 34, 34);
649 .regFormSectionTable,
651 border: 1px solid #CCC;
653 -moz-border-radius: 5px;
660 .regFormMandatoryField {
665 /* CSS for the tabs */
667 .regFormDonePlacesNeeded {
688 .navbar-fixed-top .container,
689 .navbar-fixed-bottom .container {
693 // ============================================================================
695 // ============================================================================
709 .tabs-left > .nav-tabs {
712 .tabs-left > .nav-tabs > li,
713 .tabs-right > .nav-tabs > li {
716 .tabs-left > .nav-tabs > li > a,
717 .tabs-right > .nav-tabs > li > a {
722 .tabs-left > .nav-tabs {
723 display: inline-block;
726 border-right: 1px solid #ddd;
728 .tabs-left > .nav-tabs > li > a {
730 -webkit-border-radius: 4px 0 0 4px;
731 -moz-border-radius: 4px 0 0 4px;
732 border-radius: 4px 0 0 4px;
734 .tabs-left > .nav-tabs > li > a:hover {
735 border-color: #eeeeee #dddddd #eeeeee #eeeeee;
737 .tabs-left > .nav-tabs .active > a,
738 .tabs-left > .nav-tabs .active > a:hover {
739 border-color: #ddd transparent #ddd #ddd;
740 *border-right-color: #ffffff;
751 .nav > li > a:hover {
752 text-decoration: none;
753 background-color: #eeeeee;
765 text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
766 text-transform: uppercase;
769 .nav li + .nav-header {
778 .nav-pills > li > a {
785 border-bottom: 1px solid #ddd;
794 border: 1px solid transparent;
795 -webkit-border-radius: 4px 4px 0 0;
796 -moz-border-radius: 4px 4px 0 0;
797 border-radius: 4px 4px 0 0;
799 .nav-tabs > li > a:hover {
800 border-color: #eeeeee #eeeeee #dddddd;
802 .nav-tabs > .active > a,
803 .nav-tabs > .active > a:hover {
805 background-color: #ffffff;
806 border: 1px solid #ddd;
807 border-bottom-color: transparent;
811 display: inline-block;
814 .tabs-below > .nav-tabs,
815 .tabs-right > .nav-tabs,
816 .tabs-left > .nav-tabs {
819 .tab-content > .tab-pane,
820 .pill-content > .pill-pane {
823 .tab-content > .active,
824 .pill-content > .active {
828 // ============================================================================
830 // ============================================================================
832 %regform-sortable-placeholder {
833 background-color: $light-gray;
836 .regform-field-sortable-placeholder {
837 @extend %regform-sortable-placeholder;
838 @include border-vert($gray, dashed);
840 // TODO Any better idea? This is hackish as hell
844 .regform-section-sortable-placeholder {
845 @extend %regform-sortable-placeholder;
846 @extend %regform-section;
847 @include border-all($gray, dashed);
848 @include box-shadow(none);
851 .regform-table-sortable-placeholder {
852 background-color: $light-blue;
856 .regform-field.editable {
857 .field-sortable-handle {
864 &:not(.disabled):hover .field-sortable-handle,
865 &:not(.disabled):active .field-sortable-handle {
866 @include icon-before('icon-handle');
872 padding-bottom: 25px;
874 tr:hover .table-sortable-handle,
875 td:active .table-sortable-handle{
876 @include icon-before('icon-handle');
879 .table-sortable-handle {
886 // ============================================================================
888 // ============================================================================
890 .regform-section .i-box-header,
891 .i-button.highlightable {
892 @include single-transition(background, 1s, ease-out);
895 .section-highlight-enter .regform-section .i-box-header,
896 .button-highlight-enter {
900 // ============================================================================
901 // Contenteditable-related
902 // ============================================================================
904 .regform-section .i-box-title,
905 .regform-section .i-box-description,
907 &[contenteditable]+.button-box {
917 text-shadow: 1px 1px 1px $gray;
946 .regform-section .i-box-description[contenteditable],
947 .regFormText[contenteditable] {
949 min-height: 27px !important;
953 font-size: 1.5em !important;
954 line-height: 27px !important;
958 .regform-section .i-box-description[contenteditable] {
960 padding-right: 3.6em !important;
964 // ============================================================================
965 // RegistrantsListStats-related
966 // ============================================================================
968 .i-box.registrant-stats {
970 & > .i-box-title { float: left; }
971 & > .i-box-header-text {
976 @include border-radius();
983 background-color: $dark-blue;
988 &.headline { clear: both; }
992 &> table.registrant-stats {
993 border-collapse: collapse;
998 border-bottom: 2px solid $gray;
1002 padding-right: 10px;
1008 &:nth-child(even) { background-color: $light-gray; }
1009 &:nth-child(odd) { background-color: white; }
1010 &:first-child td { border-top: 0; }
1012 &:not(.sub-row) td.cancelled-item:first-child {
1016 border-bottom: 2px solid $light-black;
1027 border-top: 1px solid $gray;
1029 &:first-child, &:last-child { font-weight: bold; }
1031 &.paid-unpaid-progress > .i-progress > .i-progress-bar {
1032 &:first-child { background: $pastel-green; }
1033 &:nth-child(2) { background: $pastel-red; }
1035 &.no-stats-data { color: $dark-gray; }
1036 &.paid-amount span { color: $green; }
1038 &:before { content: "("; }
1039 &:after { content: ")"; }
1040 span { color: $red; }
1042 &.stick-left { padding-right: 1px; }
1043 &.stick-right { padding-left: 1px; }
1047 td:first-child:before {
1048 display: inline-block;
1051 vertical-align: middle;
1056 @include user-select(none);
1059 @include icon-before('icon-arrow-down');
1063 @include transition(transform 0.15s ease-out);
1065 -webkit-transform-origin: 50% 51%; // improve blurry text on rotate with chrome
1068 &.collapsed td:first-child:before { @include rotate(-90deg); }
1070 &.single-row td:first-child:before { content: "\2001"; }
1071 &.sub-row td:first-child { border-top: 0px; }
1077 &:first-child { text-align: left; }
1078 i[class^="icon-"] { vertical-align: middle; }
1085 color: $light-black;
1092 font-weight: lighter;
1107 vertical-align: middle;
1114 margin-right: 0.4em;
1121 background-color: $pastel-green;
1123 & > .i-progress-bar {
1124 background-color: $pastel-red;
1131 &> .i-badges-list > .i-badge > .i-badge-content { height: 6.5em; }
1133 .jqplot-point-label {
1137 .jqplot-yaxis-tick {
1139 margin-right: 0.5em;
1141 .jqplot-xaxis-tick { margin-top: 0.2em; }
1145 @include user-select(none);