Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 32 additions & 26 deletions src/site/resources/css/site.css
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
/* Hacktoberfest: Enhanced Smooth Scrolling, Hover Effects, and UI Fixes */

body, td, select, input, li {
font-family: Verdana, Helvetica, Arial, sans-serif;
}

h1 {
text-transform: capitalize;
font-size: x-large;
}

h2 {
text-transform: capitalize;
}

h3 {
text-transform: capitalize;
}

h4 {
h1, h2, h3, h4 {
text-transform: capitalize;
}

Expand All @@ -24,8 +13,8 @@ h4 {
}

.tip {
margin-left : 5%;
margin-right : 5%;
margin-left: 5%;
margin-right: 5%;
padding-left: 2%;
padding-right: 2%;
background-color: #c0c0c0;
Expand All @@ -44,16 +33,13 @@ section p {
}

#bannerLeft img {
float:left;
float: left;
position: relative;
top: 0;
left: 40px;
}

#bannerLeft h1 {
margin: 0;
}

#bannerLeft h1,
#bannerRight h1 {
margin: 0;
}
Expand All @@ -72,7 +58,10 @@ section p {
float: right;
}

h1:hover .anchor, h2:hover .anchor, h3:hover .anchor, p[id^="Example"]:hover .anchor {
h1:hover .anchor,
h2:hover .anchor,
h3:hover .anchor,
p[id^="Example"]:hover .anchor {
visibility: visible;
}

Expand Down Expand Up @@ -151,11 +140,27 @@ th {
}

.prettyprint code {
font-size: 12pxx;
font-size: 12px; /* ✅ fixed 12pxx bug */
text-wrap: nowrap;
line-height: 1.625;
}

/* Hover enhancement for better UX */
a {
transition: color 0.3s ease, text-decoration 0.3s ease, padding 0.2s ease;
padding: 0 12px; /* Fix small clickable area bug */
}

a:hover {
color: #0078ff;
text-decoration: underline;
}

/* Smooth scrolling for entire site */
html {
scroll-behavior: smooth;
}

.inline-command code {
display: inline;
white-space: normal;
Expand Down Expand Up @@ -188,6 +193,7 @@ pre {
position: relative;
}

/* Copy button hover fix */
.copy-button {
position: absolute;
top: 8px;
Expand All @@ -203,13 +209,14 @@ pre {
border-radius: 4px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
z-index: 5;
transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.copy-button:hover {
background-color: rgba(245, 245, 245, 0.9);
border-color: rgba(153, 153, 153, 0.8);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
transform: translateY(-2px);
}

.copy-button svg {
Expand Down Expand Up @@ -335,7 +342,7 @@ span.wrapper.inline {
rgba(51, 51, 51, 0) 0%,
rgba(51, 51, 51, 1) 10%,
rgba(51, 51, 51, 1) 90%,
rgba(51, 51, 51, 0) 100%
rgba(51, 51, 51, 0) 100%
);
}

Expand Down Expand Up @@ -448,4 +455,3 @@ section#Properties .wrapper table td a {
width: auto !important;
}
}

Loading