Skip to content

Commit e952129

Browse files
committed
css
1 parent 256382a commit e952129

File tree

7 files changed

+78
-11
lines changed

7 files changed

+78
-11
lines changed

src/components/fields/RectanglePositioner.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import ResizableRect from 'react-resizable-rotatable-draggable';
66
import RadioBlocks from '../widgets/RadioBlocks';
77
import DualNumeric from './DualNumeric';
88

9-
const maxWidth = 276;
9+
const maxWidth = 280;
1010
const gridRes = 8;
1111

1212
class UnconnectedRectanglePositioner extends Component {
@@ -58,8 +58,8 @@ class UnconnectedRectanglePositioner extends Component {
5858
const fieldWidthPx = Math.min(maxWidth, maxWidth / aspectRatio);
5959
const fieldHeightPx = Math.min(maxWidth, maxWidth * aspectRatio);
6060

61-
const width = fieldWidthPx * (x[1] - x[0]);
62-
const height = fieldHeightPx * (y[1] - y[0]);
61+
const width = fieldWidthPx * (x[1] - x[0]) - 6; // eslint-disable-line
62+
const height = fieldHeightPx * (y[1] - y[0]) - 6; // eslint-disable-line
6363
const left = fieldWidthPx * x[0];
6464
const top = fieldHeightPx * (1 - y[1]);
6565

src/components/widgets/TextInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default class TextInput extends Component {
1818
render() {
1919
return (
2020
<EditableText
21-
className={`text-input ${this.props.editableClassName}`}
21+
className={`text-input ${this.props.editableClassName ? this.props.editableClassName : ''}`}
2222
placeholder={this.props.placeholder}
2323
text={this.state.value}
2424
type="text"

src/styles/components/containers/_fold.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@
1010
font-size: var(--font-size-base);
1111
border: 1px solid var(--fold-header-border-color-closed);
1212
background-color: var(--fold-header-background-closed);
13-
height: 15px;
13+
height: 30px;
1414
border-radius: var(--border-radius);
1515
text-shadow: var(--text-shadow-dark-ui);
16-
transition: background-color 0.1s ease-in-out, color 0.1s ease-in-out,
17-
border 0.1s ease-in-out;
16+
transition: background-color 0.1s ease-in-out, color 0.1s ease-in-out, border 0.1s ease-in-out;
1817

1918
&:hover {
2019
cursor: pointer;

src/styles/components/containers/_menupanel.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
display: block;
2020
}
2121
// gets overridden by user agent stylesheet otherwise
22-
width: 15px !important;
22+
width: 19px !important;
2323
height: 15px !important;
2424
fill: var(--color-text-light) !important;
2525
padding-left: var(--spacing-quarter-unit);
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
.datetimepicker-container {
2+
width: 220px;
3+
4+
.mdi-icon {
5+
width: 20px;
6+
margin: 2px;
7+
}
8+
&__content {
9+
margin-top: 5px;
10+
}
11+
}
12+
13+
.datetimepicker-container-input {
14+
margin-top: -20px;
15+
}
16+
17+
.datetimepicker-container-icons {
18+
display: inline-block;
19+
margin-top: 2px;
20+
margin-left: 2px;
21+
}
22+
23+
.datetimepicker-time-icon--selected,
24+
.datetimepicker-date-icon--selected {
25+
fill: var(--color-accent);
26+
}
27+
28+
.datetimepicker-time-icon:hover,
29+
.datetimepicker-date-icon:hover {
30+
fill: #899aaf;
31+
}
32+
33+
.datepicker-container-rce {
34+
border: var(--border-default);
35+
}
36+
37+
.bp3-html-select select,
38+
.bp3-select select {
39+
padding: 0;
40+
}
41+
42+
.bp3-datepicker-caption {
43+
margin: 0 22px 2px;
44+
}
45+
46+
div.bp3-datepicker-caption div.bp3-html-select.bp3-minimal.bp3-datepicker-month-select span {
47+
right: 7px !important;
48+
}
49+
50+
div.bp3-html-select.bp3-minimal.bp3-datepicker-year-select span {
51+
right: 0px !important;
52+
}
53+
54+
.bp3-datepicker .DayPicker-Day.DayPicker-Day--selected {
55+
border-radius: 50%;
56+
background-color: var(--color-accent);
57+
}
58+
59+
.bp3-datepicker .DayPicker-Day:hover,
60+
.bp3-datepicker .DayPicker-Day:focus {
61+
border-radius: 50%;
62+
outline: none;
63+
}
64+
65+
.bp3-html-select.bp3-minimal select:hover,
66+
.bp3-select.bp3-minimal select:hover,
67+
.bp3-button.bp3-minimal:hover {
68+
background: none;
69+
}

src/styles/components/widgets/_main.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@
1111
@import 'trace-type-selector';
1212
@import 'dropzone';
1313
@import 'microtip';
14+
@import 'datetimepicker';

src/styles/components/widgets/_rangeslider.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
border: 1px solid var(--color-border-default);
1212
flex-grow: 1;
1313

14-
1514
&,
1615
.rangeslider__fill {
1716
display: block;
@@ -68,13 +67,12 @@
6867
background-color: var(--color-accent);
6968
border: var(--border-accent);
7069
border-radius: 10px;
71-
transform: translateY(-1px);
7270
top: 0;
7371
}
7472
.rangeslider__handle {
7573
$size: 20px;
7674
width: $size/3;
77-
height: $size*1.5;
75+
height: $size * 1.5;
7876
border-radius: $size;
7977
top: 50%;
8078
transform: translate3d(-50%, -50%, 0);

0 commit comments

Comments
 (0)