nodebb-theme-ricequant
Version:
NodeBB theme for ricequant.
876 lines (765 loc) • 17.5 kB
text/less
@topbarHeight: 50px;
@bottombarHeight: 16px;
@bottombarHeightMobile: 76px;
@btnBlue: #69f;
@btnDarkBlue: #36f;
@rowPadding: 15px;
@btnGap: 10px;
@inputLineheight: 34px;
@topic-max-width: 800px;
@content-lineheight: 1.5;
@content-paragram-margin: 14px;
.topic {
min-height: calc(~"100vh - 260px");
max-width: @topic-max-width;
margin: 0 auto;
.note-editable p {
margin-bottom: @content-paragram-margin;
line-height: @content-lineheight;
}
@media (max-width: @screen-xs-max) {
clear: left;
}
.post-content {
clear: left;
> blockquote {
> *:not(:first-child) {
display: none;
}
> blockquote {
display: block;
> *:not(:first-child) {
display: none;
}
}
}
> blockquote.uncollapsed {
> *:not(:first-child) {
display: block;
}
> blockquote {
display: block;
> *:not(:first-child) {
display: block;
}
}
}
p{
margin-bottom: @content-paragram-margin;
}
.toggle {
padding: 0px 5px;
border: 1px solid #e0e0e0;
background: #fcfcfc;
width: 50px;
text-align: center;
display:block;
}
pre.hljs{
display: block;
padding: 9.5px;
margin: 0 0 10px;
font-size: 13px;
line-height: 1.42857143;
word-break: break-all;
word-wrap: break-word;
color: #333;
background-color: #f5f5f5;
border: 1px solid #ccc;
border-radius: 4px;
}
}
&.deleted {
-moz-opacity: 0.30;
opacity: 0.30;
}
> ul {
list-style-type: none;
padding: 0;
margin:0;
> li {
&.deleted {
-moz-opacity: 0.30;
opacity: 0.30;
}
}
}
@media (max-width: 475px) {
.favourite-text {
display: none;
}
}
.posts {
h1.main-post{
font-size: 24px;
}
.post-info, .post-block {
position: relative;
.post-signature {
font-size: 12px;
border-top: 1px solid #ddd;
display: inline-block;
> p {
padding-top: 5px;
}
img {
max-width: 200px;
max-height: 60px;
}
margin-left: 5px;
}
}
.post-block {
@media (max-width: @screen-xs-max) {
padding:0 0 0 10px;
}
padding:0 0 0 20px;
.topic-buttons {
line-height:20px;
font-size:12px;
.fa-gear {
border: solid 1px #69f;
border-radius: 10px;
padding: 2px 3px;
}
}
.status {
font-size:12px;
transform: scale(0.8);
}
.circle {
font-size:12px;
transform: scale(0.4);
vertical-align:middle;
margin-right:4px;
}
.username-field {
font-size:14px;
margin-right:25px;
}
.follow, .quote, .post_reply {
margin-right:15px;
}
.post-tool-bar {
float: right;
}
.follow i {
font-size: 12px;
transform: scale(0.8);
border: solid 1px #ccc;
padding: 1px 2px;
border-radius: 8px;
vertical-align:middle;
color:#333;
&:hover {
color:#69f;
border-color:#69f;
}
}
.post-signature {
margin-left: 15px;
}
.share-block {
display: inline-block;
padding-right: 30px;
&-item {
display: inline-block;
position: relative;
}
&-content {
display: none;
position: absolute;
left: -65px;
top: 24px;
width: 170px;
height: 200px;
padding: 15px;
border: 1px solid #ccc;
text-align: center;
background-color: #fff;
}
a {
font-size: 20px;
padding-left: 10px;
}
.share-to-wechat {
color: #40a00f;
}
.share-to-weibo {
color: #ccc;
}
.share-to-xueqiu{
color: #69f;
}
}
.post-tools {
font-size: 12px;
margin-right: 23px;
min-width: 10px;
.dropdown-menu {
padding:8px;
min-width:88px;
}
}
}
.post-content {
margin:15px 0 0;
word-wrap: break-word;
min-height: 80px;
font-size:16px;
line-height: @content-lineheight;
img{
max-width: 100%;
}
> ul, ol {
padding-bottom: 10px;
}
ul {
> li {
list-style-type: disc;
ul > li {
list-style-type: circle;
ul > li {
list-style-type: square;
}
}
}
}
.tab-content {
li {
list-style-type: none;
div {
width: 20%;
display: inline-block;
}
}
}
blockquote p {
font-size: 14px;
}
.post-images{
padding: 2px 5px 0 5px;
}
.custom-tooltip {
list-style-type: none;
padding-left: 0px;
width: 200px;
line-height: 16px;
> li {
list-style-type: none;
}
}
}
.main-post {
display: none;
}
.img-thumbnail {
float:none;
padding: 0px;
margin-bottom: 5px;
border-radius: 50%;
border:0;
}
.profile-image-block {
max-width:50px;
padding:0;
}
.topic-item {
min-width: calc(~"100% - 50px");
}
}
.posts > li[data-index="0"] {
padding:0;
border:none;
> h3 {
margin:10px 0 40px;
}
.main-post {
display: block;
}
.topic-title {
i {
opacity: 0.7;
}
}
}
.posts > li:last-child {
border-bottom:solid 1px #ddd;
.post-bar {
display:none;
}
}
.loading-indicator {
display: inline-block;
font-size: 14px;
margin-right: 1em;
line-height:40px;
}
.post-stats {
display:inline-block;
margin-right:50px;
text-align:center;
p {
margin:0;
line-height:22px;
font-size:16px;
color:#666;
& ~ p {
line-height:13px;
font-size:12px;
color:#ccc;
}
}
}
.topic-main-buttons {
display:inline-block;
padding-bottom: 0px;
vertical-align:top;
& > a {
display:inline-block;
height:35px;
line-height:35px;
padding:0 15px;
background: #69f;
color:#fff;
}
.btn-group {
margin-left:20px;
}
}
@media (max-width: 767px) {
.topic-main-buttons {
margin-bottom: 0px;
}
}
.post-bar {
padding: 16px 0;
text-align:right;
clear:left;
border-bottom: solid 1px #ddd;
}
.post-bar[data-index="0"] {
border-top: solid 1px #ddd;
}
.bottom-post-bar {
margin-bottom:60px;
border-bottom: solid 1px #ddd;
}
}
.thread_active_users {
a[data-uid] {
img {
height:24px;
width:24px;
}
&::after {
.opacity(0);
font-family: "FontAwesome";
content: "\f11c";
padding: 4px 0.25em;
position: relative;
top: 1px;
}
&.replying::after {
.opacity(100);
}
}
.anonymous-box {
border: 1px solid #ddd;
width: 24px;
height: 24px;
position: relative;
text-align: center;
}
}
// PoppinL
.post-row {
padding:35px 0;
border-bottom:solid 1px #ddd;
//lithium
.post-tool-item{
display: inline-block;
margin: 0 13px 0 0;
line-height: 23px;
.vote-btn, .favourite-btn{
display: inline-block;
margin: 0 10px 0 0;
text-align: center;
}
.upvote.upvoted{
.heart:before { content: "\f004"; }
}
.upvote{
.heart:before { content: "\f08a"; }
}
.rqicon{
font-size: 14px;
}
}
}
.post-content,
.preview {
table {
width:100%;
max-width:800px;
}
th, td {
padding: 6px 13px;
border: 1px solid #ddd;
}
th {
text-align: center;
}
}
.share-frame, .backtests-frame, .notes-frame {
display:none;
opacity: 1;
position: fixed;
z-index: 1035;
overflow: auto;
left: 50%;
top: 50%;
margin-left: -300px;
margin-top: -170px;
}
.share-fade, .backtests-fade, .notes-fade {
display: none;
position: fixed;
top: 0%;
left: 0%;
width: 100%;
height: 100%;
background-color: black;
z-index:1030;
.opacity(.30);
}
.share-close, .backtest-close, .notes-close {
height:40px;
width:30px;
opacity:1;
float:right;
}
.close-button, .close-button-backtest, .close-button-note {
display:block;
font-size:12px;
line-height:28px;
text-align:center;
color:white;
border: 2px solid white;
height:30px;
width:30px;
border-radius:15px;
cursor:pointer;
}
.backtests, .notes {
width:600px;
background-color:white;
height:300px;
display:block;
margin:0 auto;
}
.backtests-title, .notes-title {
margin:0 auto;text-align:center;font-size:20px;padding-top:35px;
}
.backtests-container, .notes-container {
padding:15px 140px;
}
.backtests-list, .notes-list {
border-bottom: 1px solid #999;
width:100%;height:50px;
line-height:50px;text-align:center;
cursor:pointer;
}
.backtests-down, .notes-down {
float:right;padding-right:10px;
}
.backtests-add-div, .notes-add-div {
width: 100%;text-align: center; line-height: 50px;margin: 0 auto;
}
.backtests-add-div2, .notes-add-div2 {
margin:0 auto;padding-top:40px;
}
.backtests-add-div2 button {
border-width: 0;
}
.backtests-add-button, .notes-add-button {
display:block;
line-height:40px;
height:40px;
width:100%;
background-color:#69f;
font-size:14px;
border-radius: 20px;
margin: 0 auto;
color: #fff;
cursor: pointer;
}
.algorithm-control-list, .backtest-control-list, .note-control-list {
width: 100%;
}
.algorithm-control-list li, .backtest-control-list li, .note-control-list li {
height: 30px;
line-height: 30px;
padding-left:10px;
div {
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
}
.toselect {
display: block;
margin-top: 15px;
width: 20px;
height: 20px;
background-size:20px 20px;
float: right;
}
.share-attach-selected, .share-attach-non-select, .note-attach-selected {
padding-left: 5px;
}
.backtest-select, .note-select {
display: none;
}
.share-attach-selected {
display: none;
}
.scrollable-menu {
height: auto;
max-height: 100px;
overflow-x: hidden;
}
.fa-backtest {
width: 15px;
height: 15px;
background-image: url("https://dn-dev-ricequant.qbox.me/non-select.png");
}
.orange {
color: #f90;
}
.blue {
color: #69f;
}
.list-grey {
background-color: #f2f2f2;
}
.topic .posts .post-block .post-content {
.js-returns-box, .js-ratio-box, .js-beta-box, .js-alpha-box, .js-sharpe-box, .js-volatility-box, .js-drawdown-box, .js-sortino-box {
li {
list-style-type: none;
height: 40px;
line-height: 40px;
}
}
}
.js-returns-box, .js-ratio-box, .js-beta-box, .js-alpha-box, .js-sharpe-box, .js-volatility-box, .js-drawdown-box, .js-sortino-box {
margin-left: 140px;
padding-left: 0;
list-style: none;
text-align: center;
.list-title {
background-color: #333;
color: #fff;
}
.col-4 {
width: 33.33333333%;
float: left;
}
.col-2 {
width: 16.6666666%;
float: left;
}
}
.summary {
padding: 20px 10px;
.col-2 {
width: 14.2857142%;
float: left;
text-align: center;
}
.col-3 {
width: 25%;
float: left;
text-align: center;
}
.portfolio-red {
color: #aa4643;
}
.portfolio-blue {
color: #4572a7;
}
}
.btn-default-fix {
background-color: transparent;
border: 0;
}
.dropdown-menu>li>span {
cursor:pointer;
display: block;
padding: 3px 20px;
clear: both;
font-weight: normal;
line-height: 1.42857143;
color: #333;
white-space: nowrap;
}
.notebook-wrapper {
padding: 15px;
margin: 20px 0 40px;
box-shadow: 0 0 12px 1px rgba(87, 87, 87, .2);
&__title {
line-height: 34px;
}
}
#notebook-container {
width: 100% ;
padding: 15px 0 0 0 ;
box-shadow: none ;
}
.end_space {
min-height: 0px ;
}
.inner_cell {
position: relative;
overflow: hidden;
}
.anchor-link {
display: none;
}
.sm-topic-composer{
.note-editable.panel-body{
height: 300px;
}
.user-img-wrapper{
.border-radius(50%);
overflow: hidden;
max-width: 50px;
padding: 0;
max-width: 50px;
img{
width: 100%;
height: 100%;
}
}
.bt-disabled{
color: #ccc;
cursor: not-allowed;
ul{
display: none ;
}
.bk-icon:before{
content: "\f078" ;
}
}
.bk-icon{
float: right;
line-height: 50px;
position: relative;
top: -50px;
right: 30px;
}
.bk-icon:before{
content: "\f078";
}
#notes, #algorithms, #backtests-list{
.open{
.bk-icon:before{
content: "\f077";
}
}
}
.select-algorithm-name, .select-note-name, .select-backtest-name{
white-space: nowrap;
display: block;
overflow: hidden;
width: 100%;
text-overflow: ellipsis;
padding: 0 50px;
}
.algorithm-dropdown, .backtest-dropdown, .note-dropdown{
overflow: hidden;
margin: 0 -30px;
height: 50px;
}
.js-share-container{
display: none;
}
.composer-bottom{
margin-bottom: @bottombarHeight;
margin-top: 15px;
.share_res{
float: left;
line-height: @inputLineheight;
padding: 4px 12px;
border: solid 1px @input-border;
color: @input-border;
.share_tips{
display: none;
&.active{
display: inline-block;
}
}
.composer-radius;
.action-bar .btn, .btn-res{
.res_btn;
}
.btn-backtest{
margin-right: @btnGap;
}
.backtest-selected, .notebook-selected{
button{
.border-radius(5px);
background-color: #eee;
span:first-of-type{
padding-left: 5px;
max-width: 200px;
display: inline-block;
vertical-align: middle;
.text-ellipsis;
}
}
}
}
.btn-group{
.btn{
height: 44px;
width: 100px;
float: left;
.composer-radius !important;
}
.btn-default{
margin-right: 20px;
}
.btn-primary{
background-color: @btnBlue;
border-color: @btnBlue;
}
.btn-primary:hover{
background-color: @btnDarkBlue;
border-color: @btnDarkBlue;
cursor: pointer;
}
}
}
}
#myTab {
.strategy-type {
margin-right: 20px;
padding: 0 8px;
font-size: 12px;
&-f {
background-color: #dee6fe;
color: #004efa;
}
&-s {
background-color: #faebeb;
color: #900;
}
}
}
#myTabContent {
font-size: 12px;
code.hljs {
background-color: #f5f5f5;
}
}