UNPKG

nodebb-theme-ricequant

Version:
1,223 lines (1,086 loc) 27 kB
@topbarHeight: 50px; @bottombarHeight: 16px; @bottombarHeightMobile: 76px; @btnBlue: #69f; @btnDarkBlue: #36f; @rowPadding: 15px; @btnGap: 10px; @inputLineheight: 34px; @pt-max-width: 1000px; @border-color: #ccc; @share-blue: #5992cd; @share-active: #89deee; @content-lineheight: 1.5; @content-paragram-margin: 14px; .pt-post { min-height: calc(~"100vh - 260px"); max-width: @pt-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!important; > *:not(:first-child) { display: none; } } } .note-editable p, p { margin-bottom: @content-paragram-margin; } > blockquote.uncollapsed { > *:not(:first-child) { display: block; } > blockquote { display: block!important; > *:not(:first-child) { display: block; } } } .toggle { padding: 0px 5px; border: 1px solid #e0e0e0; background: #fcfcfc; width: 50px; text-align: center; display:block!important; } 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; } section { background-color: #fff; } } &.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; } 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: 80px 0 0; word-wrap: break-word; min-height: 80px; font-size:16px; line-height: @content-lineheight; @media screen and (max-width: @screen-sm-max) { margin: 20px 0 0; } 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; } } } } 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; margin-bottom: 20px; } .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; } .shadow-border{ box-shadow: 0 0 5px 5px #ccc; } .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 { padding-left: 140px; 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; } } .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% !important; padding: 15px 0 0 0 !important; box-shadow: none !important; } .end_space { min-height: 0px !important; } .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 !important; } .bk-icon:before{ content: "\f078" !important; } } .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; } } .list { position:relative; padding-top: 50px; &-title { position:absolute; top:0; left:0; width:100%; height: 50px; line-height: 50px; text-align:center; color:####; border-bottom:0; background-color: #E1E6EC; padding: 0 20px; & > * { padding: 0; } } &-sheet { max-height:45rem; overflow-y:auto; &::-webkit-scrollbar { width: 6px; } & > li > * { padding: 0; } } li { list-style-type: none !important; height: 40px; line-height: 40px; background-color:#fff; border-bottom:1px solid #ddd; text-align:center; &:last-child { border-bottom: 0; } } input { margin-right:0.5rem; } .align-left { text-align:left; } @media screen and (max-width: @screen-sm-max) { font-size: 13px; li { height: 60px; line-height: 30px; } } } .datalist { position: absolute; top: 0; left: 0; right: 0; max-height:280px; overflow-y: auto; p { margin-bottom: 0; } &-wrapper { position: relative; } & > ul { position: absolute; top: 0; left: 0; width: 100%; padding: 0 20px; } span { padding: 0; } } .shadow-border { box-shadow: 0 0 15px 5px #eee; } .color- { &up { color: #cc0000; } &down { color: #009900; } } .col-{ &1, &2, &3, &4, &5, &6 { min-height: 1px; float: left; padding: 0 .5rem; box-sizing: border-box; } &1 { width: 1 * (100% / 12); } &2 { width: 2 * (100% / 12); } &3 { width: 3 * (100% / 12); } &4 { width: 4 * (100% / 12); } &6 { width: 6 * (100% / 12); } } .pt-rank-row { height: 40px; line-height: 40px; font-size: 20px; &.rank-bottom { height: auto; position: relative; border-bottom: solid 1px @border-color; padding-bottom: 30px; margin-bottom: 50px; &:before { width: 0; height: 40px; border-left: solid 1px @border-color; position: absolute; left: 50%; top: -20px; } @media screen and (max-width: @screen-sm-max) { padding-bottom: 20px; margin-bottom: 15px; } } } .pt-share-row { height: 50px; line-height: 50px; margin: 0 50px; .share-data{ margin-top: 35px; } @media screen and (max-width: @screen-sm-max) { height: 25px; line-height: 25px; margin: 0; font-size: 13px; .share-data{ margin-top: 15px; } &:nth-of-type(2) { margin-bottom: 10px; } } } .text-center{ text-align: center; } .box{ .shadow-border; margin: 20px 0; padding: 50px 20px; @media screen and (max-width: @screen-sm-max) { padding: 20px 10px; margin: 10px 0; } } .box-nopadding { padding: 0; } .strategy-desc{ margin: 20px 0; } .blue-dot{ position: relative; padding-left: 20px; font-size: 14px; margin-top: 40px; margin-bottom: 20px; &:before{ width: 8px; height: 8px; position: absolute; background-color: @share-blue; content: ''; top: 4px; left: 0; .border-radius(100%); } } .list-sheet { text-align: center; height: 280px; .no-content { margin-top: 120px; font-size: 32px; color: @border-color; } } .main-post { margin-top: -20px; } .share-block-content { z-index: 2; } .username-field { color: @share-blue; } .legend { span { font-size: 14px; margin-right: 25px; &:before { content: ""; border: solid 5px; display: inline-block; margin-right: 5px; } &.legend-base { color: #4572a7; } &.legend-strategy { color: #aa4643; } @media screen and (max-width: @screen-sm-max) { display: block; } } } .cancel-box { border: 2px dashed #eee; margin-bottom: 50px; padding: 80px; text-align: center; i { font-size: 50px; color: #ccc; } .p1 { color: #3777ad; font-size: 20px; } .p2 { color: #bbb; font-size: 14px; } a { background-color: #3777ad; border-color: #3777ad; padding: 0 60px; border-radius: 25px; height: 50px; line-height: 50px; color: #fff; &:hover { color: #fff; } @media screen and (max-width: @screen-sm-max) { padding: 0 20px; } } } } body.page-pt { background-color: #FCFCFD; header { background-color: @share-blue; } .caret { border-top-color: @share-active; } .active { border-bottom-color: @share-active; } a.active, a:hover, a:focus{ color: @share-active; } .post-tool-item a, .share-blue { color: @share-blue; } .btn { &-res { color: @share-blue !important; border-color: @share-blue !important; } &-primary { background-color: @share-blue !important; border-color: @share-blue !important; } } .rank-wrapper { position: relative; .mask { z-index: 1; position: absolute; left: -20px; top: -50px; right: -20px; bottom: 0; background: rgba(218,218,218,0.7); .mask-content { width: 400px; height: 60px; line-height: 20px; padding: 20px 30px; position: absolute; left: 50%; top: 50%; margin-top: -30px; margin-left: -200px; border: dashed 1px #BD0000; color: #BD0000; background-color: rgba(255,255,255,0.3); } } @media screen and (max-width: @screen-sm-max) { .mask { z-index: 1; position: absolute; left: -10px; top: -20px; right: -10px; .mask-content { max-width: 100%; margin-left: -50%; } } } } }