Ignore:
Timestamp:
10/12/24 21:32:15 (5 weeks ago)
Author:
macagaso <gasoskamarija@…>
Branches:
master
Parents:
743de55
Message:

Updated version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/resources/static/css/adminNews.css

    r743de55 r43c9090  
    2727}
    2828.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;
    3232    align-items: center;
    3333    justify-content: center;
    3434    margin: 0 15px 10px 0;
    3535    padding: 20px;
    36     border: 1px solid #ddd; /* Optional: Adds a border */
     36    border: 1px solid #ddd;
    3737    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    3838}
     39.news-item > *{
     40    text-align: left;
     41}
    3942img{
    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;
    4447    margin-bottom: 15px;
    4548}
     
    4750    font-size: 1.2rem;
    4851    line-height: 1.5;
    49     text-align: center; /* Center the text */
     52    text-align: center;
    5053    color: #333;
    5154    margin: 0;
     
    5356@media (max-width: 768px) {
    5457    .news-item {
    55         flex-direction: column; /* Stack elements on smaller screens */
     58        flex-direction: column;
    5659    }
    5760}
     
    98101}
    99102
    100 /* Style for the upload button */
    101103#open-popup {
    102104    padding: 10px 20px;
     
    110112
    111113#image-popup {
    112     width: 400px; /* Set a width for the modal */
     114    width: 400px;
    113115    background-color: white;
    114116    border-radius: 8px;
     
    126128}
    127129
    128 /* Image preview area */
    129130#image-preview {
    130131    margin-top: 10px;
     
    133134}
    134135
    135 /* Style for buttons inside the popup */
    136136#image-popup button {
    137137    padding: 8px 15px;
     
    147147
    148148#edit-button, #save-button {
    149     background-color: #17a2b8; /* Blueish color */
     149    background-color: #17a2b8;
    150150}
    151151
    152152
    153 /* Overlay */
    154153#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;
    157156}
    158157
    159 /* Button hover effects */
    160158#image-popup button:hover, #open-popup:hover {
    161159    opacity: 0.9;
    162160}
    163161
    164 
    165 
    166 /* Cancel button */
    167162#cancel-button {
    168     background-color: #dc3545; /* Red color */
     163    background-color: #dc3545;
    169164}
    170165
    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.