diff --git a/proj/fonts/fonts.js b/proj/fonts/fonts.js
index ddc4b13..d05c6c9 100644
--- a/proj/fonts/fonts.js
+++ b/proj/fonts/fonts.js
@@ -1,63 +1,3 @@
-Vue.component('icon', {
- template: `
-
- `,
- props: ['name'],
- data() {
- return {
- utf8: '',
- isCopied: false
- }
- },
- computed: {
- class: function () {
- return "brz9-icon-" + this.name;
- },
- span: function () {
- return '';
- }
- },
- methods: {
- copyToClipboard(text) {
- const textarea = document.createElement('textarea')
- textarea.value = text
- document.body.appendChild(textarea)
- textarea.select()
- document.execCommand('copy')
- document.body.removeChild(textarea)
- this.copyDone();
- },
- copyDone() {
- this.isCopied = true;
- this.$refs.element.addEventListener('animationend', () => {
- this.isCopied = false;
- });
- }
- },
- mounted() {
- query = '.' + this.class
- let span = document.querySelector(query)
- let style = window.getComputedStyle(span, ':before')
- let content = style.getPropertyValue('content')
- console.log(content)
- this.utf8 = content.replace('"', '').replace('"', '')
- }
-})
-
Vue.component('fontdemo', {
template: `
diff --git a/proj/fonts/style.css b/proj/fonts/style.css
index 13d8df4..9ef88d5 100644
--- a/proj/fonts/style.css
+++ b/proj/fonts/style.css
@@ -115,19 +115,36 @@ h2 {
padding-top: 20px;
}
-input {
- width: 40vw;
+input.font-input {
+ width: 30vw;
background-color: rgba(0,0,0,0);
border: none;
color: inherit;
padding-bottom: 10px;
border-bottom: 5px solid var(--fg);
+ display: inline-block;
}
-
input:focus {
outline: none;
+}
+nav.font-nav {
+ display: inline-block;
+}
+
+nav.font-nav span.style-pick {
+ color: var(--fg);
+ padding: 5px;
+ font-weight: 500;
+ border: 5px solid var(--fg);
+ cursor: pointer;
+}
+
+nav.font-nav span.style-pick.selected {
+ background-color: var(--fg);
+ color: black;
+ mix-blend-mode: lighten;
}
@@ -166,4 +183,52 @@ div.single-font footer span.copy-css {
div.single-font footer span.copy-icon-popup {
padding: 10px;
translate: -30px;
+}
+
+.font-container {
+ position: relative;
+ max-height: 60vh;
+ overflow-y: scroll;
+ overflow-x: hidden;
+}
+
+.font-content {
+ position: relative;
+ }
+
+
+.font-container::-webkit-scrollbar-track
+{
+ border-right: 5px solid var(--fg);
+ border-left: none;
+ background-color: rgba(0,0,0,0);
+}
+
+.font-container::-webkit-scrollbar
+{
+ width: 15px;
+ background-color: rgba(0,0,0,0);
+}
+
+.font-container::-webkit-scrollbar-thumb
+{
+ background-color: var(--fg);
+}
+
+.font-container{
+ scrollbar-width: 15px;
+ scrollbar-color: var(--fg) rgba(255,255,255,0.1);
+}
+
+.font-container {
+ border-top: 5px solid var(--fg);
+ border-bottom: 5px solid var(--fg);
+}
+
+.font-content {
+ margin-top: -5px;
+ margin-bottom: -20px;
+ overflow-y: hidden;
+ overflow-x: hidden;
+
}
\ No newline at end of file