projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Draft or user bio support (ready in Hall, TODO in Game)
[vchess.git]
/
client
/
src
/
views
/
Analyse.vue
diff --git
a/client/src/views/Analyse.vue
b/client/src/views/Analyse.vue
index
bc88c75
..
9dcf033
100644
(file)
--- a/
client/src/views/Analyse.vue
+++ b/
client/src/views/Analyse.vue
@@
-7,7
+7,8
@@
main
)
.card
label.modal-close(for="modalRules")
)
.card
label.modal-close(for="modalRules")
- h4#variantNameInAnalyze(@click="gotoRules()") {{ game.vname }}
+ a#variantNameInAnalyze(:href="'/#/variants/'+game.vname")
+ | {{ game.vname }}
div(v-html="rulesContent")
.row
.col-sm-12
div(v-html="rulesContent")
.row
.col-sm-12
@@
-111,9
+112,6
@@
export default {
.replace(/"$/, "")
.replace(/(fen:)([^:]*):/g, replaceByDiag);
},
.replace(/"$/, "")
.replace(/(fen:)([^:]*):/g, replaceByDiag);
},
- gotoRules: function() {
- this.$router.push("/variants/" + this.gameRef.vname);
- },
loadGame: function(orientation) {
this.game.vname = this.gameRef.vname;
this.game.fenStart = this.gameRef.fen;
loadGame: function(orientation) {
this.game.vname = this.gameRef.vname;
this.game.fenStart = this.gameRef.fen;
@@
-149,11
+147,13
@@
export default {
</style>
<style lang="sass" scoped>
</style>
<style lang="sass" scoped>
-
h4
#variantNameInAnalyze
- c
ursor: pointer
+
a
#variantNameInAnalyze
+ c
olor: var(--card-fore-color)
text-align: center
text-align: center
- text-decoration: underline
font-weight: bold
font-weight: bold
+ font-size: calc(1rem * var(--heading-ratio))
+ line-height: 1.2
+ margin: calc(1.5 * var(--universal-margin))
#rulesDiv > .card
padding: 5px 0
#rulesDiv > .card
padding: 5px 0