Skip to content

Instantly share code, notes, and snippets.

@zafar-saleem
Created May 5, 2025 11:16
Show Gist options
  • Save zafar-saleem/9f9d3c2ee8d3f17a61830199f82bc99a to your computer and use it in GitHub Desktop.
Save zafar-saleem/9f9d3c2ee8d3f17a61830199f82bc99a to your computer and use it in GitHub Desktop.
.flex {
display: flex;
flex-direction: row;
gap: 1rem;
}
.column {
flex-direction: column;
}
.gap_0 {
gap: 0;
}
.relative {
position: relative;
}
.absolute {
position: absolute;
}
.page_title {
font-size: 1.50rem;
text-align: center;
}
.form_section_title {
display: block;
font-size: 1.05rem;
font-weight: bold;
}
.form_field {
padding: 0.5rem 1rem;
border-radius: 0.50rem;
background: transparent;
font-size: 1rem;
border: 1px solid #cccccc;
outline: none;
display: block;
color: #545454;
width: 100%;
&::-webkit-outer-spin-button,
&::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
}
.visa_position {
top: 5px;
right: 10px;
}
.master_position {
top: 3px;
right: 45px;
}
.form_field_flex {
flex-grow: 1;
flex-shrink: 1;
flex-basis: 0;
}
.tooltip_button {
anchor-name: --tooltip-button;
padding: 0.35rem 0.50rem;
border-radius: 10rem;
border: none;
font-weight: bold;
right: 5px;
top: 6px;
font-size: .65rem;
cursor: pointer;
}
.tooltip_target {
position: absolute;
position-anchor: --tooltip-button;
position-area: start start;
width: 10rem;
padding: 1rem;
border-radius: .50rem;
background: #f9f8f8;
color: #2e2e2e;
box-shadow: 0 0 5px 5px #ccc;
border: none;
}
.form_error {
display: block;
color: #f81313;
font-size: 0.75rem;
padding-top: 5px;
padding-left: 5px;
}
.form_button {
padding: 0.5rem 1rem;
border-radius: 0.25rem;
background-color: #189627;
border: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment