Skip to content

Commit 0a69c10

Browse files
committed
[how-to] action block style
1 parent 17302bf commit 0a69c10

2 files changed

Lines changed: 61 additions & 41 deletions

File tree

src/components/how-to/GephiLite.md

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Open Gephi Lite
44

5-
> Open Gephi Lite by visiting the address https://gephi.org/gephi-lite/ in your browser (preferably Firefox or Chrome)
5+
> - Open Gephi Lite by visiting the address https://gephi.org/gephi-lite/ in your browser (preferably Firefox or Chrome)
66
77
</section>
88

@@ -111,20 +111,19 @@ In the “Appearance” menu on the left side of the graph window, you can chang
111111

112112
By default in this sample GEXF dataset, nodes are coloured according to their “Modularity class”, a category obtained by a community detection calculation. You can change this choice or the palette of color used to represent it.
113113

114-
> Click on "Appearance", then “Nodes”.
115-
> In the “Set color from...” drop-down menu select “modularity_class”.
116-
117-
> Check the “Shade nodes colors”.
118-
> Select “Size” from the drop-down menu.
119-
> Chose black from the “Target color” color picker.
120-
> Set the “Shading degree” to 0,7.
114+
> - Click on "Appearance", then “Nodes”.
115+
> - In the “Set color from...” drop-down menu select “modularity_class”.
116+
> - Check the “Shade nodes colors”.
117+
> - Select “Size” from the drop-down menu.
118+
> - Chose black from the “Target color” color picker.
119+
> - Set the “Shading degree” to 0,7.
121120
122121
![Nodes appearance tab open](./gephi-lite/appearance_nodes_1.png)
123122

124-
> Now unfold the “Size” drop-down menu
125-
> Choose the “Degree (dynamic)” option to change the size of your nodes proportionally to the number of their connections
126-
> Enter minimum and maximum values (e.g. 10 and 60) to resize the nodes
127-
> Notice that a legend for size and color is automatically generated and updated at the bottom of your graph
123+
> - Now unfold the “Size” drop-down menu
124+
> - Choose the “Degree (dynamic)” option to change the size of your nodes proportionally to the number of their connections
125+
> - Enter minimum and maximum values (e.g. 10 and 60) to resize the nodes
126+
> - Notice that a legend for size and color is automatically generated and updated at the bottom of your graph
128127
129128
![Nodes appearance tab opened and caption visible on graph](./gephi-lite/appearance_nodes_2.png)
130129

@@ -136,9 +135,9 @@ By default in this sample GEXF dataset, nodes are coloured according to their
136135

137136
Under "Appearance”, in the submenu “Labels”, you can change the size and density of the labels of you graph.
138137

139-
> Unfold the drop-down menu under “Set label sizes from...” and chose “Nodes size”
140-
> Set the label size to “20”
141-
> Move the slider under “How many labels should appear any time” to hide the smaller labels
138+
> - Unfold the drop-down menu under “Set label sizes from...” and chose “Nodes size”
139+
> - Set the label size to “20”
140+
> - Move the slider under “How many labels should appear any time” to hide the smaller labels
142141
143142
![Labels appearance tab opened](./gephi-lite/appearance_nodes_labels.png)
144143

@@ -156,16 +155,16 @@ Under "Appearance”, in the submenu “Labels”, you can change the size and d
156155

157156
In the “Layout” menu, you can modify the spatialisation of the graph by choosing one of the algorithms offered.
158157

159-
> Unfold the “Layout” menu.
160-
> Select “ForceAtlas 2” — the force-directed algorithm especially developed for Gephi.
161-
> Click the button “Start” at the bottom of the menu to launch the algorithm and see the nodes repulse each other and the edges binding the nodes that they connects.
162-
> When the algorithm has reached a stable balance between the two forces and you are satisfied with the result, click “Stop” to halt the spatialization process.
158+
> - Unfold the “Layout” menu.
159+
> - Select “ForceAtlas 2” — the force-directed algorithm especially developed for Gephi.
160+
> - Click the button “Start” at the bottom of the menu to launch the algorithm and see the nodes repulse each other and the edges binding the nodes that they connects.
161+
> - When the algorithm has reached a stable balance between the two forces and you are satisfied with the result, click “Stop” to halt the spatialization process.
163162
164163
You will find that you need to play around with the settings to obtain a readable network:
165164

