| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- /* WYSIWYG Editor Styles */
- .wysiwyg-container {
- position: relative;
- }
- .wysiwyg-editor {
- min-height: 400px;
- border: 1px solid #d1d5db;
- border-radius: 6px;
- background-color: white;
- }
- .wysiwyg-toolbar {
- border: 1px solid #d1d5db;
- border-bottom: none;
- border-radius: 6px 6px 0 0;
- background-color: #f9fafb;
- padding: 8px;
- display: flex;
- flex-wrap: wrap;
- gap: 4px;
- }
- .wysiwyg-btn {
- padding: 6px 10px;
- border: 1px solid #d1d5db;
- border-radius: 4px;
- background-color: white;
- cursor: pointer;
- font-size: 12px;
- transition: all 0.2s;
- }
- .wysiwyg-btn:hover {
- background-color: #f3f4f6;
- border-color: #9ca3af;
- }
- .wysiwyg-btn.active {
- background-color: #3b82f6;
- color: white;
- border-color: #3b82f6;
- }
- .wysiwyg-separator {
- width: 1px;
- height: 24px;
- background-color: #d1d5db;
- margin: 0 4px;
- }
- .wysiwyg-select {
- padding: 4px 8px;
- border: 1px solid #d1d5db;
- border-radius: 4px;
- background-color: white;
- font-size: 12px;
- }
- .wysiwyg-content {
- padding: 12px;
- min-height: 350px;
- font-family: inherit;
- font-size: 14px;
- line-height: 1.5;
- border: none;
- outline: none;
- resize: vertical;
- }
- .wysiwyg-content:focus {
- outline: 2px solid #3b82f6;
- outline-offset: -2px;
- }
- /* Form integration */
- .publication-form .form-group:has(.wysiwyg-container) {
- margin-bottom: 20px;
- }
- .wysiwyg-label {
- display: block;
- margin-bottom: 8px;
- font-weight: 600;
- color: #374151;
- }
- /* Character count */
- .wysiwyg-char-count {
- margin-top: 8px;
- font-size: 12px;
- color: #6b7280;
- text-align: right;
- }
- /* Responsive design */
- @media (max-width: 768px) {
- .wysiwyg-toolbar {
- padding: 6px;
- gap: 2px;
- }
-
- .wysiwyg-btn {
- padding: 4px 6px;
- font-size: 11px;
- }
-
- .wysiwyg-content {
- padding: 8px;
- min-height: 300px;
- }
- }
|