forked from wangziqi/gongxue-base
style: refine legacy Taro page layouts
This commit is contained in:
@@ -68,6 +68,16 @@
|
|||||||
padding-bottom: 6px;
|
padding-bottom: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.platform-shell > .platform-actions,
|
||||||
|
.platform-shell > .platform-tabs,
|
||||||
|
.platform-section > .platform-actions:first-child {
|
||||||
|
padding: 14px;
|
||||||
|
border: 1px solid var(--tiku-border);
|
||||||
|
border-radius: 24px;
|
||||||
|
background: #fff;
|
||||||
|
box-shadow: var(--tiku-shadow);
|
||||||
|
}
|
||||||
|
|
||||||
.platform-button,
|
.platform-button,
|
||||||
.platform-mini-button {
|
.platform-mini-button {
|
||||||
border: 1px solid var(--tiku-border);
|
border: 1px solid var(--tiku-border);
|
||||||
@@ -148,6 +158,11 @@
|
|||||||
|
|
||||||
.platform-section {
|
.platform-section {
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
|
padding: 24px;
|
||||||
|
border: 1px solid var(--tiku-border);
|
||||||
|
border-radius: 28px;
|
||||||
|
background: rgba(255, 255, 255, 0.72);
|
||||||
|
box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
|
||||||
}
|
}
|
||||||
|
|
||||||
.platform-section-title {
|
.platform-section-title {
|
||||||
@@ -172,6 +187,18 @@
|
|||||||
box-shadow: 0 5px 16px rgba(15, 23, 42, 0.04);
|
box-shadow: 0 5px 16px rgba(15, 23, 42, 0.04);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.platform-row:nth-child(4n + 1) {
|
||||||
|
border-color: #dbeafe;
|
||||||
|
}
|
||||||
|
|
||||||
|
.platform-row:nth-child(4n + 2) {
|
||||||
|
border-color: #dcfce7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.platform-row:nth-child(4n + 3) {
|
||||||
|
border-color: #fae8ff;
|
||||||
|
}
|
||||||
|
|
||||||
.platform-module-grid {
|
.platform-module-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
@@ -270,6 +297,10 @@
|
|||||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
gap: 14px;
|
gap: 14px;
|
||||||
margin-bottom: 14px;
|
margin-bottom: 14px;
|
||||||
|
padding: 16px;
|
||||||
|
border: 1px solid var(--tiku-border);
|
||||||
|
border-radius: 22px;
|
||||||
|
background: #f8fafc;
|
||||||
}
|
}
|
||||||
|
|
||||||
.platform-form.compact {
|
.platform-form.compact {
|
||||||
@@ -296,7 +327,8 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
margin-top: 14px;
|
margin-top: 14px;
|
||||||
overflow-x: auto;
|
flex-wrap: wrap;
|
||||||
|
overflow-x: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
.platform-permission-panel {
|
.platform-permission-panel {
|
||||||
@@ -369,7 +401,7 @@
|
|||||||
|
|
||||||
@media (min-width: 980px) {
|
@media (min-width: 980px) {
|
||||||
.platform-page {
|
.platform-page {
|
||||||
max-width: 1180px;
|
max-width: 1240px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 38px;
|
padding: 38px;
|
||||||
}
|
}
|
||||||
@@ -397,6 +429,14 @@
|
|||||||
.platform-module-grid {
|
.platform-module-grid {
|
||||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.platform-section .platform-grid {
|
||||||
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||||
|
}
|
||||||
|
|
||||||
|
.platform-permission-panel {
|
||||||
|
padding: 22px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 520px) {
|
@media (max-width: 520px) {
|
||||||
@@ -414,4 +454,23 @@
|
|||||||
.platform-title {
|
.platform-title {
|
||||||
font-size: 34px;
|
font-size: 34px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.platform-section {
|
||||||
|
padding: 18px;
|
||||||
|
border-radius: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.platform-actions,
|
||||||
|
.platform-tabs,
|
||||||
|
.platform-row-actions,
|
||||||
|
.platform-permission-header {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
overflow-x: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
.platform-button,
|
||||||
|
.platform-mini-button {
|
||||||
|
min-width: 0;
|
||||||
|
flex: 1 1 138px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -208,6 +208,11 @@
|
|||||||
box-shadow: var(--tiku-shadow);
|
box-shadow: var(--tiku-shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.student-page > .quiet-panel:first-of-type:not(.login-card) {
|
||||||
|
border-color: #bfdbfe;
|
||||||
|
background: linear-gradient(135deg, #eff6ff 0%, #fff 72%);
|
||||||
|
}
|
||||||
|
|
||||||
.list-stack > .quiet-panel:first-child {
|
.list-stack > .quiet-panel:first-child {
|
||||||
border-radius: 28px;
|
border-radius: 28px;
|
||||||
}
|
}
|
||||||
@@ -231,6 +236,11 @@
|
|||||||
box-shadow: var(--tiku-shadow);
|
box-shadow: var(--tiku-shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.report-panel .metric,
|
||||||
|
.quiet-panel .metric {
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
.learning-report-panel {
|
.learning-report-panel {
|
||||||
background: #f8fbff;
|
background: #f8fbff;
|
||||||
}
|
}
|
||||||
@@ -359,6 +369,18 @@
|
|||||||
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
|
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.list-row:nth-child(3n + 1) {
|
||||||
|
border-color: #dbeafe;
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-row:nth-child(3n + 2) {
|
||||||
|
border-color: #dcfce7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-row:nth-child(3n) {
|
||||||
|
border-color: #fef3c7;
|
||||||
|
}
|
||||||
|
|
||||||
.list-row.active {
|
.list-row.active {
|
||||||
border-color: var(--tiku-primary);
|
border-color: var(--tiku-primary);
|
||||||
background: var(--tiku-primary-soft);
|
background: var(--tiku-primary-soft);
|
||||||
@@ -569,6 +591,12 @@
|
|||||||
background: #0f172a;
|
background: #0f172a;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.student-page .toolbar + .quiet-panel,
|
||||||
|
.student-page .toolbar + .report-panel,
|
||||||
|
.student-page .section-block + .quiet-panel {
|
||||||
|
margin-top: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
.checkout-toolbar {
|
.checkout-toolbar {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
overflow-x: visible;
|
overflow-x: visible;
|
||||||
@@ -857,6 +885,15 @@
|
|||||||
gap: 12px;
|
gap: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.student-page > .answer-sheet,
|
||||||
|
.quiet-panel + .answer-sheet {
|
||||||
|
padding: 18px;
|
||||||
|
border: 1px solid var(--tiku-border);
|
||||||
|
border-radius: 24px;
|
||||||
|
background: #fff;
|
||||||
|
box-shadow: var(--tiku-shadow);
|
||||||
|
}
|
||||||
|
|
||||||
.answer-card {
|
.answer-card {
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
height: 58px;
|
height: 58px;
|
||||||
@@ -1055,6 +1092,11 @@
|
|||||||
background: var(--tiku-card-soft);
|
background: var(--tiku-card-soft);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.asset-preview-panel .toolbar {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
overflow-x: visible;
|
||||||
|
}
|
||||||
|
|
||||||
.asset-preview-iframe {
|
.asset-preview-iframe {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 720px;
|
height: 720px;
|
||||||
@@ -1350,6 +1392,19 @@
|
|||||||
.toolbar.wrap {
|
.toolbar.wrap {
|
||||||
gap: 14px;
|
gap: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.student-page .section-block.grid-two,
|
||||||
|
.student-page > .grid-two {
|
||||||
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
|
}
|
||||||
|
|
||||||
|
.vocabulary-word-grid {
|
||||||
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||||
|
}
|
||||||
|
|
||||||
|
.asset-preview-panel {
|
||||||
|
padding: 30px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 420px) {
|
@media (max-width: 420px) {
|
||||||
@@ -1365,4 +1420,39 @@
|
|||||||
.row-meta {
|
.row-meta {
|
||||||
font-size: 21px;
|
font-size: 21px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.student-topbar,
|
||||||
|
.amount-row,
|
||||||
|
.split-row {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: stretch;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toolbar,
|
||||||
|
.toolbar.wrap,
|
||||||
|
.checkout-toolbar,
|
||||||
|
.handbook-search-panel {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
overflow-x: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
.grid-two,
|
||||||
|
.vocabulary-word-grid,
|
||||||
|
.avatar-choice-grid {
|
||||||
|
grid-template-columns: minmax(0, 1fr);
|
||||||
|
}
|
||||||
|
|
||||||
|
.primary-button,
|
||||||
|
.secondary-button,
|
||||||
|
.pill-button,
|
||||||
|
.danger-button {
|
||||||
|
min-width: 0;
|
||||||
|
flex: 1 1 150px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.asset-preview-frame,
|
||||||
|
.asset-preview-iframe {
|
||||||
|
min-height: 520px;
|
||||||
|
height: 520px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -73,6 +73,16 @@
|
|||||||
overflow-x: visible;
|
overflow-x: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.admin-section > .admin-actions:first-child,
|
||||||
|
.admin-shell > .admin-actions,
|
||||||
|
.admin-shell > .admin-tabs {
|
||||||
|
padding: 14px;
|
||||||
|
border: 1px solid var(--tiku-border);
|
||||||
|
border-radius: 24px;
|
||||||
|
background: #fff;
|
||||||
|
box-shadow: var(--tiku-shadow);
|
||||||
|
}
|
||||||
|
|
||||||
.admin-button,
|
.admin-button,
|
||||||
.admin-mini-button {
|
.admin-mini-button {
|
||||||
border: 1px solid var(--tiku-border);
|
border: 1px solid var(--tiku-border);
|
||||||
@@ -119,6 +129,11 @@
|
|||||||
|
|
||||||
.admin-section {
|
.admin-section {
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
|
padding: 24px;
|
||||||
|
border: 1px solid var(--tiku-border);
|
||||||
|
border-radius: 28px;
|
||||||
|
background: rgba(255, 255, 255, 0.72);
|
||||||
|
box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-section-title {
|
.admin-section-title {
|
||||||
@@ -206,6 +221,18 @@
|
|||||||
box-shadow: 0 5px 16px rgba(15, 23, 42, 0.04);
|
box-shadow: 0 5px 16px rgba(15, 23, 42, 0.04);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.admin-row:nth-child(4n + 1) {
|
||||||
|
border-color: #dbeafe;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-row:nth-child(4n + 2) {
|
||||||
|
border-color: #dcfce7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-row:nth-child(4n + 3) {
|
||||||
|
border-color: #fae8ff;
|
||||||
|
}
|
||||||
|
|
||||||
.admin-row.active {
|
.admin-row.active {
|
||||||
border-color: var(--tiku-primary);
|
border-color: var(--tiku-primary);
|
||||||
background: var(--tiku-primary-soft);
|
background: var(--tiku-primary-soft);
|
||||||
@@ -320,6 +347,10 @@
|
|||||||
grid-template-columns: minmax(0, 1fr);
|
grid-template-columns: minmax(0, 1fr);
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
margin-top: 12px;
|
margin-top: 12px;
|
||||||
|
padding: 16px;
|
||||||
|
border: 1px solid var(--tiku-border);
|
||||||
|
border-radius: 22px;
|
||||||
|
background: #f8fafc;
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-textarea {
|
.admin-textarea {
|
||||||
@@ -335,7 +366,8 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
margin-top: 14px;
|
margin-top: 14px;
|
||||||
overflow-x: auto;
|
flex-wrap: wrap;
|
||||||
|
overflow-x: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-sub-list {
|
.admin-sub-list {
|
||||||
@@ -431,7 +463,7 @@
|
|||||||
|
|
||||||
@media (min-width: 980px) {
|
@media (min-width: 980px) {
|
||||||
.admin-page {
|
.admin-page {
|
||||||
max-width: 1180px;
|
max-width: 1240px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 38px;
|
padding: 38px;
|
||||||
}
|
}
|
||||||
@@ -464,6 +496,14 @@
|
|||||||
.admin-form-grid {
|
.admin-form-grid {
|
||||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.admin-section .admin-grid {
|
||||||
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-section .admin-list {
|
||||||
|
gap: 14px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 520px) {
|
@media (max-width: 520px) {
|
||||||
@@ -481,4 +521,22 @@
|
|||||||
.admin-title {
|
.admin-title {
|
||||||
font-size: 34px;
|
font-size: 34px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.admin-section {
|
||||||
|
padding: 18px;
|
||||||
|
border-radius: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-actions,
|
||||||
|
.admin-tabs,
|
||||||
|
.admin-row-actions {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
overflow-x: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-button,
|
||||||
|
.admin-mini-button {
|
||||||
|
min-width: 0;
|
||||||
|
flex: 1 1 138px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user