166-
> Check the “Adjust size?” check-box.
167-
> Change the “Scaling ratio” to 30 to give the graph more space.
168-
> Click “Start” again to launch the algorithm with the new settings.
165+
> - Check the “Adjust size?” check-box.
166+
> - Change the “Scaling ratio” to 30 to give the graph more space.
167+
> - Click “Start” again to launch the algorithm with the new settings.
169168
170169
![Layout Force Atlas 2 panel opened](./gephi-lite/layout_fa2.png)
171170

@@ -187,10 +186,11 @@ The “Metrics” menu on the left side of the screen allows you to calculate ce
187186

188187
<section>
189188

190-
### Betweeness centrality
189+
### Betweeness centrality
191190

192-
> To calculate betweenness centrality, select it under the “Metric” menu and click on “Compute metric” at the very bottom of the menu.
193-
> The values for this metric are now recorded in the Nodes table of the “Data” table in fresh new columns.
191+
> - Select “Betweeness centrality” under the “Metric” menu
192+
> - Click on “Compute metric” at the very bottom of the menu.
193+
> - The values for this metric are now recorded in the Nodes table of the “Data” table in a fresh new column labeled “BetweenessCentrality”.
194194
195195
![Metrics betweenness centrality panel opened](./gephi-lite/metrics_betweenness_centrality.png)
196196

@@ -202,9 +202,9 @@ The “Metrics” menu on the left side of the screen allows you to calculate ce
202202

203203
You can now return to the “Appearance” window to change the colour of the nodes based on the betweenness centrality you just calculated.
204204

205-
> Select “Nodes” under “ then the “Appearance”.
206-
> In the “Set color from...” drop-down menu select “betweennessCentrality”.
207-
> You can then choose the colour gradient by clicking directly on the coloured bar and change the colours manually.
205+
> - Select “Nodes” under “ then the “Appearance”.
206+
> - In the “Set color from...” drop-down menu select “betweennessCentrality”.
207+
> - You can then choose the colour gradient by clicking directly on the coloured bar and change the colours manually.
208208
209209
![Appearance nodes panel opened](./gephi-lite/appearance_after_metrics.png)
210210

@@ -222,12 +222,12 @@ You can now return to the “Appearance” window to change the colour of the no
222222

223223
The “Filters” menu allows you to filter your graph in multiple ways based on attributes or properties of nodes or edges, as well as based on the overall topology of the network.
224224

