-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from maitrakhatri/alert-button
Alert & Button done
- Loading branch information
Showing
6 changed files
with
256 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
@import url(../style.css); | ||
|
||
.alert { | ||
border-radius: 3px; | ||
padding: 0.75rem; | ||
margin: 2rem; | ||
color: white; | ||
} | ||
|
||
.alert-primary { | ||
background-color: var(--primary); | ||
} | ||
|
||
.alert-secondary { | ||
background-color: var(--secondary); | ||
} | ||
|
||
.alert-success { | ||
background-color: var(--success); | ||
} | ||
|
||
.alert-warning { | ||
background-color: var(--warning); | ||
} | ||
|
||
.alert-danger { | ||
background-color: var(--danger); | ||
} | ||
|
||
.outline-primary { | ||
border: 2px solid var(--primary); | ||
color: var(--primary); | ||
} | ||
|
||
.outline-secondary { | ||
border: 2px solid var(--secondary); | ||
color: var(--secondary); | ||
} | ||
|
||
.outline-success { | ||
border: 2px solid var(--success); | ||
color: var(--success) | ||
} | ||
|
||
.outline-warning { | ||
border: 2px solid var(--warning); | ||
color: var(--warning); | ||
} | ||
.outline-danger { | ||
border: 2px solid var(--danger); | ||
color: var(--danger); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>alert</title> | ||
<link rel="stylesheet" href="alert.css"> | ||
</head> | ||
<body> | ||
|
||
<div class="alert alert-primary"> | ||
This is a Primary Alert !! | ||
</div> | ||
|
||
<div class="alert alert-secondary"> | ||
This is a Secondary Alert !! | ||
</div> | ||
|
||
<div class="alert alert-success"> | ||
This is a Success Alert !! | ||
</div> | ||
|
||
<div class="alert alert-warning"> | ||
This is a Warning Alert !! | ||
</div> | ||
|
||
<div class="alert alert-danger"> | ||
This is a Danger Alert !! | ||
</div> | ||
|
||
<div class="alert outline-primary"> | ||
This is an outline Primary Alert !! | ||
</div> | ||
|
||
<div class="alert outline-secondary"> | ||
This is an outline Secondary Alert !! | ||
</div> | ||
|
||
<div class="alert outline-success"> | ||
This is an outline Success Alert !! | ||
</div> | ||
|
||
<div class="alert outline-warning"> | ||
This is an outline Warning Alert !! | ||
</div> | ||
|
||
<div class="alert outline-danger"> | ||
This is an outline Danger Alert !! | ||
</div> | ||
|
||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
@import url(../style.css); | ||
|
||
.btn { | ||
border: none; | ||
padding: .5rem 1rem; | ||
color: white; | ||
font-size: 16px; | ||
border-radius: 2px; | ||
background-color: #fff; | ||
} | ||
|
||
.btn:hover { | ||
cursor: pointer; | ||
} | ||
|
||
.btn-primary { | ||
background-color: var(--primary); | ||
} | ||
|
||
.btn-secondary { | ||
background-color: var(--secondary); | ||
} | ||
|
||
.btn-success { | ||
background-color: var(--success); | ||
} | ||
|
||
.btn-warning { | ||
background-color: var(--warning); | ||
} | ||
.btn-danger { | ||
background-color: var(--danger); | ||
} | ||
|
||
.btn-outline-primary { | ||
border: 2px solid var(--primary); | ||
color: var(--primary); | ||
} | ||
|
||
.btn-outline-secondary { | ||
border: 2px solid var(--secondary); | ||
color: var(--secondary); | ||
} | ||
|
||
.btn-outline-success { | ||
border: 2px solid var(--success); | ||
color: var(--success) | ||
} | ||
|
||
.btn-outline-warning { | ||
border: 2px solid var(--warning); | ||
color: var(--warning); | ||
} | ||
.btn-outline-danger { | ||
border: 2px solid var(--danger); | ||
color: var(--danger); | ||
} | ||
|
||
.btn-hover:hover { | ||
color: white; | ||
} | ||
|
||
.btn-hover.btn-outline-primary:hover { | ||
background-color: var(--primary); | ||
} | ||
|
||
.btn-hover.btn-outline-secondary:hover { | ||
background-color: var(--secondary); | ||
} | ||
.btn-hover.btn-outline-success:hover { | ||
background-color: var(--success); | ||
} | ||
.btn-hover.btn-outline-warning:hover { | ||
background-color: var(--warning); | ||
} | ||
.btn-hover.btn-outline-danger:hover { | ||
background-color: var(--danger); | ||
} | ||
|
||
.btn-floating-action { | ||
position: fixed; | ||
bottom: 5%; | ||
right: 5%; | ||
padding: .5rem .75rem; | ||
border-radius: 50%; | ||
} | ||
|
||
.btn a { | ||
color: inherit; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Button</title> | ||
<link rel="stylesheet" href="button.css"> | ||
<style> | ||
div { | ||
padding: 1rem; | ||
margin: 1rem; | ||
} | ||
|
||
button { | ||
margin: 1rem; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
|
||
<div> | ||
<button class="btn btn-primary">Primary Button</button> | ||
<button class="btn btn-secondary">Secondary Button</button> | ||
<button class="btn btn-success">Success Button</button> | ||
<button class="btn btn-warning">Warning Button</button> | ||
<button class="btn btn-danger">Danger Button</button> | ||
</div> | ||
|
||
<div> | ||
<button class="btn btn-outline-primary">Outline Primary Button</button> | ||
<button class="btn btn-outline-secondary"> OutlineSecondary Button</button> | ||
<button class="btn btn-outline-success">Outline Success Button</button> | ||
<button class="btn btn-outline-warning">Outline Warning Button</button> | ||
<button class="btn btn-outline-danger">Outline Danger Button</button> | ||
</div> | ||
|
||
<div> | ||
<button class="btn btn-hover btn-outline-primary">Hoverable Outline Primary Button</button> | ||
<button class="btn btn-hover btn-outline-secondary">Hoverable Outline Secondary Button</button> | ||
<button class="btn btn-hover btn-outline-success">Hoverable Outline Success Button</button> | ||
<button class="btn btn-hover btn-outline-warning">Hoverable Outline Warning Button</button> | ||
<button class="btn btn-hover btn-outline-danger">Hoverable Outline Danger Button</button> | ||
</div> | ||
|
||
<div> | ||
<button class="btn btn-outline-secondary"><a href="#">Link Button</a></button> | ||
</div> | ||
|
||
<div> | ||
<button class="btn btn-secondary"><img src="download_white_24dp.svg" alt="download"></button> | ||
</div> | ||
|
||
<div> | ||
<button class="btn btn-floating-action btn-danger"><img src="arrow_upward_white_24dp.svg" alt="go to top"></button> | ||
</div> | ||
|
||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.