-
Notifications
You must be signed in to change notification settings - Fork 0
CSS styles
Abel VB edited this page Aug 17, 2024
·
33 revisions
CSS code:
- margin: 0px: Resets all element margins to zero to eliminate default spacing.
- padding: 0px: Resets all element padding to zero to ensure consistent spacing.
- box-sizing: border-box: Includes padding and border in the element’s total width and height, simplifying layout calculations.
- font-family: 'Roboto', sans-serif;: Sets the font to 'Roboto' or a generic sans-serif font, providing a clean and modern typography.
- ´Comment`: Resets margin and padding for all elements, ensuring consistent spacing across the page. Sets the box-sizing property to border-box, which includes padding and border in the element’s total width and height.
- height: 100%: Ensures both html and body elements take up the full height of the viewport.
- background-color: black: Sets a black background color for the entire page, creating a dark theme.
- ´Comment`: Sets the height of both the HTML and body elements to 100% of the viewport height. Applies a black background color to the entire page.
- text-decoration: none;: Removes the default underline from hyperlinks.
- color: white;: Sets the color of text within links to white for better visibility against the black background.
- Comment: Removes underlines from links and sets their color to white, making them stand out against the black background.
- Comment: Centers the text vertically and horizontally within its container. Positions it relative to allow for positioning adjustments.
- Comment: Defines the position and size of a specific division, with a grey border and relative positioning.
- Comment: Styles the top menu bar with a black background and sets its height to 10% of the viewport height.
- Comment: Styles the title section with a black background and sets its height to 30% of the viewport height.
- Comment: Sets the dimensions and positioning of an image within the title section.
- Comment: Defines the style for a panel section with a black background and a height of 10% of the viewport height.
- Comment: Styles a side panel with a grey background, border, and rounded corners. Floats it to the left.
- Comment: Styles another side panel with similar properties to the previous one but floats it to the right.
- Comment: Sets the color, padding, and positioning of text within the navigation section.
13. Hover and Active States (.div_sp_1_ger_2:hover, .div_sp_1_ger_2:active, .div_sp_2_ger_2:hover, .div_sp_2_ger_2:active):
- Comment: Changes the background color of side panels when hovered over or activated to enhance interactivity.
- Comment: Sets the dimensions and positioning of an image within a panel section.
- Comment: Defines the background colors and dimensions for various panel sections, including image panels and card sections.
- Comment: Styles the card containers with a specific background color and height, grouping multiple cards together.
- Comment: Defines the size, positioning, and background color of individual cards within the card containers.
- Comment: Styles the divisions within each card, including sections for icons, text, and additional content. Each division has specific dimensions and background colors.
- Comment: Defines the styles for different sections within the card, adjusting sizes and colors.
- Comment: Styles the section for recent content with a background color and image.
- Comment: Contains CSS rules that apply to screens narrower than 600px, adjusting layout and sizing for mobile devices. Changes include resizing panels, adjusting card sizes, and modifying layout float directions.
This project was developed with assistance from ChatGPT by OpenAI. Special thanks for help with coding guidance and suggestions.