Changeset 43c9090 for src/main/resources/static/css/adminNews.css
- Timestamp:
- 10/12/24 21:32:15 (5 weeks ago)
- Branches:
- master
- Parents:
- 743de55
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/resources/static/css/adminNews.css
r743de55 r43c9090 27 27 } 28 28 .news-item{ 29 display: flex; /* Aligns image and text in a row */30 flex-direction: column; /* Change to 'row' for horizontal layout */31 width: 260px;29 display: flex; 30 flex-direction: column; 31 width: 420px; 32 32 align-items: center; 33 33 justify-content: center; 34 34 margin: 0 15px 10px 0; 35 35 padding: 20px; 36 border: 1px solid #ddd; /* Optional: Adds a border */36 border: 1px solid #ddd; 37 37 box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 38 38 } 39 .news-item > *{ 40 text-align: left; 41 } 39 42 img{ 40 width: 100%; /* Make image responsive */41 max-width: 400px; /* Set a maximum width for the image */42 height: auto; /* Maintain aspect ratio */43 border-radius: 10px; /* Optional: Adds rounded corners */43 width: 100%; 44 max-width: 400px; 45 height: auto; 46 border-radius: 10px; 44 47 margin-bottom: 15px; 45 48 } … … 47 50 font-size: 1.2rem; 48 51 line-height: 1.5; 49 text-align: center; /* Center the text */52 text-align: center; 50 53 color: #333; 51 54 margin: 0; … … 53 56 @media (max-width: 768px) { 54 57 .news-item { 55 flex-direction: column; /* Stack elements on smaller screens */58 flex-direction: column; 56 59 } 57 60 } … … 98 101 } 99 102 100 /* Style for the upload button */101 103 #open-popup { 102 104 padding: 10px 20px; … … 110 112 111 113 #image-popup { 112 width: 400px; /* Set a width for the modal */114 width: 400px; 113 115 background-color: white; 114 116 border-radius: 8px; … … 126 128 } 127 129 128 /* Image preview area */129 130 #image-preview { 130 131 margin-top: 10px; … … 133 134 } 134 135 135 /* Style for buttons inside the popup */136 136 #image-popup button { 137 137 padding: 8px 15px; … … 147 147 148 148 #edit-button, #save-button { 149 background-color: #17a2b8; /* Blueish color */149 background-color: #17a2b8; 150 150 } 151 151 152 152 153 /* Overlay */154 153 #overlay { 155 background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */156 z-index: 999; /* Ensure it is behind the modal but above everything else */154 background: rgba(0, 0, 0, 0.5); 155 z-index: 999; 157 156 } 158 157 159 /* Button hover effects */160 158 #image-popup button:hover, #open-popup:hover { 161 159 opacity: 0.9; 162 160 } 163 161 164 165 166 /* Cancel button */167 162 #cancel-button { 168 background-color: #dc3545; /* Red color */163 background-color: #dc3545; 169 164 } 170 165 171 166 #authButton{ 167 position: absolute; 168 left: 1145px; 169 top: 21px; 170 width: 150px; 171 color: white; 172 background-color: red; 173 padding: 10px; 174 border: none; 175 border-radius: 5px; 176 }
Note:
See TracChangeset
for help on using the changeset viewer.