Skip to content

Commit

Permalink
css refinements
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenixbf committed Feb 1, 2025
1 parent 0d1c2eb commit 083e024
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
2 changes: 1 addition & 1 deletion public/dist/ATON.min.js

Large diffs are not rendered by default.

15 changes: 14 additions & 1 deletion public/res/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -398,11 +398,24 @@ canvas:active {
}

.aton-scene-card:hover {
transform: scale(1.1);
/*transform: scale(1.1);*/

/*border: 1px solid rgba(var(--bs-body-color-rgb), 1);*/
/*box-shadow: 0px 0px 10px rgba(var(--bs-body-color-rgb), 0.5);*/
}

.aton-card-cover {
overflow: hidden;
}

.aton-card-cover img {
transform-origin: 50% 50%;
transition: transform .5s, visibility .5s ease-in;
}
.aton-card-cover img:hover {
transform: scale(1.5);
}

.aton-scene-card-small {
margin: 8px;
width: 150px;
Expand Down
2 changes: 1 addition & 1 deletion public/src/ATON.ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ UI.createSceneCard = (options)=>{

// Cover
//if (options.onpress) el.innerHTML += "<img src='"+cover+"' class='card-img-top'>";
el.innerHTML += "<a href='"+ATON.PATH_FE+options.sid+"'><img src='"+cover+"' class='card-img-top'></a>";
el.innerHTML += "<div class='aton-card-cover'><a href='"+ATON.PATH_FE+options.sid+"'><img src='"+cover+"' class='card-img-top'></a></div>";

// Body
let elbody = document.createElement('div');
Expand Down
6 changes: 3 additions & 3 deletions services/views/v2/home.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ window.addEventListener( 'load', ()=>{
ATON.UI.createPublicScenesGallery({
containerid: "pubscenes",
size:"small",
//size:"small",
entries: entries,
<% if (samples) { %> samples: true <% } %>
});
Expand Down Expand Up @@ -129,11 +129,11 @@ window.addEventListener( 'load', ()=>{
</script>
</head>

<body>
<body style="padding-top:50px;">
<!-- Navbar -->
<%- include('frags/navbar'); %>

<div style="margin-top: 40px;"></div>
<!-- <div style="margin-top: 40px;"></div> -->

<!-- Hero section -->
<div id="hero">
Expand Down

0 comments on commit 083e024

Please sign in to comment.