mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
RTL support (#29)
This commit is contained in:
committed by
Luiz F. A. de Prá
parent
7207be04f0
commit
fe847fb152
5
static/less/colors.less
Normal file
5
static/less/colors.less
Normal file
@@ -0,0 +1,5 @@
|
||||
@bg-color: #fefefe;
|
||||
@fg-color: #323232;
|
||||
@darker-bg-color: #dcdcdc;
|
||||
@darker-fg-color: #000;
|
||||
@link-color: #3366CC;
|
||||
41
static/less/style-rtl.less
Normal file
41
static/less/style-rtl.less
Normal file
@@ -0,0 +1,41 @@
|
||||
@import "colors.less";
|
||||
|
||||
body.rtl {
|
||||
direction: rtl;
|
||||
|
||||
blockquote {
|
||||
border-right: 2px solid @darker-bg-color;
|
||||
padding-right: 1.6rem;
|
||||
}
|
||||
|
||||
table tr td:first-child,
|
||||
table tr th:first-child {
|
||||
border-right: 0;
|
||||
}
|
||||
table tr td:last-child,
|
||||
table tr th:last-child {
|
||||
border-left: 0;
|
||||
}
|
||||
|
||||
.navigation {
|
||||
ul {
|
||||
li {
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.list {
|
||||
ul {
|
||||
li {
|
||||
span {
|
||||
text-align: left;
|
||||
margin-left: 3.0rem;
|
||||
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,4 @@
|
||||
@bg-color: #fefefe;
|
||||
@fg-color: #323232;
|
||||
@darker-bg-color: #dcdcdc;
|
||||
@darker-fg-color: #000;
|
||||
@link-color: #3366CC;
|
||||
|
||||
@import "colors.less";
|
||||
|
||||
*,
|
||||
*:after,
|
||||
@@ -154,7 +149,6 @@ table tr th:last-child {
|
||||
border-right: 0;
|
||||
}
|
||||
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
@@ -299,7 +293,7 @@ img {
|
||||
margin: 3.0rem 0 1.0rem 0;
|
||||
padding: 0;
|
||||
li {
|
||||
display: inline;
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
a {
|
||||
text-transform: uppercase;
|
||||
|
||||
Reference in New Issue
Block a user