123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- $primary-color: #3880ff; // 主色调
- $secondary-color: #f4f4f4; // 辅助色调
- $accent-color: #ff4081; // 强调色
- $font-family: 'Helvetica Neue', Arial, sans-serif;
- ion-header {
- background-color: $primary-color;
- color: white;
- ion-toolbar {
- display: flex;
- justify-content: center;
- align-items: center;
- ion-title {
- font-size: 24px;
- font-weight: bold;
- }
- }
- }
- ion-content {
- padding: 16px;
- background-color: $secondary-color;
- .custom-segment {
- display: flex;
- justify-content: space-around;
- margin-bottom: 16px;
- .nav-button {
- flex: 1;
- text-align: center;
- padding: 10px;
- font-size: 16px;
- color: $primary-color;
- &.activated {
- background-color: $primary-color;
- color: white;
- }
- }
- }
- .info-section {
- background-color: white;
- border-radius: 8px;
- padding: 16px;
- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
- margin-bottom: 16px;
- .input-row {
- display: flex;
- justify-content: space-between;
- margin-bottom: 16px;
- .input-group {
- flex: 1;
- margin-right: 8px;
- &:last-child {
- margin-right: 0;
- }
- label {
- font-weight: bold;
- margin-bottom: 4px;
- display: block;
- }
- .input-box {
- width: 100%;
- padding: 8px;
- border: 1px solid #ccc;
- border-radius: 4px;
- }
- .unit {
- font-size: 14px;
- margin-left: 4px;
- }
- }
- }
- .gender-section {
- display: flex;
- align-items: center;
- .gender-option {
- padding: 8px 12px;
- border: 1px solid #ccc;
- border-radius: 4px;
- margin-right: 8px;
- cursor: pointer;
- &.selected {
- background-color: $primary-color;
- color: white;
- }
- }
- }
- }
- .textarea-section {
- background-color: white;
- border-radius: 8px;
- padding: 16px;
- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
- margin-bottom: 16px;
- .textarea-input {
- width: 100%;
- height: 120px;
- border: 1px solid #ccc;
- border-radius: 4px;
- padding: 8px;
- resize: none;
- }
- }
- .analysis-button {
- width: 100%;
- margin-top: 16px;
- background-color: $primary-color;
- color: white;
- padding: 12px;
- border-radius: 4px;
- font-size: 16px;
- transition: background-color 0.3s;
- &.generating {
- background-color: $accent-color;
- }
- &:hover {
- background-color: darken($primary-color, 10%);
- }
- }
- .bigbox1 {
- background-color: white;
- border-radius: 8px;
- padding: 16px;
- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
- margin-top: 16px;
- .content-style {
- font-size: 16px;
- line-height: 1.5;
- }
- }
- .center-button {
- display: flex;
- justify-content: center;
- align-items: flex-start;
- width: 100%;
- height: 100%;
- text-align: center;
- padding-top: 20px; /* 减小顶部间距,缩短按钮与顶部的距离 */
- margin-bottom: 10px; /* 调整按钮之间的间距,减少底部间距 */
- }
-
- /* 对按钮进行样式调整 */
- .center-button ion-button {
- font-size: 18px;
- padding: 14px 24px;
- border-radius: 8px;
- }
- }
|