Skip to content

Commit 8c60a78

Browse files
committed
CSS: Cards: ellipsis on titles + mixin
1 parent a88577e commit 8c60a78

File tree

7 files changed

+35
-19
lines changed

7 files changed

+35
-19
lines changed

demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ <h1 id="title">Demos</h1>
8585
<p>The data for these demos is stored in your browser's local storage
8686
(using <a href="https://github.com/jeromegn/Backbone.localStorage" target="bbls">Backbone.localStorage</a>) but Evolutility can be configured for a REST API.
8787

88-
Another project <a href="https://github.com/evoluteur/evolutility-server">Evolutility-Server</a> is in progress and will provide server-side a metadata-driven REST API for Evolutility (using Node.js, Express.js and PostgreSQL).
88+
Another project <a href="https://github.com/evoluteur/evolutility-server">Evolutility-Server</a> is in progress and will provide metadata-driven RESTful API for Evolutility (using Node.js, Express.js and PostgreSQL).
8989
</p>
9090
</div>
9191
</div>

dist/css/evolutility.css

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,14 @@
161161
.evo-plist input[type="date"] {
162162
max-width: 160px;
163163
}
164+
.evo-plist input[type="number"] {
165+
min-width: 100px;
166+
}
164167
.evo-plist input[type="text"],
165-
.evo-plist textarea {
168+
.evo-plist input textarea {
169+
min-width: 120px;
170+
}
171+
.evo-plist select {
166172
min-width: 120px;
167173
}
168174
.evo-plist .table {
@@ -204,6 +210,9 @@
204210
padding-left: 10px !important;
205211
margin-bottom: 6px;
206212
}
213+
.evol-fld input[type="checkbox"] {
214+
font-size: 2em;
215+
}
207216
.evol-fld > .evo-rdonly > img {
208217
position: relative;
209218
top: -2px;
@@ -432,6 +441,7 @@ label {
432441
}
433442
.evol-many-list > div {
434443
overflow-x: auto;
444+
overflow-y: hidden;
435445
}
436446
.evol-many-list > div > .table {
437447
margin-bottom: 0;
@@ -467,9 +477,9 @@ label {
467477
display: inline !important;
468478
}
469479
.evol-many-list > div > .table .evol-ellipsis {
480+
white-space: nowrap;
470481
overflow: hidden;
471482
text-overflow: ellipsis;
472-
white-space: nowrap;
473483
max-width: 120px;
474484
}
475485
.evol-many-list .glyphicon.evol-last-sort {
@@ -544,6 +554,11 @@ table {
544554
-webkit-border-radius: 10px;
545555
overflow: auto;
546556
}
557+
.evol-cards-body > .panel > div > h4 {
558+
white-space: nowrap;
559+
overflow: hidden;
560+
text-overflow: ellipsis;
561+
}
547562
.evol-cards-body > .panel > div > label {
548563
vertical-align: top;
549564
}
@@ -629,11 +644,6 @@ text.label {
629644
text-align: center;
630645
padding: 10px 20px 30px;
631646
}
632-
/*
633-
.evo-chart-table{
634-
overflow-y: auto;
635-
}
636-
*/
637647
.evol-xpt {
638648
margin-bottom: 10px;
639649
}

dist/css/evolutility.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

less/many-cards.less

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,15 @@
1717
.border-radius(10px);
1818
overflow: auto;
1919

20-
>div>label{
21-
vertical-align: top;
22-
//text-align: right;
23-
//min-width:80px;
20+
>div {
21+
>h4{
22+
.ellipsis()
23+
}
24+
>label{
25+
vertical-align: top;
26+
//text-align: right;
27+
//min-width:80px;
28+
}
2429
}
2530
}
2631
.evol-c-center{

less/many.less

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@
5353

5454
}
5555
.evol-ellipsis{
56-
overflow: hidden;
57-
text-overflow: ellipsis;
58-
white-space: nowrap;
56+
.ellipsis();
5957
max-width: 120px;
6058
}
6159
}

less/one.less

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,7 @@
138138
}
139139

140140
.evol-ellipsis {
141-
white-space: nowrap;
142-
overflow: hidden;
143-
text-overflow: ellipsis;
141+
.ellipsis();
144142
}
145143
.evol-title-toggle{
146144
cursor: pointer;

less/variables.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@
3737
@color-text-footer: silver;
3838

3939
// mixins
40+
.ellipsis(){
41+
white-space: nowrap;
42+
overflow: hidden;
43+
text-overflow: ellipsis;
44+
}
4045
.border-radius(@r){
4146
border-radius: @r;
4247
-moz-border-radius: @r;

0 commit comments

Comments
 (0)