blob: fc05f7493ec2e302faec2339f353e72a56cce90d [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 }
ilanap1e5bf792017-10-16 09:54:57 +030021 .react-datepicker__navigation--previous::before, .react-datepicker__navigation--next::before {
22 width: 8px;
23 height: 8px;
24 display: inline-block;
25 position: absolute;
26 top: -4px;
Avi Zivb8e2faf2017-07-18 19:45:38 +030027 }
ilanap1e5bf792017-10-16 09:54:57 +030028 .react-datepicker__navigation--previous::before {
29 left: 0;
30 content: url(../../node_modules/sdc-ui/assets/icons/angleLeft.svg);
Avi Zivb8e2faf2017-07-18 19:45:38 +030031 }
ilanap1e5bf792017-10-16 09:54:57 +030032 .react-datepicker__navigation--next::before {
33 right: 0;
34 content: url(../../node_modules/sdc-ui/assets/icons/angleRight.svg);
35 }
36
37 .react-datepicker__navigation--previous, .react-datepicker__navigation--next {
38 border: none;
39 }
40
41
Avi Ziv61070c92017-07-26 17:37:57 +030042 .react-datepicker__month-container {
Avi Zivb8e2faf2017-07-18 19:45:38 +030043 .react-datepicker__header {
44 background-color: $background-gray;
45 border-bottom: none;
46 .react-datepicker__current-month {
Avi Ziv61070c92017-07-26 17:37:57 +030047 @extend .body-1-semibold;
Avi Zivb8e2faf2017-07-18 19:45:38 +030048 background-color: $background-gray;
Avi Ziv61070c92017-07-26 17:37:57 +030049 margin-bottom: 10px;
Avi Zivb8e2faf2017-07-18 19:45:38 +030050 }
51 .react-datepicker__day-names {
Avi Ziv61070c92017-07-26 17:37:57 +030052 @extend .body-1;
Avi Zivb8e2faf2017-07-18 19:45:38 +030053 background-color: $white;
54 }
55 }
Avi Ziv61070c92017-07-26 17:37:57 +030056 .react-datepicker__day--selected, .react-datepicker__day--keyboard-selected {
57 @extend .body-1;
Avi Zivb8e2faf2017-07-18 19:45:38 +030058 background-color: $blue;
Avi Ziv61070c92017-07-26 17:37:57 +030059 color: $white;
Avi Zivb8e2faf2017-07-18 19:45:38 +030060 }
61 .react-datepicker__day {
Avi Ziv61070c92017-07-26 17:37:57 +030062 border-radius: 0px;
63 margin: 0;
64 flex: 1;
65 @extend .body-1;
66 }
67
68 .react-datepicker__day--in-range, .react-datepicker__day--in-selecting-range {
69 background-color: $tlv-hover;
70 color: $black;
71 &.react-datepicker__day--selected, &.react-datepicker__day--keyboard-selected, &.react-datepicker__day--range-start, &.react-datepicker__day--range-end {
72 background-color: $blue;
73 color: $white;
74 }
75 &.react-datepicker__day--selecting-range-start, &.react-datepicker__day--selecting-range-end {
76 background-color: lighten($blue, 40%);
77 color: $black;
78 }
79 &.react-datepicker__day--selecting-range-start.react-datepicker__day--range-start,
80 &.react-datepicker__day--selecting-range-end.react-datepicker__day--range-end,
81 &.react-datepicker__day--selecting-range-start.react-datepicker__day--keyboard-selected {
82 background-color: $blue;
83 color: $white;
84 }
85 }
86
87 .react-datepicker__week {
88 display: flex;
Avi Zivb8e2faf2017-07-18 19:45:38 +030089 }
90 }
91}
92
AviZi280f8012017-06-09 02:39:56 +030093/* Out of namespace context for tooltips */
94div[data-reactroot].tooltip {
95 @import "common/variables";
96 @import "common/typography";
97
98 &.in {
Avi Ziv61070c92017-07-26 17:37:57 +030099 opacity: 1;
AviZi280f8012017-06-09 02:39:56 +0300100 }
101 &.validation-error-message {
Avi Zivb8e2faf2017-07-18 19:45:38 +0300102 &.bottom {
103 .tooltip-arrow {
104 border-bottom-color: $red !important;
105 }
106 }
107 &.left {
108 .tooltip-arrow {
109 border-left-color: $red !important;
110 }
111 }
112 &.right {
113 .tooltip-arrow {
114 border-right-color: $red !important;
115 }
116 }
117 &.top {
118 .tooltip-arrow {
119 border-top-color: $red !important;
120 }
121 }
AviZi280f8012017-06-09 02:39:56 +0300122 }
123 &.bottom {
Avi Ziv61070c92017-07-26 17:37:57 +0300124 .tooltip-arrow {
125 border-bottom-color: $dark-gray !important;
126 }
AviZi280f8012017-06-09 02:39:56 +0300127 }
128 &.top {
Avi Ziv61070c92017-07-26 17:37:57 +0300129 .tooltip-arrow {
130 border-top-color: $dark-gray !important;
131 }
AviZi280f8012017-06-09 02:39:56 +0300132 }
133 .tooltip-inner {
Avi Ziv61070c92017-07-26 17:37:57 +0300134 @extend .body-1;
135 max-width: 100%;
136 background-color: $dark-gray;
137 padding: 6px 9px;
138 &:first-letter {
139 text-transform: capitalize;
140 }
AviZi280f8012017-06-09 02:39:56 +0300141 }
142
143 // activity log tooltip
144 &.activity-log-message-tooltip {
Avi Ziv61070c92017-07-26 17:37:57 +0300145 @include base-font-regular;
146 font-size: $body-font-2;
147 .message-block {
148 text-align: left;
149 padding: 3px 12px;
150 }
AviZi280f8012017-06-09 02:39:56 +0300151 }
152 //dependency table error tooltip
153 &.select-action-table-error-tooltip{
154 @include base-font-regular;
155 margin-right: 5px;
156 font-size: $body-font-2;
157 .message-block {
158 text-align: left;
159 padding: 3px 12px;
160 }
161 .tooltip-arrow {
162 border-bottom-color: $red !important;
163 }
164
165 .tooltip-inner {
166 background-color: $red;
167 padding: 6px 8px;
168 font-size: $body-font-2;
169 }
170 }
Avi Ziv61070c92017-07-26 17:37:57 +0300171
172 // for read-only mode, vendor description in VLM overview
173 &.vendor-description-tooltip {
174 .tooltip-inner {
175 max-width: 600px;
176 }
177 }
Michael Landoefa037d2017-02-19 12:57:33 +0200178}