blob: 94dc223be3af420c5f2861b5858b2cbe473ea39a [file] [log] [blame]
Michael Landoefa037d2017-02-19 12:57:33 +02001.dox-ui {
AviZi280f8012017-06-09 02:39:56 +03002 @import "bootstrap";
3 @import "~react-select/dist/react-select.min.css";
Avi Zivb8e2faf2017-07-18 19:45:38 +03004 @import "~react-datepicker/dist/react-datepicker.min.css";
Michael Landoefa037d2017-02-19 12:57:33 +02005
AviZi280f8012017-06-09 02:39:56 +03006 @import "common";
7 @import "components";
8 @import "modules";
9}
Michael Landoefa037d2017-02-19 12:57:33 +020010
Avi Zivb8e2faf2017-07-18 19:45:38 +030011/* Out of namespace context for datepicker */
12div[data-reactroot].customized-date-picker-calendar {
13 @import "common/variables";
14 @import "common/typography";
Avi Zivb8e2faf2017-07-18 19:45:38 +030015 border-color: $light-gray;
16 margin-top: -8px;
Avi Ziv61070c92017-07-26 17:37:57 +030017 color: $black;
Avi Zivb8e2faf2017-07-18 19:45:38 +030018 .react-datepicker__triangle {
19 margin-top: 0px;
20 }
21 .react-datepicker__navigation--previous {
Avi Ziv61070c92017-07-26 17:37:57 +030022 border: none;
23 width: 12px;
24 height: 12px;
Avi Zivb8e2faf2017-07-18 19:45:38 +030025 margin-top: 2px;
az2497644017c2017-08-10 17:49:40 +030026 content: url(../../node_modules/sdc-ui/assets/icons/angleLeft.svg);
Avi Zivb8e2faf2017-07-18 19:45:38 +030027 }
28 .react-datepicker__navigation--next {
Avi Ziv61070c92017-07-26 17:37:57 +030029 border: none;
30 width: 12px;
31 height: 12px;
32 margin-top: 2px;
az2497644017c2017-08-10 17:49:40 +030033 content: url(../../node_modules/sdc-ui/assets/icons/angleRight.svg);
Avi Zivb8e2faf2017-07-18 19:45:38 +030034 }
Avi Ziv61070c92017-07-26 17:37:57 +030035 .react-datepicker__month-container {
Avi Zivb8e2faf2017-07-18 19:45:38 +030036 .react-datepicker__header {
37 background-color: $background-gray;
38 border-bottom: none;
39 .react-datepicker__current-month {
Avi Ziv61070c92017-07-26 17:37:57 +030040 @extend .body-1-semibold;
Avi Zivb8e2faf2017-07-18 19:45:38 +030041 background-color: $background-gray;
Avi Ziv61070c92017-07-26 17:37:57 +030042 margin-bottom: 10px;
Avi Zivb8e2faf2017-07-18 19:45:38 +030043 }
44 .react-datepicker__day-names {
Avi Ziv61070c92017-07-26 17:37:57 +030045 @extend .body-1;
Avi Zivb8e2faf2017-07-18 19:45:38 +030046 background-color: $white;
47 }
48 }
Avi Ziv61070c92017-07-26 17:37:57 +030049 .react-datepicker__day--selected, .react-datepicker__day--keyboard-selected {
50 @extend .body-1;
Avi Zivb8e2faf2017-07-18 19:45:38 +030051 background-color: $blue;
Avi Ziv61070c92017-07-26 17:37:57 +030052 color: $white;
Avi Zivb8e2faf2017-07-18 19:45:38 +030053 }
54 .react-datepicker__day {
Avi Ziv61070c92017-07-26 17:37:57 +030055 border-radius: 0px;
56 margin: 0;
57 flex: 1;
58 @extend .body-1;
59 }
60
61 .react-datepicker__day--in-range, .react-datepicker__day--in-selecting-range {
62 background-color: $tlv-hover;
63 color: $black;
64 &.react-datepicker__day--selected, &.react-datepicker__day--keyboard-selected, &.react-datepicker__day--range-start, &.react-datepicker__day--range-end {
65 background-color: $blue;
66 color: $white;
67 }
68 &.react-datepicker__day--selecting-range-start, &.react-datepicker__day--selecting-range-end {
69 background-color: lighten($blue, 40%);
70 color: $black;
71 }
72 &.react-datepicker__day--selecting-range-start.react-datepicker__day--range-start,
73 &.react-datepicker__day--selecting-range-end.react-datepicker__day--range-end,
74 &.react-datepicker__day--selecting-range-start.react-datepicker__day--keyboard-selected {
75 background-color: $blue;
76 color: $white;
77 }
78 }
79
80 .react-datepicker__week {
81 display: flex;
Avi Zivb8e2faf2017-07-18 19:45:38 +030082 }
83 }
84}
85
AviZi280f8012017-06-09 02:39:56 +030086/* Out of namespace context for tooltips */
87div[data-reactroot].tooltip {
88 @import "common/variables";
89 @import "common/typography";
90
91 &.in {
Avi Ziv61070c92017-07-26 17:37:57 +030092 opacity: 1;
AviZi280f8012017-06-09 02:39:56 +030093 }
94 &.validation-error-message {
Avi Zivb8e2faf2017-07-18 19:45:38 +030095 &.bottom {
96 .tooltip-arrow {
97 border-bottom-color: $red !important;
98 }
99 }
100 &.left {
101 .tooltip-arrow {
102 border-left-color: $red !important;
103 }
104 }
105 &.right {
106 .tooltip-arrow {
107 border-right-color: $red !important;
108 }
109 }
110 &.top {
111 .tooltip-arrow {
112 border-top-color: $red !important;
113 }
114 }
AviZi280f8012017-06-09 02:39:56 +0300115 }
116 &.bottom {
Avi Ziv61070c92017-07-26 17:37:57 +0300117 .tooltip-arrow {
118 border-bottom-color: $dark-gray !important;
119 }
AviZi280f8012017-06-09 02:39:56 +0300120 }
121 &.top {
Avi Ziv61070c92017-07-26 17:37:57 +0300122 .tooltip-arrow {
123 border-top-color: $dark-gray !important;
124 }
AviZi280f8012017-06-09 02:39:56 +0300125 }
126 .tooltip-inner {
Avi Ziv61070c92017-07-26 17:37:57 +0300127 @extend .body-1;
128 max-width: 100%;
129 background-color: $dark-gray;
130 padding: 6px 9px;
131 &:first-letter {
132 text-transform: capitalize;
133 }
AviZi280f8012017-06-09 02:39:56 +0300134 }
135
136 // activity log tooltip
137 &.activity-log-message-tooltip {
Avi Ziv61070c92017-07-26 17:37:57 +0300138 @include base-font-regular;
139 font-size: $body-font-2;
140 .message-block {
141 text-align: left;
142 padding: 3px 12px;
143 }
AviZi280f8012017-06-09 02:39:56 +0300144 }
145 //dependency table error tooltip
146 &.select-action-table-error-tooltip{
147 @include base-font-regular;
148 margin-right: 5px;
149 font-size: $body-font-2;
150 .message-block {
151 text-align: left;
152 padding: 3px 12px;
153 }
154 .tooltip-arrow {
155 border-bottom-color: $red !important;
156 }
157
158 .tooltip-inner {
159 background-color: $red;
160 padding: 6px 8px;
161 font-size: $body-font-2;
162 }
163 }
Avi Ziv61070c92017-07-26 17:37:57 +0300164
165 // for read-only mode, vendor description in VLM overview
166 &.vendor-description-tooltip {
167 .tooltip-inner {
168 max-width: 600px;
169 }
170 }
Michael Landoefa037d2017-02-19 12:57:33 +0200171}