Created
October 1, 2024 13:32
-
-
Save tanaypratap/0ff53085ef68050fa630f7ed43953919 to your computer and use it in GitHub Desktop.
Basic CSS for neoG levelZero mini apps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Import Google Font */ | |
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600&display=swap'); | |
/* Theme Variables */ | |
:root { | |
--theme-color: #4A90E2; /* A nice shade of blue */ | |
--font-color: #333; | |
--font-family: 'Source Sans Pro', sans-serif; | |
--background-color: #f9f9f9; | |
--button-hover-color: #357ABD; | |
} | |
/* Basic Page Styles */ | |
body { | |
font-family: var(--font-family); | |
background-color: var(--background-color); | |
color: var(--font-color); | |
margin: 0; | |
padding: 20px; | |
line-height: 1.6; | |
} | |
/* Container */ | |
.container { | |
max-width: 800px; | |
margin: 0 auto; | |
padding: 20px; | |
background: #fff; | |
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); | |
border-radius: 8px; | |
} | |
/* Headings */ | |
h1, h2, h3, h4, h5, h6 { | |
color: var(--theme-color); | |
margin-bottom: 10px; | |
} | |
h1 { | |
font-size: 2em; | |
} | |
h2 { | |
font-size: 1.75em; | |
} | |
h3 { | |
font-size: 1.5em; | |
} | |
/* Paragraphs */ | |
p { | |
margin: 10px 0; | |
font-size: 1em; | |
} | |
/* Input Fields */ | |
input[type="text"], input[type="number"] { | |
padding: 10px; | |
width: 100%; | |
border: 1px solid #ddd; | |
border-radius: 4px; | |
margin: 10px 0; | |
font-size: 1em; | |
box-sizing: border-box; | |
} | |
input:focus { | |
border-color: var(--theme-color); | |
outline: none; | |
box-shadow: 0 0 5px rgba(74, 144, 226, 0.5); | |
} | |
/* Buttons */ | |
button { | |
padding: 10px 15px; | |
font-size: 1em; | |
color: #fff; | |
background-color: var(--theme-color); | |
border: none; | |
border-radius: 4px; | |
cursor: pointer; | |
transition: background-color 0.3s ease; | |
display: inline-block; | |
} | |
button:hover { | |
background-color: var(--button-hover-color); | |
} | |
button:disabled { | |
background-color: #ccc; | |
cursor: not-allowed; | |
} | |
/* Result Display */ | |
#result { | |
margin-top: 15px; | |
padding: 10px; | |
border: 1px solid #ddd; | |
border-radius: 4px; | |
background-color: #f1f1f1; | |
color: var(--font-color); | |
} | |
/* Utility Classes */ | |
.text-center { | |
text-align: center; | |
} | |
.mt-20 { | |
margin-top: 20px; | |
} | |
.mb-20 { | |
margin-bottom: 20px; | |
} | |
.hidden { | |
display: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment