-
Notifications
You must be signed in to change notification settings - Fork 157
/
Copy pathgauss-solver.less
77 lines (64 loc) · 1.69 KB
/
gauss-solver.less
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
@import "../../shared/variables";
x-gauss-solver {
display: flex;
justify-content: center;
.highlighter {
position: absolute;
&.input { left: 50px; top: 40px; }
&.output { left: 566px; top: 40px; }
rect.red { fill: @red; opacity: 0.5;}
rect.blue { fill: @blue; opacity: 0.5;}
}
.matrix {
display: grid;
grid-auto-rows: 36px;
grid-gap: 4px;
margin-top: 12px;
> div { text-align: center; line-height: 36px; }
}
.operation { flex-grow: 1; position: relative; margin: 0 40px; max-width: 280px; }
.operation x-select { display: flex; margin-bottom: 1px; }
.op {
background: @medium-grey;
color: white;
margin-right: 1px;
flex: 40px 1 1;
opacity: 0.6;
text-align: center;
cursor: pointer;
&.active { opacity: 1; }
&:first-child { border-top-left-radius: 6px; }
&:last-child { border-top-right-radius: 6px; margin-right: 0; }
}
.operation-body {
background: mix(@medium-grey, white);
padding: 24px 0;
border-radius: 0 0 6px 6px;
p { text-align: center; margin: 0; }
input { background: white; width: 40px; }
}
.connections-left {
position: absolute; left: -55px; top: 10px;
circle { cursor: grab; }
path { stroke-width: 3px; fill: none; stroke-linecap: round; }
}
.connections-right {
position: absolute; left: 250px; top: 10px;
path { stroke-width: 3px; fill: none; stroke-linecap: round; }
}
.description {
text-align: center;
font-size: small;
}
.bottom {
text-align: center;
button {
margin: 5px;
padding: 5px;
background: mix(@medium-grey, white, 20);
border: 1px;
border-color: black;
cursor: pointer;
}
}
}