225-
> open the filter panel by clicking on “Filters” in menu
226-
> Click on “Add Filter” button.
227-
> In the modal section entitled “Nodes attributes” click on “Degree (dynamic)”.
228-
> Gephi Lite will automatically generate an histogram of the distribution of the degree in your network
229-
> Increase the “Min” value to 2, to hide all the nodes with less than 2 connections.
230-
> The small histogram now shows that you are no longer viewing the entire network.
225+
> - Open the filter panel by clicking on “Filters” in menu
226+
> - Click on “Add Filter” button.
227+
> - In the modal section entitled “Nodes attributes” click on “Degree (dynamic)
228+
> - Gephi Lite will automatically generate an histogram of the distribution of the degree in your network
229+
> - Increase the “Min” value to 2, to hide all the nodes with less than 2 connections.
230+
> - The small histogram now shows that you are no longer viewing the entire network.
231231
232232
![Filters panel opened with one active filter on nodes' Degree (dynamic)](./gephi-lite/filters_degree.png)
233233

@@ -239,14 +239,14 @@ The “Filters” menu allows you to filter your graph in multiple ways based on
239239

240240
To export your network file:
241241

242-
> Open the “Workspace” menu at the top left of Gephi Lite's interface.
243-
> Select “Export graph file” to download your network in .gexf format.
242+
> - Open the “Workspace” menu at the top left of Gephi Lite's interface.
243+
> - Select “Export graph file” to download your network in .gexf format.
244244
245245
![workspace menu](./gephi-lite/workspace.png)
246246

247247
To export the network picture:
248248

249-
> Select “Export image” to download a .png snapshot of your network as you visualized it
249+
> - Select “Export image” to download a .png snapshot of your network as you visualized it
250250
251251
![export png modal](./gephi-lite//workspace_export_png.png)
252252

@@ -258,9 +258,9 @@ To export the network picture:
258258

259259
Exporting the graph file or a picture is not the (only) output of your work. Before leaving, don't forget to save your Gephi Lite project itself.
260260

261-
> Open the “Workspace” menu
262-
> Click on “Save as…”
263-
> Choose if you want to download the project on your computer as a .json or save it to your GitHub account.
261+
> - Open the “Workspace” menu
262+
> - Click on “Save as…”
263+
> - Choose if you want to download the project on your computer as a .json or save it to your GitHub account.
264264
265265
You can then reopen it later with all your changes intact!
266266

src/styles/_how-to.scss

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,32 @@
4040
section {
4141
position: relative;
4242
blockquote {
43+
@extend .mt-4;
4344
@extend .p-2;
4445
@extend .rounded;
4546
background-color: $white;
46-
p {
47+
48+
// Phospore icon cursor-click as action required indicator for blockquotes
49+
&::before {
50+
--size: 1.8rem;
51+
background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgZmlsbD0iIzAwMDAwMCIgdmlld0JveD0iMCAwIDI1NiAyNTYiPjxwYXRoIGQ9Ik04OCwyNFYxNmE4LDgsMCwwLDEsMTYsMHY4YTgsOCwwLDAsMS0xNiwwWk0xNiwxMDRoOGE4LDgsMCwwLDAsMC0xNkgxNmE4LDgsMCwwLDAsMCwxNlpNMTI0LjQyLDM5LjE2YTgsOCwwLDAsMCwxMC43NC0zLjU4bDgtMTZhOCw4LDAsMCwwLTE0LjMxLTcuMTZsLTgsMTZBOCw4LDAsMCwwLDEyNC40MiwzOS4xNlptLTk2LDgxLjY5LTE2LDhhOCw4LDAsMCwwLDcuMTYsMTQuMzFsMTYtOGE4LDgsMCwxLDAtNy4xNi0xNC4zMVpNMjE5LjMxLDE4NGExNiwxNiwwLDAsMSwwLDIyLjYzbC0xMi42OCwxMi42OGExNiwxNiwwLDAsMS0yMi42MywwTDEzMi43LDE2OCwxMTUsMjE0LjA5YzAsLjEtLjA4LjIxLS4xMy4zMmExNS44MywxNS44MywwLDAsMS0xNC42LDkuNTlsLS43OSwwYTE1LjgzLDE1LjgzLDAsMCwxLTE0LjQxLTExTDMyLjgsNTIuOTJBMTYsMTYsMCwwLDEsNTIuOTIsMzIuOEwyMTMsODUuMDdhMTYsMTYsMCwwLDEsMS40MSwyOS44bC0uMzIuMTNMMTY4LDEzMi42OVpNMjA4LDE5NS4zMSwxNTYuNjksMTQ0aDBhMTYsMTYsMCwwLDEsNC45My0yNmwuMzItLjE0LDQ1Ljk1LTE3LjY0TDQ4LDQ4bDUyLjIsMTU5Ljg2LDE3LjY1LTQ2YzAtLjExLjA4LS4yMi4xMy0uMzNhMTYsMTYsMCwwLDEsMTEuNjktOS4zNCwxNi43MiwxNi43MiwwLDAsMSwzLS4yOCwxNiwxNiwwLDAsMSwxMS4zLDQuNjlMMTk1LjMxLDIwOFoiPjwvcGF0aD48L3N2Zz4=");
52+
background-size: var(--size);
53+
width: var(--size);
54+
height: var(--size);
55+
content: "";
56+
float: left;
57+
margin-top: calc(-1 * var(--size) / 2 - 0.5rem);
58+
margin-left: calc(-1 * var(--size) / 2 - 0.5rem);
59+
}
60+
61+
p,
62+
ul,
63+
li {
4764
margin: 0;
4865
}
66+
ul {
67+
padding-left: 1rem;
68+
}
4969
}
5070
p:has(img) {
5171
text-align: center;

0 commit comments

Comments
 (0)