الفرق بين المراجعتين لصفحة: «قالب:الصفحة الرئيسية/تصفح أبجدي/styles.css»
من ملاقط
المزيد من الإجراءات
عبود السكاف (نقاش | مساهمات) أنشأ الصفحة ب'←--- 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: } /* --- New I...' |
عبود السكاف (نقاش | مساهمات) لا ملخص تعديل |
||
| (3 مراجعات متوسطة بواسطة نفس المستخدم غير معروضة) | |||
| سطر 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 { | ||
| سطر 8: | سطر 11: | ||
} | } | ||
/* --- | /* --- Individual Letter Button Styling --- */ | ||
.alphabet-button { | .alphabet-button { | ||
/* | /* Existing styles */ | ||
min-width: 40px; | |||
height: 40px; | |||
background-color: var(--color-surface-2); | |||
min-width: 40px; | border: 1px solid var(--border-color-base); | ||
height: 40px; | border-radius: var(--border-radius--medium); | ||
background-color: var(--color-surface-2); | box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); | ||
border: 1px solid var(--border-color-base); | transition: all 0.2s ease-in-out; | ||
border-radius: var(--border-radius--medium); | cursor: pointer; | ||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); | margin: 0; /* Override any default margins */ | ||
transition: all 0.2s ease-in-out; /* | |||
/* 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 { | .alphabet-button a { | ||
color: var(--color-base--emphasized) !important; | /* Existing styles for the link text */ | ||
text-decoration: none !important; /* | 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 */ | |||
} | } | ||
/* --- Hover Effects | /* --- Alphabet Button Hover Effects (unchanged, as they apply to the div) --- */ | ||
.alphabet-button:hover { | .alphabet-button:hover { | ||
background-color: var(--color-surface-2--hover); /* | background-color: var(--color-surface-2--hover); /* Use theme variable for hover background */ | ||
border-color: var(--border-color-base); /* Keep border | border-color: var(--border-color-base); /* Keep same border or adjust */ | ||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); | box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); | ||
transform: translateY(-2px); | transform: translateY(-2px); | ||
} | } | ||
.alphabet-button:hover a { | .alphabet-button:hover a { | ||
color: var(--color- | color: var(--color-primary); /* Change to primary color on hover (example) */ | ||
} | } | ||
المراجعة الحالية بتاريخ 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;
}
}