Summary Files Commits Branches @commit @diff @stats
path: root / Year 4 / Web technologies / hw02.css
blob: 16426f7c724b31e115486405b2fc8eaeecc3db9b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
:root {
  --dark-gray:  #b8c1cb;
  --light-gray: #e8eef4;

  --gray-green:        #c3cdc0;
  --darker-gray-green: #bbc9ba;

  --cyan-green:        #defdf1;
  --darker-cyan-green: #cfe7d9;

  --light-dark-green:   #79a06b;
  --lighter-dark-green: #558d3d;
  --dark-green:         #427d23;
}

body {
  margin: 0;
  height: 100vh;
  width:  100vw;
}

body > :only-child {
  position:  absolute;
  transform: translate(-50%, -50%);
  top:  50%;
  left: 50%;
}

.registration-container {
  background-color: var(--cyan-green);
  /* Made to look like in the screenshot */
  border-top:    1px solid var(--dark-gray);
  border-bottom: 1px solid var(--dark-gray);
  border-left:   3px solid var(--light-gray);

  box-sizing: border-box;
  width: 30.2%; /* ~585px on 1920px width */
}

.registration-form {
  border:    1px solid var(--dark-green);
  font-size: 17px;
  /* I wanted to make it as pixel-perfect as possible */
  margin:  3.64em 4.58em 4.88em 4.29em;
  padding: 1.82em;
}

.registration-form > :not(:last-child) {
  margin-bottom: 0.7em;
}

.registration-input {
  background-color: white;
  border: 2px solid var(--gray-green);
  border-radious: none;
  display:   block;
  font-size: inherit;
  padding: 0.41em;
  width:   100%;
}

.registration-input:hover {
  border-color: var(--light-dark-green);
}

input[type="submit"].registration-input {
  background-color: var(--darker-cyan-green);
  border-color:     var(--darker-gray-green);
  color:            var(--lighter-dark-green);
}

input[type="submit"].registration-input:hover {
  background-color: var(--lighter-dark-green);
  border-color:     var(--darker-cyan-green);
  color:            var(--darker-cyan-green);
}