DIDS-Coursework/DIS-COMP4039-CW2-psxrp11-20450011/psxrp11-20450011_InstallationFiles/css/template.css

100 lines
1.9 KiB
CSS
Raw Normal View History

@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,600;1,700;1,800;1,900&family=Yeseva+One&display=swap');
@import "normalize.css";
:root {
--primary: hsla(220, 60%, 50%, 1);
--hover: hsl(240, 50%, 22%);
--secondary: hsl(210, 100%, 95%, 1);
--accent: hsla(15, 99%, 57%, 1);
--light: hsla(90, 8%, 85%, 1);
--mutedBlack: hsla(0, 0%, 0%, 0.25)
}
* {
box-sizing: border-box;
}
html, body {
padding: 0;
margin: 0;
}
body {
font-size: 1em;
font-weight: 400;
font-family: "Fira Sans", sans-serif;
}
h1, h2 {
font-weight: 400;
font-family: "Yeseva One", cursive;
}
.btn {
outline: none;
border: none;
padding: 0.875em 1.75em;
cursor: pointer;
-webkit-border-radius: 1em;
-moz-border-radius: 1em;
border-radius: 1em;
}
.btnPrimary {
background-color: var(--primary);
color: #FFFFFF;
}
.btnPrimary:hover {
background-color: var(--hover);
}
div.formControl {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
gap: 0.5em;
width: 100%;
}
input:not([type="submit"]), form .formControl textarea {
width: 100%;
border: 4px solid var(--primary);
background: 0 0;
outline: 0;
-webkit-border-radius: 1em;
-moz-border-radius: 1em;
border-radius: .5em;
padding: 0 .5em;
height: 3em;
}
input:not([type="submit"]):hover, form .formControl textarea:hover {
border: 4px solid var(--hover);
}
table {
border-collapse: collapse;
}
table td, table th {
border: 1px solid #DDDDDD;
padding: 0.5em;
min-width: 7.5em;
}
table tr:nth-child(even) {
background-color: var(--secondary);
}
table tr:hover {
background-color: #ddd;
}
table th {
padding: 0.75em 0;
text-align: left;
background-color: var(--primary);
color: #FFFFFF;
}