23.10
This commit is contained in:
@@ -18,8 +18,8 @@
|
||||
</div>
|
||||
<div class="box">
|
||||
<form action="index.php" method="post">
|
||||
<label for="a">Wprowadź liczbę A:</label><br>
|
||||
<input type="number" name="a" id="a"><br>
|
||||
<label for="a">Wprowadź liczbę A:</label>
|
||||
<input type="number" name="a" id="a">
|
||||
<button type="submit">Wyślij</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -1,68 +1,289 @@
|
||||
/* === UNIVERSAL SCHOOL TEMPLATE CSS === */
|
||||
/* clean, modern, slightly playful design – copy-paste friendly */
|
||||
|
||||
/* === BASE RESET === */
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
body {
|
||||
font-family: Verdana, serif;
|
||||
background: #ffffff;
|
||||
margin: 15px;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
header {
|
||||
border: 2px solid black;
|
||||
border-radius: 1em;
|
||||
padding: 10px 20px;
|
||||
box-shadow: rgba(0, 0, 0, 0.2) 3px 3px 5px;
|
||||
background: #f0f0f0;
|
||||
}
|
||||
|
||||
input {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 5px;
|
||||
width: 30%;
|
||||
border: black 2px solid;
|
||||
border-radius: 0.5em;
|
||||
height: 2em;
|
||||
}
|
||||
|
||||
button {
|
||||
padding: 5px;
|
||||
width: 30%;
|
||||
border: black 2px solid;
|
||||
border-radius: 0.5em;
|
||||
font-weight: bold;
|
||||
margin-top: 10px;
|
||||
}
|
||||
pre {
|
||||
font-family: Verdana, serif;
|
||||
}
|
||||
|
||||
.box {
|
||||
border: 2px solid black;
|
||||
padding: 15px 20px;
|
||||
border-radius: 1em;
|
||||
margin: 15px 0 10px 0;
|
||||
box-shadow: rgba(0, 0, 0, 0.2) 3px 3px 5px;
|
||||
}
|
||||
|
||||
.box h3 {
|
||||
cursor: pointer;
|
||||
}
|
||||
td {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
tr {
|
||||
padding: 0;
|
||||
|
||||
/* === ROOT VARIABLES === */
|
||||
:root {
|
||||
--accent: #007aff;
|
||||
--border: #000;
|
||||
--bg: #fff;
|
||||
--bg-alt: #f9f9f9;
|
||||
--text: #1c1c1e;
|
||||
--shadow: rgba(0, 0, 0, 0.15) 3px 3px 6px;
|
||||
--radius: 1em;
|
||||
--max-width: 1100px;
|
||||
}
|
||||
|
||||
.y {
|
||||
background: yellow;
|
||||
/* === PAGE === */
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Verdana, sans-serif;
|
||||
background: linear-gradient(180deg, #ffffff 0%, #f5f5f6 100%);
|
||||
color: var(--text);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.b {
|
||||
background:blue;
|
||||
/* === HEADERS === */
|
||||
header {
|
||||
border: 2px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 20px 30px;
|
||||
box-shadow: var(--shadow);
|
||||
background: var(--bg);
|
||||
width: 95%;
|
||||
max-width: var(--max-width);
|
||||
text-align: center;
|
||||
margin-top: 25px;
|
||||
transition: box-shadow 0.3s ease, transform 0.2s ease;
|
||||
}
|
||||
|
||||
header:hover {
|
||||
box-shadow: rgba(0, 0, 0, 0.25) 4px 4px 10px;
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
header h1 {
|
||||
font-size: 2.2rem;
|
||||
}
|
||||
|
||||
header h2 {
|
||||
margin-top: 0.5rem;
|
||||
font-weight: 400;
|
||||
font-size: 1.1rem;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
/* === UNIVERSAL BOX === */
|
||||
.box {
|
||||
border: 2px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 25px 35px;
|
||||
margin-top: 25px;
|
||||
background: var(--bg);
|
||||
box-shadow: var(--shadow);
|
||||
width: 95%;
|
||||
max-width: var(--max-width);
|
||||
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
|
||||
.box:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: rgba(0, 0, 0, 0.25) 4px 4px 10px;
|
||||
}
|
||||
|
||||
/* === TEXT ELEMENTS === */
|
||||
p {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4 {
|
||||
margin-bottom: 0.5rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* === LISTS === */
|
||||
ul, ol {
|
||||
margin: 1rem 0 1rem 1.5rem;
|
||||
}
|
||||
|
||||
li {
|
||||
margin-bottom: 0.4rem;
|
||||
}
|
||||
|
||||
/* === TABLES === */
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 1rem 0;
|
||||
background: var(--bg);
|
||||
border: 2px solid var(--border);
|
||||
border-radius: 0.6em;
|
||||
overflow: hidden;
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
th, td {
|
||||
padding: 10px 12px;
|
||||
border-bottom: 1px solid #ccc;
|
||||
}
|
||||
|
||||
th {
|
||||
background: var(--bg-alt);
|
||||
font-weight: bold;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
tr:hover {
|
||||
background: #f0f7ff;
|
||||
}
|
||||
|
||||
/* === FORMS === */
|
||||
form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.2rem;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
border: 2px solid var(--border);
|
||||
border-radius: 0.8em;
|
||||
padding: 1.2rem 1.5rem;
|
||||
background: var(--bg-alt);
|
||||
}
|
||||
|
||||
legend {
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
padding: 0 0.4rem;
|
||||
font-size: 1.05rem;
|
||||
}
|
||||
|
||||
label {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
input[type="text"],
|
||||
input[type="email"],
|
||||
input[type="password"],
|
||||
input[type="number"],
|
||||
input[type="tel"],
|
||||
textarea,
|
||||
select {
|
||||
width: 100%;
|
||||
font-size: 1rem;
|
||||
margin-top: 6px;
|
||||
margin-bottom: 8px;
|
||||
border: 2px solid var(--border);
|
||||
border-radius: 0.5em;
|
||||
padding: 0.4rem 0.5rem;
|
||||
transition: all 0.2s ease;
|
||||
background: var(--bg);
|
||||
}
|
||||
|
||||
textarea {
|
||||
resize: vertical;
|
||||
min-height: 100px;
|
||||
}
|
||||
|
||||
input:focus,
|
||||
textarea:focus,
|
||||
select:focus {
|
||||
outline: none;
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 6px rgba(0, 122, 255, 0.4);
|
||||
background: #f2f6ff;
|
||||
}
|
||||
|
||||
input[type="radio"],
|
||||
input[type="checkbox"] {
|
||||
accent-color: var(--accent);
|
||||
transform: scale(1.2);
|
||||
margin-right: 0.3rem;
|
||||
}
|
||||
|
||||
/* === BUTTONS === */
|
||||
button,
|
||||
input[type="submit"],
|
||||
input[type="button"],
|
||||
input[type="reset"] {
|
||||
padding: 10px 20px;
|
||||
border: 2px solid var(--border);
|
||||
border-radius: 0.5em;
|
||||
font-weight: bold;
|
||||
font-size: 1rem;
|
||||
background: linear-gradient(180deg, #fafafa 0%, #eaeaea 100%);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
align-self: flex-start;
|
||||
}
|
||||
|
||||
button:hover,
|
||||
input[type="submit"]:hover,
|
||||
input[type="button"]:hover,
|
||||
input[type="reset"]:hover {
|
||||
background: #e0e0e0;
|
||||
box-shadow: rgba(0, 0, 0, 0.25) 3px 3px 6px;
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
button:active,
|
||||
input[type="submit"]:active,
|
||||
input[type="button"]:active,
|
||||
input[type="reset"]:active {
|
||||
transform: translateY(0);
|
||||
box-shadow: rgba(0, 0, 0, 0.15) 1px 1px 3px;
|
||||
background: #f0f0f0;
|
||||
}
|
||||
|
||||
/* === HORIZONTAL RULES === */
|
||||
hr {
|
||||
border: 0;
|
||||
border-top: 2px solid var(--border);
|
||||
margin: 1.5rem 0;
|
||||
}
|
||||
|
||||
/* === IMAGES === */
|
||||
img {
|
||||
max-width: 100%;
|
||||
border-radius: 0.5em;
|
||||
}
|
||||
|
||||
/* === CODE BLOCKS === */
|
||||
code, pre {
|
||||
background: #f4f4f4;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 0.4em;
|
||||
padding: 0.3em 0.5em;
|
||||
font-family: "Courier New", monospace;
|
||||
}
|
||||
|
||||
pre {
|
||||
padding: 1em;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
/* === RESPONSIVE === */
|
||||
@media (max-width: 900px) {
|
||||
header, .box {
|
||||
width: 95%;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
button {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
textarea {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
header h1 {
|
||||
font-size: 1.7rem;
|
||||
}
|
||||
|
||||
header h2 {
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,7 +75,6 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||
<label for="y">Y:</label><br>
|
||||
<input type="number" name="y" id="y" required>
|
||||
</fieldset>
|
||||
<br>
|
||||
<fieldset>
|
||||
<legend>Parametry prostokąta (X=A, X=B, Y=C, Y=D):</legend>
|
||||
<label for="a">A:</label><br>
|
||||
|
||||
@@ -1,68 +1,287 @@
|
||||
/* === UNIVERSAL SCHOOL TEMPLATE CSS (BLACK & WHITE EDITION) === */
|
||||
/* clean, modern, and copy-paste friendly for all projects */
|
||||
|
||||
/* === RESET === */
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
body {
|
||||
font-family: Verdana, serif;
|
||||
background: #ffffff;
|
||||
margin: 15px;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
header {
|
||||
border: 2px solid black;
|
||||
border-radius: 1em;
|
||||
padding: 10px 20px;
|
||||
box-shadow: rgba(0, 0, 0, 0.2) 3px 3px 5px;
|
||||
background: #f0f0f0;
|
||||
}
|
||||
|
||||
input {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 5px;
|
||||
width: 30%;
|
||||
border: black 2px solid;
|
||||
border-radius: 0.5em;
|
||||
height: 2em;
|
||||
}
|
||||
|
||||
button {
|
||||
padding: 5px;
|
||||
width: 30%;
|
||||
border: black 2px solid;
|
||||
border-radius: 0.5em;
|
||||
font-weight: bold;
|
||||
margin-top: 10px;
|
||||
}
|
||||
pre {
|
||||
font-family: Verdana, serif;
|
||||
}
|
||||
|
||||
.box {
|
||||
border: 2px solid black;
|
||||
padding: 15px 20px;
|
||||
border-radius: 1em;
|
||||
margin: 15px 0 10px 0;
|
||||
box-shadow: rgba(0, 0, 0, 0.2) 3px 3px 5px;
|
||||
}
|
||||
|
||||
.box h3 {
|
||||
cursor: pointer;
|
||||
}
|
||||
td {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
tr {
|
||||
padding: 0;
|
||||
|
||||
/* === VARIABLES === */
|
||||
:root {
|
||||
--accent: #000;
|
||||
--border: #000;
|
||||
--bg: #fff;
|
||||
--bg-alt: #f7f7f7;
|
||||
--text: #111;
|
||||
--shadow: rgba(0, 0, 0, 0.15) 3px 3px 6px;
|
||||
--radius: 1em;
|
||||
--max-width: 1300px;
|
||||
}
|
||||
|
||||
.y {
|
||||
background: yellow;
|
||||
/* === PAGE === */
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Verdana, sans-serif;
|
||||
background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
|
||||
color: var(--text);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.b {
|
||||
background:blue;
|
||||
/* === HEADER === */
|
||||
header {
|
||||
border: 2px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 20px 30px;
|
||||
box-shadow: var(--shadow);
|
||||
background: var(--bg);
|
||||
width: 95%;
|
||||
max-width: var(--max-width);
|
||||
text-align: center;
|
||||
margin-top: 25px;
|
||||
transition: box-shadow 0.3s ease, transform 0.2s ease;
|
||||
}
|
||||
|
||||
header:hover {
|
||||
box-shadow: rgba(0, 0, 0, 0.25) 4px 4px 10px;
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
header h1 {
|
||||
font-size: 2.2rem;
|
||||
}
|
||||
|
||||
header h2 {
|
||||
margin-top: 0.5rem;
|
||||
font-weight: 400;
|
||||
font-size: 1.1rem;
|
||||
color: #444;
|
||||
}
|
||||
|
||||
/* === BOX === */
|
||||
.box {
|
||||
border: 2px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 25px 35px;
|
||||
margin-top: 25px;
|
||||
background: var(--bg);
|
||||
box-shadow: var(--shadow);
|
||||
width: 95%;
|
||||
max-width: var(--max-width);
|
||||
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
|
||||
.box:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: rgba(0, 0, 0, 0.25) 4px 4px 10px;
|
||||
}
|
||||
|
||||
/* === TEXT ELEMENTS === */
|
||||
p {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4 {
|
||||
margin-bottom: 0.5rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #000;
|
||||
text-decoration: underline;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
/* === LISTS === */
|
||||
ul, ol {
|
||||
margin: 1rem 0 1rem 1.5rem;
|
||||
}
|
||||
|
||||
li {
|
||||
margin-bottom: 0.4rem;
|
||||
}
|
||||
|
||||
/* === TABLES === */
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 1rem 0;
|
||||
background: var(--bg);
|
||||
border: 2px solid var(--border);
|
||||
border-radius: 0.6em;
|
||||
overflow: hidden;
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
th, td {
|
||||
padding: 10px 12px;
|
||||
border-bottom: 1px solid #ccc;
|
||||
}
|
||||
|
||||
th {
|
||||
background: var(--bg-alt);
|
||||
font-weight: bold;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
tr:hover {
|
||||
background: #f2f2f2;
|
||||
}
|
||||
|
||||
/* === FORMS === */
|
||||
form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.2rem;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
border: 2px solid var(--border);
|
||||
border-radius: 0.8em;
|
||||
padding: 1.2rem 1.5rem;
|
||||
background: var(--bg-alt);
|
||||
}
|
||||
|
||||
legend {
|
||||
font-weight: bold;
|
||||
color: #000;
|
||||
padding: 0 0.4rem;
|
||||
font-size: 1.05rem;
|
||||
}
|
||||
|
||||
label {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
input[type="text"],
|
||||
input[type="email"],
|
||||
input[type="password"],
|
||||
input[type="number"],
|
||||
input[type="tel"],
|
||||
textarea,
|
||||
select {
|
||||
width: 100%;
|
||||
font-size: 1rem;
|
||||
margin-top: 6px;
|
||||
margin-bottom: 8px;
|
||||
border: 2px solid var(--border);
|
||||
border-radius: 0.5em;
|
||||
padding: 0.4rem 0.5rem;
|
||||
transition: all 0.2s ease;
|
||||
background: var(--bg);
|
||||
}
|
||||
|
||||
textarea {
|
||||
resize: vertical;
|
||||
min-height: 100px;
|
||||
}
|
||||
|
||||
input:focus,
|
||||
textarea:focus,
|
||||
select:focus {
|
||||
outline: none;
|
||||
border-color: #000;
|
||||
box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
|
||||
background: #f9f9f9;
|
||||
}
|
||||
|
||||
input[type="radio"],
|
||||
input[type="checkbox"] {
|
||||
accent-color: #000;
|
||||
transform: scale(1.2);
|
||||
margin-right: 0.3rem;
|
||||
}
|
||||
|
||||
/* === BUTTONS === */
|
||||
button,
|
||||
input[type="submit"],
|
||||
input[type="button"],
|
||||
input[type="reset"] {
|
||||
padding: 10px 20px;
|
||||
border: 2px solid var(--border);
|
||||
border-radius: 0.5em;
|
||||
font-weight: bold;
|
||||
font-size: 1rem;
|
||||
background: linear-gradient(180deg, #fff 0%, #f2f2f2 100%);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
align-self: flex-start;
|
||||
}
|
||||
|
||||
button:hover,
|
||||
input[type="submit"]:hover,
|
||||
input[type="button"]:hover,
|
||||
input[type="reset"]:hover {
|
||||
background: #eaeaea;
|
||||
box-shadow: rgba(0, 0, 0, 0.25) 3px 3px 6px;
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
button:active,
|
||||
input[type="submit"]:active,
|
||||
input[type="button"]:active,
|
||||
input[type="reset"]:active {
|
||||
transform: translateY(0);
|
||||
box-shadow: rgba(0, 0, 0, 0.15) 1px 1px 3px;
|
||||
background: #f7f7f7;
|
||||
}
|
||||
|
||||
/* === HR, CODE, ETC. === */
|
||||
hr {
|
||||
border: 0;
|
||||
border-top: 2px solid var(--border);
|
||||
margin: 1.5rem 0;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
border-radius: 0.5em;
|
||||
}
|
||||
|
||||
code, pre {
|
||||
background: #f4f4f4;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 0.4em;
|
||||
padding: 0.3em 0.5em;
|
||||
font-family: "Courier New", monospace;
|
||||
}
|
||||
|
||||
pre {
|
||||
padding: 1em;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
/* === RESPONSIVE === */
|
||||
@media (max-width: 900px) {
|
||||
header, .box {
|
||||
width: 95%;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
button {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
textarea {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
header h1 {
|
||||
font-size: 1.7rem;
|
||||
}
|
||||
|
||||
header h2 {
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user