summaryrefslogtreecommitdiff
path: root/css/cdm.less
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-05 08:28:18 +0300
committerAndrew Dolgov <[email protected]>2018-12-05 08:31:13 +0300
commit88c2da72d5660dca33108e8a026a191750e965ea (patch)
tree9a31573caf2386856a3b8e6b05cb38f218bacf02 /css/cdm.less
parenta2e06410c2b69d7208d4a72ecbf71957c43fcdbe (diff)
combined mode: use flex-box for header/footer layout
Diffstat (limited to 'css/cdm.less')
-rw-r--r--css/cdm.less49
1 files changed, 15 insertions, 34 deletions
diff --git a/css/cdm.less b/css/cdm.less
index bdd53b91e..857374394 100644
--- a/css/cdm.less
+++ b/css/cdm.less
@@ -1,30 +1,24 @@
.cdm {
- //margin-right : 4px;
-
.header, .footer {
- display : table;
- }
-
- .header img, .header input, .footer img {
- vertical-align : middle;
- }
-
- .header > div, .footer > div {
- white-space : nowrap;
- }
-
- .header > span, .footer > span.left {
- width : 100%;
+ display : flex;
+ flex-direction : row;
+ flex-wrap : nowrap;
}
.header img, .footer img {
margin : 0px 4px;
+ vertical-align: middle;
}
.header {
> * {
- display : table-cell;
+ align-self : center;
padding : 5px;
+ white-space : nowrap;
+ }
+
+ .titleWrap {
+ flex-grow : 2;
}
span.updated {
@@ -32,21 +26,6 @@
font-weight : normal;
font-size : 11px;
white-space : nowrap;
- vertical-align : middle;
- }
-
- input {
- margin-right : 5px;
- }
-
- div.updPic {
- width : 25px;
- display : inline-block;
- text-align : center;
- }
-
- div.updPic img {
- vertical-align : middle;
}
input {
@@ -63,8 +42,11 @@
clear : both;
> * {
- display : table-cell;
- vertical-align : middle;
+ align-self : center;
+ }
+
+ .left {
+ flex-grow : 2;
}
}
@@ -360,7 +342,6 @@ div#floatingTitle.Unread a.title {
white-space : nowrap;
text-overflow : ellipsis;
overflow : hidden;
- max-width : 500px;
}
.excerpt {