تبديل القائمة
Toggle preferences menu
تبديل القائمة الشخصية
غير مسجل للدخول
سيكون عنوان الآيبي الخاص بك مرئيًا للعامة إذا قمت بإجراء أي تعديلات.

الفرق بين المراجعتين لصفحة: «قالب:الصفحة الرئيسية/تصفح أبجدي/styles.css»

من ملاقط
لا ملخص تعديل
لا ملخص تعديل
 
(2 مراجعات متوسطة بواسطة نفس المستخدم غير معروضة)
سطر 1: سطر 1:
.alphabet-row{
margin-top:var(--space-md);
}
/* --- New Flexbox Container for Alphabet Buttons --- */
/* --- New Flexbox Container for Alphabet Buttons --- */
.alphabet-nav-row {
.alphabet-nav-row {
سطر 13: سطر 16:
     min-width: 40px;
     min-width: 40px;
     height: 40px;
     height: 40px;
     background-color: #ffffff; /* White background for the button */
     background-color: var(--color-surface-2);
     border: 1px solid var(--border-color-base);
     border: 1px solid var(--border-color-base);
     border-radius: var(--border-radius--medium);
     border-radius: var(--border-radius--medium);
سطر 33: سطر 36:
     color: var(--color-base--emphasized) !important;
     color: var(--color-base--emphasized) !important;
     text-decoration: none !important;
     text-decoration: none !important;
     font-size: 1.3em;
     font-size: 1em;
     font-weight: bold;
     font-weight: 400;
     line-height: 1; /* Ensures text aligns well */
     line-height: 1; /* Ensures text aligns well */
     padding: 0; /* Remove padding here as the whole link will be clickable */
     padding: 0; /* Remove padding here as the whole link will be clickable */

المراجعة الحالية بتاريخ 11:49، 22 يونيو 2025

.alphabet-row{
	margin-top:var(--space-md);
}
/* --- New Flexbox Container for Alphabet Buttons --- */
.alphabet-nav-row {
    display: flex; /* Makes the buttons horizontal */
    flex-wrap: wrap; /* Allows buttons to wrap to the next line on smaller screens */
    justify-content: center; /* Centers buttons horizontally within the container */
    gap: var(--space-xxs); /* Uses a small gap for spacing between buttons */
    padding: var(--space-xxs) 0; /* Some padding around the button row */
}

/* --- Individual Letter Button Styling --- */
.alphabet-button {
    /* Existing styles */
    min-width: 40px;
    height: 40px;
    background-color: var(--color-surface-2);
    border: 1px solid var(--border-color-base);
    border-radius: var(--border-radius--medium);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    margin: 0; /* Override any default margins */

    /* New/modified styles for clickable div */
    position: relative; /* Essential for absolute positioning of child link */
    display: flex;      /* Makes it a flex container */
    justify-content: center; /* Centers content horizontally */
    align-items: center;     /* Centers content vertically */
    overflow: hidden;        /* Hides any overflow, good practice */
}

.alphabet-button a {
    /* Existing styles for the link text */
    color: var(--color-base--emphasized) !important;
    text-decoration: none !important;
    font-size: 1em;
    font-weight: 400;
    line-height: 1; /* Ensures text aligns well */
    padding: 0; /* Remove padding here as the whole link will be clickable */

    /* New/modified styles to make the link cover the entire div */
    position: absolute; /* Position relative to .alphabet-button */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;      /* Make the link itself a flex container */
    justify-content: center; /* Center the text horizontally within the link */
    align-items: center;     /* Center the text vertically within the link */
    width: 100%;        /* Ensure it spans full width */
    height: 100%;       /* Ensure it spans full height */
    z-index: 1;         /* Ensure the link is above other content if any */
}

/* --- Alphabet Button Hover Effects (unchanged, as they apply to the div) --- */
.alphabet-button:hover {
    background-color: var(--color-surface-2--hover); /* Use theme variable for hover background */
    border-color: var(--border-color-base); /* Keep same border or adjust */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.alphabet-button:hover a {
    color: var(--color-primary); /* Change to primary color on hover (example) */
}

/* --- Responsive Adjustments for Smaller Screens --- */
@media (max-width: 600px) {
    .alphabet-button {
        min-width: 35px;
        height: 35px;
    }
    .alphabet-button a {
        font-size: 1.2em;
    }
}