allenhzy commited on
Commit
1a23e33
·
1 Parent(s): f6cc227
Files changed (2) hide show
  1. index.html +2 -1
  2. static/css/custom.css +7 -0
index.html CHANGED
@@ -18,6 +18,7 @@
18
  <link rel="stylesheet"
19
  href="https://cdn.jsdelivr.net/gh/jpswalsh/academicons@1/css/academicons.min.css">
20
  <link rel="stylesheet" href="./static/css/index.css">
 
21
  <link rel="icon" href="./static/images/favicon.svg">
22
 
23
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
@@ -410,7 +411,7 @@
410
  <h2 class="title is-3">Adaptive Attack</h2>
411
  <div class="columns is-centered">
412
  <div class="column container-centered">
413
- <div id="refusal-loss-formula" class="container">
414
  <div id="adaptive-loss-formula-list" class="row align-items-center formula-list">
415
  <a href="#label-loss" class="selected">Label Loss</a>
416
  <a href="#representation-loss">Representation Loss</a>
 
18
  <link rel="stylesheet"
19
  href="https://cdn.jsdelivr.net/gh/jpswalsh/academicons@1/css/academicons.min.css">
20
  <link rel="stylesheet" href="./static/css/index.css">
21
+ <link rel="stylesheet" href="./static/css/custom.css">
22
  <link rel="icon" href="./static/images/favicon.svg">
23
 
24
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
 
411
  <h2 class="title is-3">Adaptive Attack</h2>
412
  <div class="columns is-centered">
413
  <div class="column container-centered">
414
+ <div id="adaptive-loss-formula" class="container">
415
  <div id="adaptive-loss-formula-list" class="row align-items-center formula-list">
416
  <a href="#label-loss" class="selected">Label Loss</a>
417
  <a href="#representation-loss">Representation Loss</a>
static/css/custom.css ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ #adaptive-loss-formula .formula { text-align: center; }
2
+
3
+ #adaptive-loss-formula .formula-list { width: fit-content; margin: 0 auto; }
4
+
5
+ #adaptive-loss-formula .formula-list a { display: inline-block; width: 250px; margin: 0 20px; padding: 8px 10px; text-align: center; background: #DDD; cursor: pointer; text-decoration: none; color: #333; border-radius: 10px; user-select: none; transition-duration: 0.3s; }
6
+
7
+ #adaptive-loss-formula .formula-list a:hover, #jailbreak-demo #defense-methods .defense:hover { background: #555; color: #FFF; }