|
| 1 | +/* New Post Page Styling */ |
| 2 | + |
| 3 | +.new-post-container { |
| 4 | + display: flex; |
| 5 | + align-items: center; |
| 6 | + justify-content: center; |
| 7 | + min-height: 80vh; |
| 8 | + width: 100%; |
| 9 | + padding: var(--spacing-lg); |
| 10 | + background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); |
| 11 | + position: relative; |
| 12 | +} |
| 13 | + |
| 14 | +.new-post-container::before { |
| 15 | + content: ''; |
| 16 | + position: absolute; |
| 17 | + inset: 0; |
| 18 | + background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" /></svg>'); |
| 19 | + opacity: 0.4; |
| 20 | + pointer-events: none; |
| 21 | +} |
| 22 | + |
| 23 | +.new-post-card { |
| 24 | + width: 100%; |
| 25 | + max-width: 640px; |
| 26 | + margin: auto; |
| 27 | + border-radius: var(--border-radius-xl); |
| 28 | + background: rgba(255, 255, 255, 0.96); |
| 29 | + box-shadow: var(--shadow-heavy); |
| 30 | + border: 1px solid rgba(255, 255, 255, 0.5); |
| 31 | + backdrop-filter: blur(18px); |
| 32 | + position: relative; |
| 33 | + z-index: 1; |
| 34 | + overflow: hidden; |
| 35 | +} |
| 36 | + |
| 37 | +.new-post-card::before { |
| 38 | + content: ''; |
| 39 | + position: absolute; |
| 40 | + top: 0; |
| 41 | + left: 0; |
| 42 | + right: 0; |
| 43 | + height: 4px; |
| 44 | + background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color)); |
| 45 | +} |
| 46 | + |
| 47 | +.new-post-card .ant-card-head { |
| 48 | + background: transparent; |
| 49 | + border-bottom: 1px solid var(--border-light); |
| 50 | + text-align: center; |
| 51 | +} |
| 52 | + |
| 53 | +.new-post-card .ant-card-head-title { |
| 54 | + font-size: var(--font-size-xxl); |
| 55 | + font-weight: var(--font-weight-bold); |
| 56 | + background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); |
| 57 | + -webkit-background-clip: text; |
| 58 | + -webkit-text-fill-color: transparent; |
| 59 | + background-clip: text; |
| 60 | +} |
| 61 | + |
| 62 | +.new-post-card .ant-card-body { |
| 63 | + padding: var(--spacing-xl) calc(var(--spacing-xl) * 1.5); |
| 64 | +} |
| 65 | + |
| 66 | +.new-post-card .ant-form-item { |
| 67 | + margin-bottom: 28px; |
| 68 | +} |
| 69 | + |
| 70 | +.new-post-card .ant-form-item-label { |
| 71 | + padding-bottom: 6px !important; |
| 72 | +} |
| 73 | + |
| 74 | +.new-post-card .ant-form-item-label > label { |
| 75 | + font-weight: 600 !important; |
| 76 | + color: #374151 !important; |
| 77 | + font-size: 15px !important; |
| 78 | + letter-spacing: 0.01em; |
| 79 | +} |
| 80 | + |
| 81 | +.new-post-card .ant-form-item-required::before { |
| 82 | + color: #8b5cf6 !important; |
| 83 | + font-size: 14px !important; |
| 84 | +} |
| 85 | + |
| 86 | +/* Inputs */ |
| 87 | +.new-post-card .ant-input:not(textarea), |
| 88 | +.new-post-card .ant-input-affix-wrapper { |
| 89 | + height: 50px; |
| 90 | + border-radius: 999px; |
| 91 | + border: 2px solid rgba(191, 219, 254, 0.9); |
| 92 | + padding: 0 var(--spacing-md); |
| 93 | + font-size: var(--font-size-md); |
| 94 | + background: rgba(255, 255, 255, 0.95); |
| 95 | + box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06); |
| 96 | +} |
| 97 | + |
| 98 | +.new-post-card .ant-input-textarea textarea, |
| 99 | +.new-post-card textarea.ant-input { |
| 100 | + min-height: 180px !important; |
| 101 | + height: auto !important; |
| 102 | + border-radius: 16px !important; |
| 103 | + border: 2px solid rgba(191, 219, 254, 0.9) !important; |
| 104 | + padding: 14px 18px !important; |
| 105 | + font-size: 15px !important; |
| 106 | + line-height: 1.6 !important; |
| 107 | + background: rgba(255, 255, 255, 0.95) !important; |
| 108 | + resize: vertical !important; |
| 109 | + box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06) !important; |
| 110 | +} |
| 111 | + |
| 112 | +.new-post-card .ant-input::placeholder, |
| 113 | +.new-post-card .ant-input-textarea textarea::placeholder { |
| 114 | + color: var(--text-tertiary); |
| 115 | +} |
| 116 | + |
| 117 | +.new-post-card .ant-input:focus, |
| 118 | +.new-post-card .ant-input-focused, |
| 119 | +.new-post-card .ant-input-affix-wrapper-focused, |
| 120 | +.new-post-card .ant-input-textarea textarea:focus, |
| 121 | +.new-post-card textarea.ant-input:focus { |
| 122 | + border-color: #8b5cf6 !important; |
| 123 | + box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15) !important; |
| 124 | + outline: none !important; |
| 125 | +} |
| 126 | + |
| 127 | +/* Button */ |
| 128 | +.new-post-card .form-button { |
| 129 | + width: 100%; |
| 130 | + height: 48px; |
| 131 | + font-size: var(--font-size-md); |
| 132 | + font-weight: var(--font-weight-medium); |
| 133 | + border-radius: var(--border-radius-lg); |
| 134 | + background: linear-gradient(45deg, var(--primary-color), var(--primary-hover)); |
| 135 | + border: none; |
| 136 | + box-shadow: var(--shadow-medium); |
| 137 | +} |
| 138 | + |
| 139 | +.new-post-card .form-button:hover { |
| 140 | + transform: translateY(-2px); |
| 141 | + box-shadow: var(--shadow-heavy); |
| 142 | + background: linear-gradient(45deg, var(--primary-hover), var(--primary-active)); |
| 143 | +} |
| 144 | + |
| 145 | +.new-post-card .form-button:active { |
| 146 | + transform: translateY(0); |
| 147 | +} |
| 148 | + |
| 149 | +.new-post-card .error-message { |
| 150 | + text-align: center; |
| 151 | + color: var(--error-color); |
| 152 | + font-size: var(--font-size-sm); |
| 153 | + padding: var(--spacing-sm) 0; |
| 154 | +} |
| 155 | + |
| 156 | +@media (max-width: 768px) { |
| 157 | + .new-post-container { |
| 158 | + padding: var(--spacing-md); |
| 159 | + } |
| 160 | + |
| 161 | + .new-post-card .ant-card-body { |
| 162 | + padding: var(--spacing-lg); |
| 163 | + } |
| 164 | +} |
| 165 | + |
0 commit comments